From 20ed73038587b564747eaee3c5a5f5857e8b5454 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 16 Feb 2026 13:36:41 +0200 Subject: [PATCH 1/4] python3.pkgs.msrest: modernize attributes & sort arguments --- .../python-modules/msrest/default.nix | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/msrest/default.nix b/pkgs/development/python-modules/msrest/default.nix index 228f55b547ad..c7b35f6b7ea6 100644 --- a/pkgs/development/python-modules/msrest/default.nix +++ b/pkgs/development/python-modules/msrest/default.nix @@ -1,19 +1,25 @@ { lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, + + # build-system + setuptools, + + # dependencies aiodns, aiohttp, azure-core, - buildPythonPackage, certifi, - fetchFromGitHub, - httpretty, isodate, - pytest-aiohttp, - pytestCheckHook, - pythonAtLeast, requests, requests-oauthlib, - setuptools, + + # tests + pytestCheckHook, + pytest-aiohttp, + httpretty, trio, }: @@ -30,12 +36,12 @@ buildPythonPackage { hash = "sha256-1EXXXflhDeU+erdI+NsWxSX76ooDTl3+MyQwRzm2xV0="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ - azure-core + dependencies = [ aiodns aiohttp + azure-core certifi isodate requests From c4d48ad522b15e2d4e3bec998bfc9c8c6c34dc7b Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 16 Feb 2026 13:42:50 +0200 Subject: [PATCH 2/4] python3.pkgs.msrest: expand comment on disabled tests --- pkgs/development/python-modules/msrest/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/msrest/default.nix b/pkgs/development/python-modules/msrest/default.nix index c7b35f6b7ea6..9e05abdbff27 100644 --- a/pkgs/development/python-modules/msrest/default.nix +++ b/pkgs/development/python-modules/msrest/default.nix @@ -66,7 +66,10 @@ buildPythonPackage { "test_conf_async_trio_requests" ] ++ lib.optionals (pythonAtLeast "3.12") [ - # AttributeError: 'TestAuthentication' object has no attribute... + # See https://github.com/Azure/msrest-for-python/issues/261 + # Upstream ignores the following patch that should fix it: + # https://github.com/Azure/msrest-for-python/pull/262 + # And it doesn't apply anymore. "test_apikey_auth" "test_cs_auth" "test_eventgrid_auth" From 1a6cf817d9e96c14b47d5a842eaf582561777c50 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 16 Feb 2026 13:44:16 +0200 Subject: [PATCH 3/4] python3.pkgs.msrest: expand comment for missing git tags --- pkgs/development/python-modules/msrest/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/msrest/default.nix b/pkgs/development/python-modules/msrest/default.nix index 9e05abdbff27..38d57b851f77 100644 --- a/pkgs/development/python-modules/msrest/default.nix +++ b/pkgs/development/python-modules/msrest/default.nix @@ -31,7 +31,8 @@ buildPythonPackage { src = fetchFromGitHub { owner = "Azure"; repo = "msrest-for-python"; - # no tag for 0.7.1 + # no tag for 0.7.1 see: + # https://github.com/Azure/msrest-for-python/issues/254 rev = "2d8fd04f68a124d0f3df7b81584accc3270b1afc"; hash = "sha256-1EXXXflhDeU+erdI+NsWxSX76ooDTl3+MyQwRzm2xV0="; }; From f3e179d71020a7386d77464ed0fd212c5173a310 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 16 Feb 2026 13:52:09 +0200 Subject: [PATCH 4/4] python314Packages.msrest: disable failing tests --- pkgs/development/python-modules/msrest/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/msrest/default.nix b/pkgs/development/python-modules/msrest/default.nix index 38d57b851f77..83756a617e41 100644 --- a/pkgs/development/python-modules/msrest/default.nix +++ b/pkgs/development/python-modules/msrest/default.nix @@ -77,6 +77,13 @@ buildPythonPackage { "test_eventgrid_domain_auth" ]; + disabledTestPaths = [ + # 2 AssertionErrors... See: + # https://github.com/Azure/msrest-for-python/issues/267 + "tests/asynctests/test_async_client.py::TestServiceClient::test_client_send" + "tests/test_client.py::TestServiceClient::test_client_send" + ]; + pythonImportsCheck = [ "msrest" ]; meta = {