2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchPypi, buildPythonPackage, isPyPy, python, libev, greenlet
|
2020-06-15 15:56:04 +00:00
|
|
|
, zope_interface
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gevent";
|
2020-11-19 00:13:47 +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-19 00:13:47 +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;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Coroutine-based networking library";
|
|
|
|
homepage = "http://www.gevent.org/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
|
|
|
};
|
|
|
|
}
|