1{ lib, fetchPypi, buildPythonPackage, isPyPy, python, libev, greenlet
2, zope_interface
3}:
4
5buildPythonPackage rec {
6 pname = "gevent";
7 version = "20.9.0";
8 format = "pyproject";
9
10 src = fetchPypi {
11 inherit pname version;
12 sha256 = "13aw9x6imsy3b369kfjblqiwfni69pp32m4r13n62r9k3l2lhvaz";
13 };
14
15 buildInputs = [ libev ];
16 propagatedBuildInputs = [
17 zope_interface
18 ] ++ 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 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}