2017-10-29 14:51:29 +01:00
|
|
|
{ stdenv, fetchurl, buildPythonPackage, isPyPy, python, libev, greenlet }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 12:26:09 +01:00
|
|
|
pname = "gevent";
|
|
|
|
version = "1.2.2";
|
|
|
|
name = pname + "-" + version;
|
2017-10-29 14:51:29 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/g/gevent/${name}.tar.gz";
|
2017-11-20 13:52:29 +01:00
|
|
|
sha256 = "0bbbjvi423y9k9xagrcsimnayaqymg6f2dj76m9z3mjpkjpci4a7";
|
2017-10-29 14:51:29 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|