From 63c1c92476002df0b5b5aede8ff457880a152810 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Sun, 10 Oct 2021 23:05:54 -0700 Subject: [PATCH 1/3] python3Packages.msal: unpin dependencies --- pkgs/development/python-modules/msal/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/msal/default.nix b/pkgs/development/python-modules/msal/default.nix index aa8daa1a2e8d..aaacce907927 100644 --- a/pkgs/development/python-modules/msal/default.nix +++ b/pkgs/development/python-modules/msal/default.nix @@ -21,6 +21,13 @@ buildPythonPackage rec { requests ]; + # we already have cryptography included, version bounds are causing issues + postPatch = '' + substituteInPlace setup.py \ + --replace "PyJWT[crypto]>=1.0.0,<3" "PyJWT" \ + --replace "cryptography>=0.6,<38" "cryptography" + ''; + # Tests assume Network Connectivity: # https://github.com/AzureAD/microsoft-authentication-library-for-python/blob/e2958961e8ec16d0af4199f60c36c3f913497e48/tests/test_authority.py#L73 doCheck = false; From b53d3aa90a5aef05dd5c1c7b1ddb454eaf340d0d Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Sun, 10 Oct 2021 23:06:20 -0700 Subject: [PATCH 2/3] python3Packages.azure-core: fix tests --- pkgs/development/python-modules/azure-core/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/azure-core/default.nix b/pkgs/development/python-modules/azure-core/default.nix index cd0a816815cd..773696c03958 100644 --- a/pkgs/development/python-modules/azure-core/default.nix +++ b/pkgs/development/python-modules/azure-core/default.nix @@ -44,6 +44,11 @@ buildPythonPackage rec { typing-extensions ]; + # test server needs to be available + preCheck = '' + export PYTHONPATH=tests/testserver_tests/coretestserver:$PYTHONPATH + ''; + pytestFlagsArray = [ "tests/" ]; # disable tests which touch network disabledTests = [ "aiohttp" "multipart_send" "response" "request" "timeout" ]; From f9d6320135ec341e853eb2594bcbb06cf856b141 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 11 Oct 2021 16:52:54 +0200 Subject: [PATCH 3/3] python3Packages.google-cloud-storage: disable tests that requires docker --- pkgs/development/python-modules/google-cloud-storage/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/google-cloud-storage/default.nix b/pkgs/development/python-modules/google-cloud-storage/default.nix index 5737731b0728..80023aeb5e9b 100644 --- a/pkgs/development/python-modules/google-cloud-storage/default.nix +++ b/pkgs/development/python-modules/google-cloud-storage/default.nix @@ -54,6 +54,7 @@ buildPythonPackage rec { "tests/system/test_bucket.py" "tests/system/test_fileio.py" "tests/system/test_kms_integration.py" + "tests/conformance/test_conformance.py" # requires docker ]; # prevent google directory from shadowing google imports