python.pkgs.gevent: fix build

This commit is contained in:
Frederik Rietdijk 2020-06-07 16:19:17 +02:00
parent 0a344f99e0
commit 1bb2cf2bb1

View File

@ -1,8 +1,11 @@
{ stdenv, fetchPypi, buildPythonPackage, isPyPy, python, libev, greenlet }:
{ stdenv, fetchPypi, buildPythonPackage, isPyPy, python, libev, greenlet
, zope_interface
}:
buildPythonPackage rec {
pname = "gevent";
version = "20.5.2";
format = "pyproject";
src = fetchPypi {
inherit pname version;
@ -10,7 +13,9 @@ buildPythonPackage rec {
};
buildInputs = [ libev ];
propagatedBuildInputs = stdenv.lib.optionals (!isPyPy) [ greenlet ];
propagatedBuildInputs = [
zope_interface
] ++ stdenv.lib.optionals (!isPyPy) [ greenlet ];
checkPhase = ''
cd greentest