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