Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990{ lib, stdenv, buildPythonPackage, fetchFromGitHub,
# build-system hatch-vcs, hatchling,
# dependencies dnspython, greenlet, isPyPy, six,
# tests iana-etc, pytestCheckHook, libredirect,}:
buildPythonPackage rec { pname = "eventlet"; version = "0.41.0"; pyproject = true;
src = fetchFromGitHub { owner = "eventlet"; repo = "eventlet"; tag = version; hash = "sha256-g/AmHqCtWExp8XAdb9/knfATPne9Ma8MbIhYBHZxyOY="; };
pythonRelaxDeps = lib.optionals isPyPy [ "greenlet" ];
build-system = [ hatch-vcs hatchling ];
dependencies = [ dnspython greenlet six ];
nativeCheckInputs = [ libredirect.hook pytestCheckHook ];
# tests hang on pypy indefinitely # most tests also fail/flake on Darwin doCheck = !isPyPy && !stdenv.hostPlatform.isDarwin;
preCheck = lib.optionalString doCheck '' echo "nameserver 127.0.0.1" > resolv.conf export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf)
export EVENTLET_IMPORT_VERSION_ONLY=0 '';
disabledTests = [ # AssertionError: Expected single line "pass" in stdout "test_fork_after_monkey_patch" # Tests requires network access "test_getaddrinfo" "test_hosts_no_network" # flaky test, depends on builder performance "test_server_connection_timeout_exception" # broken with openssl 3.4 "test_ssl_close" # flaky test "test_send_timeout" # greenlet 3.5.1 compat issue "test_patcher_existing_logging_module_lock" ];
pythonImportsCheck = [ "eventlet" ];
meta = { changelog = "https://github.com/eventlet/eventlet/blob/${src.tag}/NEWS"; description = "Concurrent networking library for Python"; homepage = "https://github.com/eventlet/eventlet/"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ SuperSandro2000 ]; };}