1{ stdenv, fetchurl, buildPythonPackage, isPyPy, python, libev, greenlet }:
2
3buildPythonPackage rec {
4 pname = "gevent";
5 version = "1.2.2";
6 name = pname + "-" + version;
7
8 src = fetchurl {
9 url = "mirror://pypi/g/gevent/${name}.tar.gz";
10 sha256 = "0bbbjvi423y9k9xagrcsimnayaqymg6f2dj76m9z3mjpkjpci4a7";
11 };
12
13 buildInputs = [ libev ];
14 propagatedBuildInputs = stdenv.lib.optionals (!isPyPy) [ greenlet ];
15
16 checkPhase = ''
17 cd greentest
18 ${python.interpreter} testrunner.py
19 '';
20
21 # Bunch of failures.
22 doCheck = false;
23
24 meta = with stdenv.lib; {
25 description = "Coroutine-based networking library";
26 homepage = http://www.gevent.org/;
27 license = licenses.mit;
28 platforms = platforms.unix;
29 maintainers = with maintainers; [ bjornfor ];
30 };
31}