Loading pkgs/tools/admin/azure-cli/default.nix +13 −7 Original line number Diff line number Diff line { stdenv, lib, python3, fetchPypi, fetchFromGitHub, installShellFiles }: { lib , stdenv , python3 , fetchPypi , fetchFromGitHub , installShellFiles }: let version = "2.52.0"; version = "2.53.0"; src = fetchFromGitHub { name = "azure-cli-${version}-src"; owner = "Azure"; repo = "azure-cli"; rev = "azure-cli-${version}"; hash = "sha256-wa0LmBMv3eQIsWEKMAHks+TvBZmTdFepPGG5XQRvZXk="; hash = "sha256-5c2Z0EJnKyLqWiz8/BEFAdy5A0+sBbai7UQ2KPL1jr8="; }; # put packages that needs to be overridden in the py package scope Loading @@ -28,18 +34,17 @@ py.pkgs.toPythonApplication (py.pkgs.buildAzureCliPackage { --replace "chardet~=3.0.4" "chardet" \ --replace "javaproperties~=0.5.1" "javaproperties" \ --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 sed -i setup.py \ -e '/azure-cli-command_modules-nspkg/d' \ -e '/azure-cli-nspkg/d' \ -e '/urllib3/d' ''; nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ]; propagatedBuildInputs = with py.pkgs; [ azure-appconfiguration Loading Loading @@ -128,6 +133,7 @@ py.pkgs.toPythonApplication (py.pkgs.buildAzureCliPackage { azure-mgmt-web azure-multiapi-storage azure-storage-blob azure-storage-common azure-synapse-accesscontrol azure-synapse-artifacts azure-synapse-managedprivateendpoints Loading pkgs/tools/admin/azure-cli/python-packages.nix +10 −20 Original line number Diff line number Diff line { stdenv, python3, fetchPypi, src, version }: { stdenv , python3 , fetchPypi , src , version }: let buildAzureCliPackage = with py.pkgs; buildPythonPackage; Loading Loading @@ -60,16 +65,10 @@ let tabulate ]; postPatch = '' 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[broker]==1.24.0b1" "msal[broker]" \ --replace "packaging>=20.9,<22.0" "packaging" ''; nativeCheckInputs = with self; [ pytest ]; doCheck = stdenv.isLinux; # ignore tests that does network call, or assume powershell checkPhase = '' rm azure/{,cli/}__init__.py Loading Loading @@ -205,8 +204,8 @@ let azure-mgmt-devtestlabs = overrideAzureMgmtPackage super.azure-mgmt-devtestlabs "4.0.0" "zip" "sha256-WVScTEBo8mRmsQl7V0qOUJn7LNbIvgoAOVsG07KeJ40=r"; azure-mgmt-netapp = overrideAzureMgmtPackage super.azure-mgmt-netapp "10.0.0" "zip" "sha256-9+cXsY8Qr5ds9lYw39duWdcqm6QUTedQbjn8x6zJoyE="; azure-mgmt-netapp = overrideAzureMgmtPackage super.azure-mgmt-netapp "10.1.0" "zip" "sha256-eJiWTOCk2C79Jotku9bKlu3vU6H8004hWrX+h76MjQM="; azure-mgmt-dns = overrideAzureMgmtPackage super.azure-mgmt-dns "8.0.0" "zip" "sha256-QHwtrLM1E/++nKS+Wt216dS64Mt++mE8P31THve/jeg="; Loading Loading @@ -351,15 +350,6 @@ let }; }); azure-storage-blob = super.azure-storage-blob.overrideAttrs (oldAttrs: rec { version = "1.5.0"; src = fetchPypi { inherit (oldAttrs) pname; inherit version; hash = "sha256-8YeoeOehkfTgmBWZBPcrQUbPcOGquvZISrS6cvxvJSw="; }; }); azure-storage-common = super.azure-storage-common.overrideAttrs (oldAttrs: rec { version = "1.4.2"; src = fetchPypi { Loading Loading
pkgs/tools/admin/azure-cli/default.nix +13 −7 Original line number Diff line number Diff line { stdenv, lib, python3, fetchPypi, fetchFromGitHub, installShellFiles }: { lib , stdenv , python3 , fetchPypi , fetchFromGitHub , installShellFiles }: let version = "2.52.0"; version = "2.53.0"; src = fetchFromGitHub { name = "azure-cli-${version}-src"; owner = "Azure"; repo = "azure-cli"; rev = "azure-cli-${version}"; hash = "sha256-wa0LmBMv3eQIsWEKMAHks+TvBZmTdFepPGG5XQRvZXk="; hash = "sha256-5c2Z0EJnKyLqWiz8/BEFAdy5A0+sBbai7UQ2KPL1jr8="; }; # put packages that needs to be overridden in the py package scope Loading @@ -28,18 +34,17 @@ py.pkgs.toPythonApplication (py.pkgs.buildAzureCliPackage { --replace "chardet~=3.0.4" "chardet" \ --replace "javaproperties~=0.5.1" "javaproperties" \ --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 sed -i setup.py \ -e '/azure-cli-command_modules-nspkg/d' \ -e '/azure-cli-nspkg/d' \ -e '/urllib3/d' ''; nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ]; propagatedBuildInputs = with py.pkgs; [ azure-appconfiguration Loading Loading @@ -128,6 +133,7 @@ py.pkgs.toPythonApplication (py.pkgs.buildAzureCliPackage { azure-mgmt-web azure-multiapi-storage azure-storage-blob azure-storage-common azure-synapse-accesscontrol azure-synapse-artifacts azure-synapse-managedprivateendpoints Loading
pkgs/tools/admin/azure-cli/python-packages.nix +10 −20 Original line number Diff line number Diff line { stdenv, python3, fetchPypi, src, version }: { stdenv , python3 , fetchPypi , src , version }: let buildAzureCliPackage = with py.pkgs; buildPythonPackage; Loading Loading @@ -60,16 +65,10 @@ let tabulate ]; postPatch = '' 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[broker]==1.24.0b1" "msal[broker]" \ --replace "packaging>=20.9,<22.0" "packaging" ''; nativeCheckInputs = with self; [ pytest ]; doCheck = stdenv.isLinux; # ignore tests that does network call, or assume powershell checkPhase = '' rm azure/{,cli/}__init__.py Loading Loading @@ -205,8 +204,8 @@ let azure-mgmt-devtestlabs = overrideAzureMgmtPackage super.azure-mgmt-devtestlabs "4.0.0" "zip" "sha256-WVScTEBo8mRmsQl7V0qOUJn7LNbIvgoAOVsG07KeJ40=r"; azure-mgmt-netapp = overrideAzureMgmtPackage super.azure-mgmt-netapp "10.0.0" "zip" "sha256-9+cXsY8Qr5ds9lYw39duWdcqm6QUTedQbjn8x6zJoyE="; azure-mgmt-netapp = overrideAzureMgmtPackage super.azure-mgmt-netapp "10.1.0" "zip" "sha256-eJiWTOCk2C79Jotku9bKlu3vU6H8004hWrX+h76MjQM="; azure-mgmt-dns = overrideAzureMgmtPackage super.azure-mgmt-dns "8.0.0" "zip" "sha256-QHwtrLM1E/++nKS+Wt216dS64Mt++mE8P31THve/jeg="; Loading Loading @@ -351,15 +350,6 @@ let }; }); azure-storage-blob = super.azure-storage-blob.overrideAttrs (oldAttrs: rec { version = "1.5.0"; src = fetchPypi { inherit (oldAttrs) pname; inherit version; hash = "sha256-8YeoeOehkfTgmBWZBPcrQUbPcOGquvZISrS6cvxvJSw="; }; }); azure-storage-common = super.azure-storage-common.overrideAttrs (oldAttrs: rec { version = "1.4.2"; src = fetchPypi { Loading