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;
};
}

View file

@ -6236,30 +6236,7 @@ in {
grammalecte = callPackage ../development/python-modules/grammalecte { };
greenlet = buildPythonPackage rec {
name = "greenlet-${version}";
version = "0.4.10";
disabled = isPyPy; # builtin for pypy
src = pkgs.fetchurl {
url = "mirror://pypi/g/greenlet/${name}.tar.gz";
sha256 = "c4417624aa88380cdf0fe110a8a6e0dbcc26f80887197fe5df0427dfa348ae62";
};
propagatedBuildInputs = with self; [ 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 = licenses.lgpl2;
platforms = platforms.all;
};
};
greenlet = callPackage ../development/python-modules/greenlet { };
grib-api = disabledIf (!isPy27) (toPythonModule
(pkgs.grib-api.override {