2020-06-15 15:56:04 +00:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, isPyPy, python, libev, greenlet
|
|
|
|
, zope_interface
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gevent";
|
2020-11-23 15:24:06 +00:00
|
|
|
version = "20.9.0";
|
2020-06-15 15:56:04 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-23 15:24:06 +00:00
|
|
|
sha256 = "13aw9x6imsy3b369kfjblqiwfni69pp32m4r13n62r9k3l2lhvaz";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libev ];
|
2020-06-15 15:56:04 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
zope_interface
|
|
|
|
] ++ stdenv.lib.optionals (!isPyPy) [ greenlet ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
cd greentest
|
|
|
|
${python.interpreter} testrunner.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Bunch of failures.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Coroutine-based networking library";
|
|
|
|
homepage = "http://www.gevent.org/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
|
|
|
};
|
|
|
|
}
|