Merge #286085: python311Packages.anyio: 4.1.0 -> 4.2.0

...into staging
This commit is contained in:
Vladimír Čunát 2024-02-17 10:32:04 +01:00
commit 557955ef68
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -12,6 +12,7 @@
, exceptiongroup
, idna
, sniffio
, typing-extensions
# optionals
, trio
@ -28,7 +29,7 @@
buildPythonPackage rec {
pname = "anyio";
version = "4.1.0";
version = "4.2.0";
pyproject = true;
disabled = pythonOlder "3.8";
@ -37,7 +38,7 @@ buildPythonPackage rec {
owner = "agronholm";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-PEDPliWJX3QypwsvJTAJhrQnJx8lWXQQSdyjN0I8L+I=";
hash = "sha256-9BxzdeQ5Yh4FDXGNVx9kiy7/fBmn8esvZkrK4wW4oGA=";
};
nativeBuildInputs = [
@ -50,6 +51,7 @@ buildPythonPackage rec {
sniffio
] ++ lib.optionals (pythonOlder "3.11") [
exceptiongroup
typing-extensions
];
passthru.optional-dependencies = {
@ -77,16 +79,7 @@ buildPythonPackage rec {
"-m" "'not network'"
];
disabledTests = [
# INTERNALERROR> AttributeError: 'NonBaseMultiError' object has no attribute '_exceptions'. Did you mean: 'exceptions'?
"test_exception_group_children"
"test_exception_group_host"
"test_exception_group_filtering"
# timing sensitive
# assert threading.active_count() == initial_count + 1
# assert 4 == (4 + 1)
"test_run_sync_from_thread_pooling"
] ++ lib.optionals stdenv.isDarwin [
disabledTests = lib.optionals (stdenv.isx86_64 && stdenv.isDarwin) [
# PermissionError: [Errno 1] Operation not permitted: '/dev/console'
"test_is_block_device"
];
@ -98,7 +91,9 @@ buildPythonPackage rec {
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "anyio" ];
pythonImportsCheck = [
"anyio"
];
meta = with lib; {
changelog = "https://github.com/agronholm/anyio/blob/${src.rev}/docs/versionhistory.rst";