2018-06-12 20:24:30 +02:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, isPyPy, python, libev, greenlet }:
|
2017-10-29 14:51:29 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 12:26:09 +01:00
|
|
|
pname = "gevent";
|
2018-07-22 12:09:26 +02:00
|
|
|
version = "1.3.5";
|
2017-10-29 14:51:29 +01:00
|
|
|
|
2018-06-12 20:24:30 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-07-22 12:09:26 +02:00
|
|
|
sha256 = "7f15861f3cc92f49663ca88c4774d26d8044783a65fbc28071a2bd1c7bf36ff0";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|