2020-06-07 15:19:17 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, isPyPy, python, libev, greenlet
|
|
|
|
, zope_interface
|
|
|
|
}:
|
2017-10-29 13:51:29 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "gevent";
|
2020-06-06 07:47:08 +01:00
|
|
|
version = "20.5.2";
|
2020-06-07 15:19:17 +01:00
|
|
|
format = "pyproject";
|
2017-10-29 13:51:29 +00:00
|
|
|
|
2018-06-12 19:24:30 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:08 +01:00
|
|
|
sha256 = "2756de36f56b33c46f6cc7146a74ba65afcd1471922c95b6771ce87b279d689c";
|
2017-10-29 13:51:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libev ];
|
2020-06-07 15:19:17 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
zope_interface
|
|
|
|
] ++ stdenv.lib.optionals (!isPyPy) [ greenlet ];
|
2017-10-29 13:51:29 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
cd greentest
|
|
|
|
${python.interpreter} testrunner.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Bunch of failures.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Coroutine-based networking library";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.gevent.org/";
|
2017-10-29 13:51:29 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
|
|
|
};
|
|
|
|
}
|