nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, fetchPypi
3, buildPythonPackage
4, isPyPy
5, python
6, libev
7, greenlet
8, zope_event
9, zope_interface
10, pythonOlder
11}:
12
13buildPythonPackage rec {
14 pname = "gevent";
15 version = "21.12.0";
16 format = "pyproject";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-9ItkV4w2e5H6eTv46qr0mVy5PIvEWGDkc7+GgHCtCU4=";
23 };
24
25 buildInputs = [
26 libev
27 ];
28
29 propagatedBuildInputs = [
30 zope_event
31 zope_interface
32 ] ++ lib.optionals (!isPyPy) [
33 greenlet
34 ];
35
36 # Bunch of failures.
37 doCheck = false;
38
39 pythonImportsCheck = [
40 "gevent"
41 ];
42
43 meta = with lib; {
44 description = "Coroutine-based networking library";
45 homepage = "http://www.gevent.org/";
46 license = licenses.mit;
47 maintainers = with maintainers; [ bjornfor ];
48 platforms = platforms.unix;
49 };
50}