23 buildPythonPackage rec {
28 src = fetchFromGitHub {
32 hash = "sha256-jMbCxqIn9f9+16rFwpQdkBHj6NwTNkQxnSVV4qQ1fjM=";
40 propagatedBuildInputs = [
50 # libredirect is not available on darwin
51 # tests hang on pypy indefinitely
52 doCheck = !stdenv.isDarwin && !isPyPy;
54 preCheck = lib.optionalString doCheck ''
55 echo "nameserver 127.0.0.1" > resolv.conf
56 export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf)
57 export LD_PRELOAD=${libredirect}/lib/libredirect.so
59 export EVENTLET_IMPORT_VERSION_ONLY=0
63 # AssertionError: Expected single line "pass" in stdout
64 "test_fork_after_monkey_patch"
65 # Tests requires network access
67 "test_hosts_no_network"
70 pythonImportsCheck = [ "eventlet" ];
73 changelog = "https://github.com/eventlet/eventlet/blob/v${version}/NEWS";
74 description = "A concurrent networking library for Python";
75 homepage = "https://github.com/eventlet/eventlet/";
76 license = licenses.mit;
77 maintainers = with maintainers; [ SuperSandro2000 ];