python3Packages.anyio: 2.2.0 -> 3.1.0

launchpad/nixpkgs/master
Fabian Affolter 3 years ago committed by Jonathan Ringer
parent 973b16c79c
commit 7b22e0adfa
  1. 17
      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" ];

Loading…
Cancel
Save