Merge pull request #141235 from jonringer/fix-azure-packages
This commit is contained in:
commit
bd7b2093e2
@ -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" ];
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user