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