azure-cli: 2.52.0 -> 2.53.0

authored by Fabian Affolter and committed by Jonathan Ringer 17ab378c 6d882d7f

+23 -27
+13 -7
pkgs/tools/admin/azure-cli/default.nix
··· 1 - { stdenv, lib, python3, fetchPypi, fetchFromGitHub, installShellFiles }: 1 + { lib 2 + , stdenv 3 + , python3 4 + , fetchPypi 5 + , fetchFromGitHub 6 + , installShellFiles 7 + }: 2 8 3 9 let 4 - version = "2.52.0"; 10 + version = "2.53.0"; 5 11 6 12 src = fetchFromGitHub { 7 13 name = "azure-cli-${version}-src"; 8 14 owner = "Azure"; 9 15 repo = "azure-cli"; 10 16 rev = "azure-cli-${version}"; 11 - hash = "sha256-wa0LmBMv3eQIsWEKMAHks+TvBZmTdFepPGG5XQRvZXk="; 17 + hash = "sha256-5c2Z0EJnKyLqWiz8/BEFAdy5A0+sBbai7UQ2KPL1jr8="; 12 18 }; 13 19 14 20 # put packages that needs to be overridden in the py package scope ··· 28 34 --replace "chardet~=3.0.4" "chardet" \ 29 35 --replace "javaproperties~=0.5.1" "javaproperties" \ 30 36 --replace "scp~=0.13.2" "scp" \ 31 - --replace "packaging>=20.9,<22.0" "packaging" \ 32 37 --replace "fabric~=2.4" "fabric" 33 38 34 39 # remove namespace hacks 35 40 # remove urllib3 because it was added as 'urllib3[secure]', which doesn't get handled well 36 41 sed -i setup.py \ 37 - -e '/azure-cli-command_modules-nspkg/d' \ 38 - -e '/azure-cli-nspkg/d' \ 39 42 -e '/urllib3/d' 40 43 ''; 41 44 42 - nativeBuildInputs = [ installShellFiles ]; 45 + nativeBuildInputs = [ 46 + installShellFiles 47 + ]; 43 48 44 49 propagatedBuildInputs = with py.pkgs; [ 45 50 azure-appconfiguration ··· 128 133 azure-mgmt-web 129 134 azure-multiapi-storage 130 135 azure-storage-blob 136 + azure-storage-common 131 137 azure-synapse-accesscontrol 132 138 azure-synapse-artifacts 133 139 azure-synapse-managedprivateendpoints
+10 -20
pkgs/tools/admin/azure-cli/python-packages.nix
··· 1 - { stdenv, python3, fetchPypi, src, version }: 1 + { stdenv 2 + , python3 3 + , fetchPypi 4 + , src 5 + , version 6 + }: 2 7 3 8 let 4 9 buildAzureCliPackage = with py.pkgs; buildPythonPackage; ··· 60 65 tabulate 61 66 ]; 62 67 63 - postPatch = '' 64 - substituteInPlace setup.py \ 65 - --replace "requests[socks]~=2.25.1" "requests[socks]~=2.25" \ 66 - --replace "cryptography>=3.2,<3.4" "cryptography" \ 67 - --replace "msal-extensions>=0.3.1,<0.4" "msal-extensions" \ 68 - --replace "msal[broker]==1.24.0b1" "msal[broker]" \ 69 - --replace "packaging>=20.9,<22.0" "packaging" 70 - ''; 71 68 nativeCheckInputs = with self; [ pytest ]; 69 + 72 70 doCheck = stdenv.isLinux; 71 + 73 72 # ignore tests that does network call, or assume powershell 74 73 checkPhase = '' 75 74 rm azure/{,cli/}__init__.py ··· 205 204 azure-mgmt-devtestlabs = overrideAzureMgmtPackage super.azure-mgmt-devtestlabs "4.0.0" "zip" 206 205 "sha256-WVScTEBo8mRmsQl7V0qOUJn7LNbIvgoAOVsG07KeJ40=r"; 207 206 208 - azure-mgmt-netapp = overrideAzureMgmtPackage super.azure-mgmt-netapp "10.0.0" "zip" 209 - "sha256-9+cXsY8Qr5ds9lYw39duWdcqm6QUTedQbjn8x6zJoyE="; 207 + azure-mgmt-netapp = overrideAzureMgmtPackage super.azure-mgmt-netapp "10.1.0" "zip" 208 + "sha256-eJiWTOCk2C79Jotku9bKlu3vU6H8004hWrX+h76MjQM="; 210 209 211 210 azure-mgmt-dns = overrideAzureMgmtPackage super.azure-mgmt-dns "8.0.0" "zip" 212 211 "sha256-QHwtrLM1E/++nKS+Wt216dS64Mt++mE8P31THve/jeg="; ··· 348 347 inherit version; 349 348 hash = "sha256-0Lti2L+OGWuQPzlxukr6RI5P4U6DlOv83ZQdhNYuyv4="; 350 349 extension = "zip"; 351 - }; 352 - }); 353 - 354 - azure-storage-blob = super.azure-storage-blob.overrideAttrs (oldAttrs: rec { 355 - version = "1.5.0"; 356 - src = fetchPypi { 357 - inherit (oldAttrs) pname; 358 - inherit version; 359 - hash = "sha256-8YeoeOehkfTgmBWZBPcrQUbPcOGquvZISrS6cvxvJSw="; 360 350 }; 361 351 }); 362 352