33 buildPythonPackage rec {
38 disabled = pythonOlder "3.8";
40 src = fetchFromGitHub {
44 hash = "sha256-8QLOAjQpiNtbd+YSHfqcBVdtMSGJFRevOcacZErKuso=";
47 build-system = [ setuptools-scm ];
54 ++ lib.optionals (pythonOlder "3.11") [
59 optional-dependencies = {
72 ] ++ optional-dependencies.trio;
76 "ignore::trio.TrioDeprecationWarning"
83 # TypeError: __subprocess_run() got an unexpected keyword argument 'umask'
85 # AttributeError: 'module' object at __main__ has no attribute '__file__'
86 "test_nonexistent_main_module"
87 # 3 second timeout expired
88 "test_keyboardinterrupt_during_test"
90 ++ lib.optionals stdenv.hostPlatform.isDarwin [
91 # PermissionError: [Errno 1] Operation not permitted: '/dev/console'
92 "test_is_block_device"
97 "tests/test_sockets.py"
100 __darwinAllowLocalNetworking = true;
102 pythonImportsCheck = [ "anyio" ];
109 changelog = "https://github.com/agronholm/anyio/blob/${src.rev}/docs/versionhistory.rst";
110 description = "High level compatibility layer for multiple asynchronous event loop implementations on Python";
111 homepage = "https://github.com/agronholm/anyio";
112 license = licenses.mit;
113 maintainers = with maintainers; [ hexa ];