diff --git a/pkgs/by-name/az/azure-cli/package.nix b/pkgs/by-name/az/azure-cli/package.nix index 59b6c92f0435..b62ea5382f6c 100644 --- a/pkgs/by-name/az/azure-cli/package.nix +++ b/pkgs/by-name/az/azure-cli/package.nix @@ -26,14 +26,14 @@ }: let - version = "2.81.0"; + version = "2.82.0"; src = fetchFromGitHub { name = "azure-cli-${version}-src"; owner = "Azure"; repo = "azure-cli"; tag = "azure-cli-${version}"; - hash = "sha256-Z8luIR1G9rLlt9GSOsCIAU87JZ9uolv2kHaDz6xlKYU="; + hash = "sha256-C9qsgJI/+4NKiUSrOANWnGtZPlAt5SaQTtRwcqjwIkk="; }; # put packages that needs to be overridden in the py package scope @@ -238,8 +238,11 @@ py.pkgs.toPythonApplication ( azure-mgmt-trafficmanager azure-mgmt-web azure-monitor-query - azure-multiapi-storage azure-storage-common + azure-storage-blob + azure-storage-file-datalake + azure-storage-file-share + azure-storage-queue azure-synapse-accesscontrol azure-synapse-artifacts azure-synapse-managedprivateendpoints diff --git a/pkgs/by-name/az/azure-cli/python-packages.nix b/pkgs/by-name/az/azure-cli/python-packages.nix index 05ec49e28fc0..332b41845524 100644 --- a/pkgs/by-name/az/azure-cli/python-packages.nix +++ b/pkgs/by-name/az/azure-cli/python-packages.nix @@ -50,6 +50,7 @@ let argcomplete azure-cli-telemetry azure-common + azure-core azure-mgmt-core cryptography distro @@ -87,6 +88,7 @@ let --ignore=azure/cli/core/tests/test_extension.py \ --ignore=azure/cli/core/tests/test_util.py \ --ignore=azure/cli/core/tests/test_argcomplete.py \ + --ignore=azure/cli/core/tests/test_telemetry.py \ -k 'not metadata_url and not test_send_raw_requests and not test_format_styled_text_legacy_powershell' ''; @@ -251,6 +253,50 @@ let azure-mgmt-synapse = overrideAzureMgmtPackage super.azure-mgmt-synapse "2.1.0b5" "zip" "sha256-5E6Yf1GgNyNVjd+SeFDbhDxnOA6fOAG6oojxtCP4m+k="; + + # ModuleNotFoundError: No module named 'azure.mgmt.web.v2024_11_01' + azure-mgmt-web = super.azure-mgmt-web.overridePythonAttrs (attrs: rec { + version = "9.0.0"; + src = fetchPypi { + pname = "azure_mgmt_web"; + inherit version; + hash = "sha256-RFXs07SYV3CFwZBObRcTklTjWLoH/mxINaiRu697BsI="; + }; + }); + + # Attribute virtual_machines does not exist - nixpkgs has 37.x but azure-cli 2.82.0 requires ~=34.1.0 + azure-mgmt-compute = super.azure-mgmt-compute.overridePythonAttrs (attrs: rec { + version = "34.1.0"; + src = fetchPypi { + pname = "azure_mgmt_compute"; + inherit version; + hash = "sha256-zZ010cwbjLC9JBrVXJG3fRTgSuc8YyraEUATX5whf+E="; + }; + }); + + # ValueError: The operation 'azure.mgmt.mysqlflexibleservers.operations#LongRunningBackupOperations.begin_delete' is invalid. + azure-mgmt-mysqlflexibleservers = + super.azure-mgmt-mysqlflexibleservers.overridePythonAttrs + (attrs: rec { + version = "1.1.0b2"; + src = fetchPypi { + pname = "azure_mgmt_mysqlflexibleservers"; + inherit version; + hash = "sha256-yGpEFn9VOP1uSvpUCV/gYW56/5HulsCVx9wc/kWO+Ro="; + }; + }); + + # ModuleNotFoundError: No module named 'azure.mgmt.recoveryservicesbackup.activestamp' + azure-mgmt-recoveryservicesbackup = + super.azure-mgmt-recoveryservicesbackup.overridePythonAttrs + (attrs: rec { + version = "9.2.0"; + src = fetchPypi { + pname = "azure_mgmt_recoveryservicesbackup"; + inherit version; + hash = "sha256-xAKz4ipsOHnfVrw34AYxQsM1LFECWZ/xAtGYJPGzKyk="; + }; + }); }; }; in