azure-cli: replace portalocker version for azure-cli-telemetry

This commit is contained in:
Artturin 2021-06-29 01:46:59 +03:00 committed by Jonathan Ringer
parent 95df9607b5
commit 0d8cbf704c

View file

@ -6,7 +6,7 @@ let
prePatch = (attrs.prePatch or "") + ''
rm -f azure_bdist_wheel.py tox.ini
substituteInPlace setup.py \
--replace "cryptography>=2.3.1,<3.0.0" "cryptography"
--replace "cryptography>=3.2,<3.4" "cryptography"
sed -i "/azure-namespace-package/c\ " setup.cfg
'';
@ -119,6 +119,12 @@ let
portalocker
];
# upstream doesn't update this requirement probably because they use pip
postPatch = ''
substituteInPlace setup.py \
--replace "portalocker~=1.6" "portalocker"
'';
# ignore flaky test
checkPhase = ''
cd azure