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