1{ lib
2, buildPythonPackage
3, fetchPypi
4, six
5, isPyPy
6}:
7
8
9buildPythonPackage rec {
10 pname = "greenlet";
11 version = "0.4.16";
12 disabled = isPyPy; # builtin for pypy
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "6e06eac722676797e8fce4adb8ad3dc57a1bb3adfb0dd3fdf8306c055a38456c";
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}