Commit 28661517 authored by Ulrik Strid's avatar Ulrik Strid
Browse files

azure-cli: 2.75.0 -> 2.77.0

parent d7b49d05
Loading
Loading
Loading
Loading
+15 −13
Original line number Diff line number Diff line
@@ -26,14 +26,14 @@
}:

let
  version = "2.75.0";
  version = "2.77.0";

  src = fetchFromGitHub {
    name = "azure-cli-${version}-src";
    owner = "Azure";
    repo = "azure-cli";
    tag = "azure-cli-${version}";
    hash = "sha256-u6umAqRUfiACt23mxTtfosLdxKSPvDVJMkVjPCtxr24=";
    hash = "sha256-+AvfZIeGxQ+27gpg1y3fMMN7fBP4ATXr7By+dJpux3k=";
  };

  # put packages that needs to be overridden in the py package scope
@@ -154,7 +154,7 @@ py.pkgs.toPythonApplication (
    ];

    # Dependencies from:
    # https://github.com/Azure/azure-cli/blob/azure-cli-2.62.0/src/azure-cli/setup.py#L52
    # https://github.com/Azure/azure-cli/blob/azure-cli-2.77.0/src/azure-cli/setup.py#L52
    # Please, keep ordered by upstream file order. It facilitates reviews.
    propagatedBuildInputs =
      with py.pkgs;
@@ -166,7 +166,6 @@ py.pkgs.toPythonApplication (
        azure-cosmos
        azure-data-tables
        azure-datalake-store
        azure-graphrbac
        azure-keyvault-administration
        azure-keyvault-certificates
        azure-keyvault-keys
@@ -189,10 +188,8 @@ py.pkgs.toPythonApplication (
        azure-mgmt-containerregistry
        azure-mgmt-containerservice
        azure-mgmt-cosmosdb
        azure-mgmt-databoxedge
        azure-mgmt-datalake-store
        azure-mgmt-datamigration
        azure-mgmt-dns
        azure-mgmt-eventgrid
        azure-mgmt-eventhub
        azure-mgmt-extendedlocation
@@ -203,24 +200,29 @@ py.pkgs.toPythonApplication (
        azure-mgmt-iothubprovisioningservices
        azure-mgmt-keyvault
        azure-mgmt-loganalytics
        azure-mgmt-managedservices
        azure-mgmt-managementgroups
        azure-mgmt-maps
        azure-mgmt-marketplaceordering
        azure-mgmt-media
        azure-mgmt-monitor
        azure-mgmt-msi
        azure-mgmt-mysqlflexibleservers
        azure-mgmt-netapp
        azure-mgmt-policyinsights
        azure-mgmt-postgresqlflexibleservers
        azure-mgmt-privatedns
        azure-mgmt-rdbms
        azure-mgmt-mysqlflexibleservers
        azure-mgmt-recoveryservicesbackup
        azure-mgmt-recoveryservices
        azure-mgmt-redis
        azure-mgmt-redhatopenshift
        azure-mgmt-resource
        azure-mgmt-redis
        azure-mgmt-resource-all
        # Added through azure-mgmt-resource-all package
        # azure-mgmt-resource
        # azure-mgmt-resource-deployments
        # azure-mgmt-resource-deploymentscripts
        # azure-mgmt-resource-deploymentstacks
        # azure-mgmt-resource-templatespecs
        azure-mgmt-search
        azure-mgmt-security
        azure-mgmt-servicebus
@@ -250,6 +252,7 @@ py.pkgs.toPythonApplication (
        javaproperties
        jsondiff
        packaging
        paramiko
        pycomposefile
        pygithub
        pynacl
@@ -324,7 +327,6 @@ py.pkgs.toPythonApplication (
      "azure.cli.telemetry"
      "azure.cosmos"
      "azure.datalake.store"
      "azure.graphrbac"
      "azure.keyvault"
      "azure.mgmt.advisor"
      "azure.mgmt.apimanagement"
@@ -344,7 +346,6 @@ py.pkgs.toPythonApplication (
      "azure.mgmt.containerservice"
      "azure.mgmt.cosmosdb"
      "azure.mgmt.datamigration"
      "azure.mgmt.dns"
      "azure.mgmt.eventgrid"
      "azure.mgmt.eventhub"
      "azure.mgmt.hdinsight"
@@ -354,7 +355,6 @@ py.pkgs.toPythonApplication (
      "azure.mgmt.iothubprovisioningservices"
      "azure.mgmt.keyvault"
      "azure.mgmt.loganalytics"
      "azure.mgmt.managedservices"
      "azure.mgmt.managementgroups"
      "azure.mgmt.maps"
      "azure.mgmt.marketplaceordering"
@@ -369,6 +369,8 @@ py.pkgs.toPythonApplication (
      "azure.mgmt.recoveryservicesbackup"
      "azure.mgmt.redis"
      "azure.mgmt.resource"
      "azure.mgmt.resource.deployments"
      "azure.mgmt.resource.deployments.models"
      "azure.mgmt.search"
      "azure.mgmt.security"
      "azure.mgmt.servicebus"
+36 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  python3,
  fetchPypi,
@@ -191,6 +192,41 @@ let
        overrideAzureMgmtPackage super.azure-mgmt-redhatopenshift "1.5.0" "tar.gz"
          "sha256-Uft0KcOciKzJ+ic9n4nxkwNSBmKZam19jhEiqY9fJSc=";

      # azure.mgmt.resource will shadow the other azure.mgmt.resource.* packages unless we merge them together
      azure-mgmt-resource-all = py.pkgs.buildPythonPackage {
        pname = "azure-mgmt-resource-all";
        inherit version;

        format = "other"; # we're not building from sdist/wheel

        src = py.pkgs.azure-mgmt-resource.src;

        # No real build, just symlink all site-packages into one dir
        installPhase = ''
          runHook preInstall

          mkdir -p $out/${py.sitePackages}
          for pkg in ${
            lib.concatStringsSep " " (
              map (p: "${p}") [
                py.pkgs.azure-mgmt-resource
                py.pkgs.azure-mgmt-resource-deployments
                py.pkgs.azure-mgmt-resource-deploymentscripts
                py.pkgs.azure-mgmt-resource-deploymentstacks
                py.pkgs.azure-mgmt-resource-templatespecs
              ]
            )
          }; do
            # Copy recursively, keep symlinks, skip duplicates silently
            cp -rs --no-preserve=mode "$pkg/${py.sitePackages}/." "$out/${py.sitePackages}/" || true
          done

          runHook postInstall
        '';

        doCheck = false;
      };

      # ImportError: cannot import name 'IPRule' from 'azure.mgmt.signalr.models'
      azure-mgmt-signalr =
        overrideAzureMgmtPackage super.azure-mgmt-signalr "2.0.0b2" "tar.gz"