nixpkgs/pkgs/development/python-modules/greenlet/default.nix
2022-09-18 23:57:42 +02:00

32 lines
701 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPyPy
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "greenlet";
version = "1.1.3";
disabled = isPyPy; # builtin for pypy
src = fetchPypi {
inherit pname version;
sha256 = "sha256-vLbG3R1r5tONbbKDdH0H/aCJ/4xVmoNSNlYKRBA0BFU=";
};
checkInputs = [ unittestCheckHook ];
unittestFlagsArray = [ "-v" "greenlet.tests" ];
meta = with lib; {
homepage = "https://github.com/python-greenlet/greenlet";
description = "Module for lightweight in-process concurrent programming";
license = with licenses; [
psfl # src/greenlet/slp_platformselect.h & files in src/greenlet/platform/ directory
mit
];
};
}