Merge pull request #118627 from lsix/greenlet-1.0.0

pythonPackages.greenlet: 0.4.17 -> 1.0.0
This commit is contained in:
Martin Weinelt 2021-04-12 14:35:15 +02:00 committed by GitHub
commit 60e238f4c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 7 deletions

View file

@ -8,21 +8,16 @@
buildPythonPackage rec {
pname = "greenlet";
version = "0.4.17";
version = "1.0.0";
disabled = isPyPy; # builtin for pypy
src = fetchPypi {
inherit pname version;
sha256 = "0swdhrcq13bdszv3yz5645gi4ijbzmmhxpb6whcfg3d7d5f87n21";
sha256 = "1y6wbg9yhm9dw6m768n4yslp56h85pnxkk3drz6icn15g6f1d7ki";
};
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";

View file

@ -9,6 +9,12 @@ buildPythonPackage rec {
sha256 = "008c76937ac2117cc69e032dc69cea9f85fc605de9bac1417f447c41c16a56d6";
};
patchPhase = ''
# Allow greenlet-1.0.0.
# See https://github.com/mopemope/meinheld/pull/123
substituteInPlace setup.py --replace "greenlet>=0.4.5,<0.5" "greenlet>=0.4.5,<2.0.0"
'';
propagatedBuildInputs = [ greenlet ];
# No tests