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 , typing-extensions
, curio , curio
, hypothesis , hypothesis
, mock
, pytest-mock
, pytestCheckHook , pytestCheckHook
, trio , trio
, trustme , trustme
@ -16,7 +18,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "anyio"; pname = "anyio";
version = "2.2.0"; version = "3.1.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -24,7 +26,7 @@ buildPythonPackage rec {
owner = "agronholm"; owner = "agronholm";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "0ram1niv2lg9qj53zssph104a4kxl8f94ilfn6mibn034m3ikcc8"; sha256 = "sha256-zQiSAQN7cp1s+8hDTvYaMkHUXV1ccNwIsl2IOztH7J8=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -37,18 +39,21 @@ buildPythonPackage rec {
checkInputs = [ checkInputs = [
curio curio
hypothesis hypothesis
pytest-mock
pytestCheckHook pytestCheckHook
trio trio
trustme trustme
uvloop uvloop
] ++ lib.optionals (pythonOlder "3.8") [
mock
]; ];
pytestFlagsArray = [ disabledTestPaths = [
# lots of DNS lookups # lots of DNS lookups
"--ignore=tests/test_sockets.py" "tests/test_sockets.py"
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
# darwin sandboxing limitations # darwin sandboxing limitations
"--ignore=tests/streams/test_tls.py" "tests/streams/test_tls.py"
]; ];
pythonImportsCheck = [ "anyio" ]; pythonImportsCheck = [ "anyio" ];

Loading…
Cancel
Save