nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python310Packages.anyio: 3.6.2 -> 3.7.0

https://github.com/agronholm/anyio/blob/3.7.0/docs/versionhistory.rst

+32 -25
+32 -25
pkgs/development/python-modules/anyio/default.nix
··· 3 3 , buildPythonPackage 4 4 , fetchFromGitHub 5 5 , pythonOlder 6 + 7 + # build-system 6 8 , setuptools 7 9 , setuptools-scm 10 + 11 + # dependencies 12 + , exceptiongroup 8 13 , idna 9 14 , sniffio 10 - , typing-extensions 11 - , curio 15 + 16 + # optionals 17 + , trio 18 + 19 + # tests 12 20 , hypothesis 13 - , mock 21 + , psutil 14 22 , pytest-mock 15 23 , pytest-xdist 16 24 , pytestCheckHook 17 - , trio 18 25 , trustme 19 26 , uvloop 20 27 }: 21 28 22 29 buildPythonPackage rec { 23 30 pname = "anyio"; 24 - version = "3.6.2"; 31 + version = "3.7.0"; 25 32 format = "pyproject"; 33 + 26 34 disabled = pythonOlder "3.7"; 27 35 28 36 src = fetchFromGitHub { 29 37 owner = "agronholm"; 30 38 repo = pname; 31 39 rev = version; 32 - hash = "sha256-bootaulvx9zmobQGDirsMz5uxuLeCD9ggAvYkPaKnWo="; 40 + hash = "sha256-uXPp2ycYl3T/ybZihDchImC/Yi4qgHI37ZeA+I6dg4c="; 33 41 }; 34 42 35 - preBuild = '' 36 - export SETUPTOOLS_SCM_PRETEND_VERSION=${version} 37 - ''; 43 + env.SETUPTOOLS_SCM_PRETEND_VERSION = version; 38 44 39 45 nativeBuildInputs = [ 40 46 setuptools ··· 50 44 propagatedBuildInputs = [ 51 45 idna 52 46 sniffio 53 - ] ++ lib.optionals (pythonOlder "3.8") [ 54 - typing-extensions 47 + ] ++ lib.optionals (pythonOlder "3.11") [ 48 + exceptiongroup 55 49 ]; 50 + 51 + passthru.optional-dependencies = { 52 + trio = [ 53 + trio 54 + ]; 55 + }; 56 56 57 57 # trustme uses pyopenssl 58 58 doCheck = !(stdenv.isDarwin && stdenv.isAarch64); 59 59 60 60 nativeCheckInputs = [ 61 - curio 62 61 hypothesis 62 + psutil 63 63 pytest-mock 64 64 pytest-xdist 65 65 pytestCheckHook 66 - trio 67 66 trustme 67 + ] ++ lib.optionals (pythonOlder "3.12") [ 68 68 uvloop 69 - ] ++ lib.optionals (pythonOlder "3.8") [ 70 - mock 71 - ]; 69 + ] ++ passthru.optional-dependencies.trio; 72 70 73 71 pytestFlagsArray = [ 74 72 "-W" "ignore::trio.TrioDeprecationWarning" 73 + "-m" "'not network'" 75 74 ]; 76 75 77 76 disabledTests = [ 78 - # block devices access 79 - "test_is_block_device" 80 77 # INTERNALERROR> AttributeError: 'NonBaseMultiError' object has no attribute '_exceptions'. Did you mean: 'exceptions'? 81 78 "test_exception_group_children" 82 79 "test_exception_group_host" 83 80 "test_exception_group_filtering" 84 - # regression in python 3.11.3 and 3.10.11 85 - # https://github.com/agronholm/anyio/issues/550 86 - "TestTLSStream" 87 - "TestTLSListener" 81 + ] ++ lib.optionals stdenv.isDarwin [ 82 + # PermissionError: [Errno 1] Operation not permitted: '/dev/console' 83 + "test_is_block_device" 88 84 ]; 89 85 90 86 disabledTestPaths = [ 91 87 # lots of DNS lookups 92 88 "tests/test_sockets.py" 93 - ] ++ lib.optionals stdenv.isDarwin [ 94 - # darwin sandboxing limitations 95 - "tests/streams/test_tls.py" 96 89 ]; 90 + 91 + __darwinAllowLocalNetworking = true; 97 92 98 93 pythonImportsCheck = [ "anyio" ]; 99 94