Merge pull request #141235 from jonringer/fix-azure-packages

This commit is contained in:
Martin Weinelt 2021-10-11 17:04:02 +02:00 committed by GitHub
commit bd7b2093e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 0 deletions

View File

@ -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" ];

View File

@ -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

View File

@ -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;