diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/anyio/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/anyio/default.nix | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/anyio/default.nix b/nixpkgs/pkgs/development/python-modules/anyio/default.nix index e6cc3182487a..86fa3bafa2a8 100644 --- a/nixpkgs/pkgs/development/python-modules/anyio/default.nix +++ b/nixpkgs/pkgs/development/python-modules/anyio/default.nix @@ -8,6 +8,8 @@ , typing-extensions , curio , hypothesis +, mock +, pytest-mock , pytestCheckHook , trio , trustme @@ -16,7 +18,7 @@ buildPythonPackage rec { pname = "anyio"; - version = "2.2.0"; + version = "3.1.0"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -24,7 +26,7 @@ buildPythonPackage rec { owner = "agronholm"; repo = pname; rev = version; - sha256 = "0ram1niv2lg9qj53zssph104a4kxl8f94ilfn6mibn034m3ikcc8"; + sha256 = "sha256-zQiSAQN7cp1s+8hDTvYaMkHUXV1ccNwIsl2IOztH7J8="; }; propagatedBuildInputs = [ @@ -37,18 +39,21 @@ buildPythonPackage rec { checkInputs = [ curio hypothesis + pytest-mock pytestCheckHook trio trustme uvloop + ] ++ lib.optionals (pythonOlder "3.8") [ + mock ]; - pytestFlagsArray = [ - # lots of DNS lookups - "--ignore=tests/test_sockets.py" + disabledTestPaths = [ + # lots of DNS lookups + "tests/test_sockets.py" ] ++ lib.optionals stdenv.isDarwin [ # darwin sandboxing limitations - "--ignore=tests/streams/test_tls.py" + "tests/streams/test_tls.py" ]; pythonImportsCheck = [ "anyio" ]; |