From 8b6dd73c041219832052ebc58eccccffc63411e6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 14 Jul 2023 09:01:01 +0200 Subject: [PATCH] python311Packages.azure-core: 1.26.3 -> 1.28.0 Changelog: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CHANGELOG.md --- .../python-modules/azure-core/default.nix | 27 ++++++++++++++----- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/azure-core/default.nix b/pkgs/development/python-modules/azure-core/default.nix index 1206bf48710c..44f3c1b81085 100644 --- a/pkgs/development/python-modules/azure-core/default.nix +++ b/pkgs/development/python-modules/azure-core/default.nix @@ -14,19 +14,22 @@ , requests , six , trio -, typing-extensions }: +, typing-extensions +}: buildPythonPackage rec { - version = "1.26.3"; + version = "1.28.0"; pname = "azure-core"; - disabled = pythonOlder "3.6"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; __darwinAllowLocalNetworking = true; src = fetchPypi { inherit pname version; extension = "zip"; - hash = "sha256-rL0NqpZ1zohiPaNcgNgZza+pFzHe5rJpXGTXyp2oLbQ="; + hash = "sha256-6e78Zvwf3lbatvBNTl0SxgdU1an6Sb3P2FNPyW7ZNr0="; }; propagatedBuildInputs = [ @@ -35,9 +38,14 @@ buildPythonPackage rec { typing-extensions ]; + passthru.optional-dependencies = { + aio = [ + aiohttp + ]; + }; + nativeCheckInputs = [ aiodns - aiohttp flask mock pytest @@ -45,14 +53,17 @@ buildPythonPackage rec { pytest-asyncio pytestCheckHook trio - ]; + ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); # test server needs to be available preCheck = '' export PYTHONPATH=tests/testserver_tests/coretestserver:$PYTHONPATH ''; - pytestFlagsArray = [ "tests/" ]; + pytestFlagsArray = [ + "tests/" + ]; + # disable tests which touch network disabledTests = [ "aiohttp" @@ -68,6 +79,7 @@ buildPythonPackage rec { ] ++ lib.optionals stdenv.isDarwin [ "location_polling_fail" ]; + disabledTestPaths = [ # requires testing modules which aren't published, and likely to create cyclic dependencies "tests/test_connection_string_parsing.py" @@ -88,6 +100,7 @@ buildPythonPackage rec { meta = with lib; { description = "Microsoft Azure Core Library for Python"; homepage = "https://github.com/Azure/azure-sdk-for-python"; + changelog = "https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ jonringer ]; };