2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, isPyPy
|
2021-07-21 07:28:18 +00:00
|
|
|
, python
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "greenlet";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = isPyPy; # builtin for pypy
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "c87df8ae3f01ffb4483c796fe1b15232ce2b219f0b18126948616224d3f658ee";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
${python.interpreter} -m unittest discover -v greenlet.tests
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
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; [
|
|
|
|
psfl # src/greenlet/slp_platformselect.h & files in src/greenlet/platform/ directory
|
|
|
|
mit
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|