1{ lib
2, buildPythonPackage
3, fetchPypi
4, six
5, isPyPy
6}:
7
8
9buildPythonPackage rec {
10 pname = "greenlet";
11 version = "0.4.15";
12 disabled = isPyPy; # builtin for pypy
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "9416443e219356e3c31f1f918a91badf2e37acf297e2fa13d24d1cc2380f8fbc";
17 };
18
19 propagatedBuildInputs = [ six ];
20
21 # see https://github.com/python-greenlet/greenlet/issues/85
22 preCheck = ''
23 rm tests/test_leaks.py
24 '';
25
26 meta = {
27 homepage = https://pypi.python.org/pypi/greenlet;
28 description = "Module for lightweight in-process concurrent programming";
29 license = lib.licenses.lgpl2;
30 };
31}