Merge pull request #137280 from SuperSandro2000/eventlet

authored by

Sandro and committed by
GitHub
2cbbea18 c995e9f2

+19 -7
+19 -7
pkgs/development/python-modules/eventlet/default.nix
··· 8 , monotonic 9 , six 10 , nose 11 }: 12 13 buildPythonPackage rec { ··· 22 propagatedBuildInputs = [ dnspython greenlet monotonic six ] 23 ++ lib.optional (pythonOlder "3.4") enum34; 24 25 - prePatch = '' 26 - substituteInPlace setup.py \ 27 - --replace "dnspython >= 1.15.0, < 2.0.0" "dnspython" 28 ''; 29 30 - checkInputs = [ nose ]; 31 32 - doCheck = false; # too much transient errors to bother 33 34 # unfortunately, it needs /etc/protocol to be present to not fail 35 - #pythonImportsCheck = [ "eventlet" ]; 36 37 meta = with lib; { 38 homepage = "https://pypi.python.org/pypi/eventlet/"; 39 description = "A concurrent networking library for Python"; 40 license = licenses.mit; 41 }; 42 - 43 }
··· 8 , monotonic 9 , six 10 , nose 11 + , pyopenssl 12 + , iana-etc 13 + , libredirect 14 }: 15 16 buildPythonPackage rec { ··· 25 propagatedBuildInputs = [ dnspython greenlet monotonic six ] 26 ++ lib.optional (pythonOlder "3.4") enum34; 27 28 + checkInputs = [ nose pyopenssl ]; 29 + 30 + preCheck = '' 31 + echo "nameserver 127.0.0.1" > resolv.conf 32 + export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf) 33 + export LD_PRELOAD=${libredirect}/lib/libredirect.so 34 + 35 + export EVENTLET_IMPORT_VERSION_ONLY=0 36 ''; 37 38 + checkPhase = '' 39 + runHook preCheck 40 + 41 + nosetests --exclude test_getaddrinfo --exclude test_hosts_no_network 42 43 + runHook postCheck 44 + ''; 45 46 # unfortunately, it needs /etc/protocol to be present to not fail 47 + # pythonImportsCheck = [ "eventlet" ]; 48 49 meta = with lib; { 50 homepage = "https://pypi.python.org/pypi/eventlet/"; 51 description = "A concurrent networking library for Python"; 52 + maintainers = with maintainers; [ SuperSandro2000 ]; 53 license = licenses.mit; 54 }; 55 }