2017-10-29 13:51:29 +00:00
|
|
|
{ stdenv, fetchurl, buildPythonPackage, isPyPy, python, libev, greenlet }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "gevent";
|
2018-06-12 17:47:01 +01:00
|
|
|
version = "1.3.3";
|
2017-11-09 11:26:09 +00:00
|
|
|
name = pname + "-" + version;
|
2017-10-29 13:51:29 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/g/gevent/${name}.tar.gz";
|
2018-06-12 17:47:01 +01:00
|
|
|
sha256 = "59465c7bce7671834f58b44ef62cd8626f1557a0e7e3de44a3b596056f8adc73";
|
2017-10-29 13:51:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libev ];
|
|
|
|
propagatedBuildInputs = stdenv.lib.optionals (!isPyPy) [ greenlet ];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|