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