azure-cli: fix build

This commit is contained in:
Weijia Wang 2023-03-16 13:57:07 +02:00 committed by Jonathan Ringer
parent 154951f17c
commit f31855a339
2 changed files with 5 additions and 2 deletions

View File

@ -27,7 +27,9 @@ py.pkgs.toPythonApplication (py.pkgs.buildAzureCliPackage {
substituteInPlace setup.py \
--replace "chardet~=3.0.4" "chardet" \
--replace "javaproperties~=0.5.1" "javaproperties" \
--replace "scp~=0.13.2" "scp"
--replace "scp~=0.13.2" "scp" \
--replace "packaging>=20.9,<22.0" "packaging" \
--replace "fabric~=2.4" "fabric"
# remove namespace hacks
# remove urllib3 because it was added as 'urllib3[secure]', which doesn't get handled well

View File

@ -62,7 +62,8 @@ let
substituteInPlace setup.py \
--replace "requests[socks]~=2.25.1" "requests[socks]~=2.25" \
--replace "cryptography>=3.2,<3.4" "cryptography" \
--replace "msal-extensions>=0.3.1,<0.4" "msal-extensions"
--replace "msal-extensions>=0.3.1,<0.4" "msal-extensions" \
--replace "packaging>=20.9,<22.0" "packaging"
'';
nativeCheckInputs = with self; [ pytest ];
doCheck = stdenv.isLinux;