1{ lib
2, fetchPypi
3, buildPythonPackage
4, isPyPy
5, python
6, libev
7, cffi
8, cython_3
9, greenlet
10, setuptools
11, wheel
12, zope_event
13, zope_interface
14, pythonOlder
15}:
16
17buildPythonPackage rec {
18 pname = "gevent";
19 version = "22.10.2";
20 format = "pyproject";
21
22 disabled = pythonOlder "3.7";
23
24 src = fetchPypi {
25 inherit pname version;
26 hash = "sha256-HKAdoXbuN7NSeicC99QNvJ/7jPx75aA7+k+e7EXlXEY=";
27 };
28
29 nativeBuildInputs = [
30 cython_3
31 setuptools
32 wheel
33 ] ++ lib.optionals (!isPyPy) [
34 cffi
35 ];
36
37 buildInputs = [
38 libev
39 ];
40
41 propagatedBuildInputs = [
42 zope_event
43 zope_interface
44 ] ++ lib.optionals (!isPyPy) [
45 greenlet
46 ];
47
48 # Bunch of failures.
49 doCheck = false;
50
51 pythonImportsCheck = [
52 "gevent"
53 ];
54
55 meta = with lib; {
56 description = "Coroutine-based networking library";
57 homepage = "http://www.gevent.org/";
58 license = licenses.mit;
59 maintainers = with maintainers; [ bjornfor ];
60 platforms = platforms.unix;
61 };
62}