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