2018-06-12 19:21:24 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, isPyPy
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "greenlet";
|
2018-06-12 19:21:46 +01:00
|
|
|
version = "0.4.13";
|
2018-06-12 19:21:24 +01:00
|
|
|
disabled = isPyPy; # builtin for pypy
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-12 19:21:46 +01:00
|
|
|
sha256 = "0fef83d43bf87a5196c91e73cb9772f945a4caaff91242766c5916d1dd1381e4";
|
2018-06-12 19:21:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
|
|
|
# see https://github.com/python-greenlet/greenlet/issues/85
|
|
|
|
preCheck = ''
|
|
|
|
rm tests/test_leaks.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://pypi.python.org/pypi/greenlet;
|
|
|
|
description = "Module for lightweight in-process concurrent programming";
|
|
|
|
license = lib.licenses.lgpl2;
|
|
|
|
};
|
|
|
|
}
|