2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPyPy
|
2022-09-09 14:08:57 +00:00
|
|
|
, unittestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "greenlet";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "1.1.2";
|
2022-09-09 14:08:57 +00:00
|
|
|
disabled = isPyPy; # builtin for pypy
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "e30f5ea4ae2346e62cedde8794a56858a67b878dd79f7df76a0767e356b1744a";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
checkInputs = [ unittestCheckHook ];
|
|
|
|
|
|
|
|
unittestFlagsArray = [ "-v" "greenlet.tests" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/python-greenlet/greenlet";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Module for lightweight in-process concurrent programming";
|
2021-07-21 07:28:18 +00:00
|
|
|
license = with licenses; [
|
2022-09-09 14:08:57 +00:00
|
|
|
psfl # src/greenlet/slp_platformselect.h & files in src/greenlet/platform/ directory
|
2021-07-21 07:28:18 +00:00
|
|
|
mit
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|