python.pkgs.greenlet: move expression

This commit is contained in:
Frederik Rietdijk
2018-06-12 20:21:24 +02:00
parent 5ff5aa4a0f
commit da455116d2
2 changed files with 32 additions and 24 deletions

View File

@@ -0,0 +1,31 @@
{ lib
, buildPythonPackage
, fetchPypi
, six
, isPyPy
}:
buildPythonPackage rec {
pname = "greenlet";
version = "0.4.10";
disabled = isPyPy; # builtin for pypy
src = fetchPypi {
inherit pname version;
sha256 = "c4417624aa88380cdf0fe110a8a6e0dbcc26f80887197fe5df0427dfa348ae62";
};
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;
};
}