Unverified Commit 0b0ef756 authored by Paul Meyer's avatar Paul Meyer Committed by GitHub
Browse files

azure-cli-extensions: add acrcssc, aksarc, alias, aosm, arcappliance, arcdata,...

azure-cli-extensions: add acrcssc, aksarc, alias, aosm, arcappliance, arcdata, attestation, cloud-service, connectedk8s, and more (#443796)
parents fc626f5f 12b710c6
Loading
Loading
Loading
Loading
+179 −1
Original line number Diff line number Diff line
@@ -14,6 +14,59 @@
}:

{
  acrcssc = mkAzExtension {
    pname = "acrcssc";
    version = "1.0.0b5";
    url = "https://azcliprod.blob.core.windows.net/cli-extensions/acrcssc-1.0.0b5-py3-none-any.whl";
    hash = "sha256-Z3wi+/3UK+TUKHE7MCSP/Es8ViGVTrlcafojw2YFRBs=";
    description = "Microsoft Azure Container Registry Container Secure Supply Chain (CSSC) Extension";
    propagatedBuildInputs = with python3Packages; [
      croniter
      oras
    ];
    meta.maintainers = with lib.maintainers; [ techknowlogick ];
  };

  aksarc = mkAzExtension {
    pname = "aksarc";
    version = "1.5.62";
    url = "https://hybridaksstorage.z13.web.core.windows.net/HybridAKS/CLI/aksarc-1.5.62-py3-none-any.whl";
    hash = "sha256-PCy4SUbB4Vlj+fIwhufGwMJrrRehQr/W+QxAphTPnEk=";
    description = "Microsoft Azure Command-Line Tools HybridContainerService Extension";
    propagatedBuildInputs = with python3Packages; [
      kubernetes
      paramiko
    ];
    meta.maintainers = with lib.maintainers; [ techknowlogick ];
  };

  alias = mkAzExtension rec {
    pname = "alias";
    version = "0.5.2";
    url = "https://azcliprod.blob.core.windows.net/cli-extensions/alias-${version}-py2.py3-none-any.whl";
    hash = "sha256-BfgtdQJueA0nvTShvlf07A9CVQDYq07n6S/uB7lE2jM=";
    description = "Support for command aliases";
    propagatedBuildInputs = with python3Packages; [
      jinja2
    ];
    meta.maintainers = with lib.maintainers; [ techknowlogick ];
  };

  aosm = mkAzExtension rec {
    pname = "aosm";
    version = "2.0.0b2";
    url = "https://azcliprod.blob.core.windows.net/cli-extensions/aosm-${version}-py2.py3-none-any.whl";
    hash = "sha256-nK752/alBu0JYax8B+sp6oByPISqYGIgL6KFX5AIJmk=";
    description = "Microsoft Azure Command-Line Tools Aosm Extension";
    propagatedBuildInputs = with python3Packages; [
      genson
      jinja2
      oras
      ruamel-yaml
    ];
    meta.maintainers = with lib.maintainers; [ techknowlogick ];
  };

  application-insights = mkAzExtension rec {
    pname = "application-insights";
    version = "2.0.0b1";
@@ -24,6 +77,51 @@
    meta.maintainers = with lib.maintainers; [ andreasvoss ];
  };

  arcappliance = mkAzExtension {
    pname = "arcappliance";
    version = "1.6.0";
    url = "https://arcplatformcliextprod.z13.web.core.windows.net/arcappliance-1.6.0-py2.py3-none-any.whl";
    hash = "sha256-1VTKp4R6ohI4C9QsZgAabJJMnkTycEQF7DDshw/7Qkw=";
    description = "Microsoft Azure Command-Line Tools Arcappliance Extension";
    propagatedBuildInputs = with python3Packages; [
      jsonschema
      kubernetes
    ];
    meta.maintainers = with lib.maintainers; [ techknowlogick ];
  };

  arcdata = mkAzExtension {
    pname = "arcdata";
    version = "1.5.25";
    url = "https://azurearcdatacli.z13.web.core.windows.net/arcdata-1.5.25-py2.py3-none-any.whl";
    hash = "sha256-/ejgjd/O37GtS6/+gzsscImoLllaDYCl2LS8m+pulTw=";
    description = "Tools for managing ArcData";
    propagatedBuildInputs = with python3Packages; [
      jinja2
      jsonpatch
      jsonpath-ng
      jsonschema
      kubernetes
      ndjson
      pem
      pydash
      regex
    ];
    meta.maintainers = with lib.maintainers; [ techknowlogick ];
  };

  attestation = mkAzExtension {
    pname = "attestation";
    version = "1.0.0";
    url = "https://azcliprod.blob.core.windows.net/cli-extensions/attestation-1.0.0-py3-none-any.whl";
    hash = "sha256-5YJ3wpIhTjsKHmbeXFI0De3yX1x8NWRgsgJZ1frO70Y=";
    description = "Microsoft Azure Command-Line Tools AttestationManagementClient Extension";
    propagatedBuildInputs = with python3Packages; [
      pyjwt
    ];
    meta.maintainers = with lib.maintainers; [ techknowlogick ];
  };

  azure-devops = mkAzExtension rec {
    pname = "azure-devops";
    version = "1.0.2";
@@ -61,6 +159,18 @@
    meta.maintainers = with lib.maintainers; [ mikut ];
  };

  cloud-service = mkAzExtension {
    pname = "cloud-service";
    version = "1.0.1";
    url = "https://azcliprod.blob.core.windows.net/cli-extensions/cloud_service-1.0.1-py3-none-any.whl";
    hash = "sha256-9rLYCn6rO6vTGFdBtGfgHQwceKbtf/t48DG4dQBzc+Q=";
    description = "Microsoft Azure Command-Line Tools ComputeManagementClient Extension";
    propagatedBuildInputs = with python3Packages; [
      azure-mgmt-compute
    ];
    meta.maintainers = with lib.maintainers; [ techknowlogick ];
  };

  confcom = mkAzExtension rec {
    pname = "confcom";
    version = "1.2.6";
@@ -78,7 +188,26 @@
    postInstall = ''
      chmod +x $out/${python3.sitePackages}/azext_confcom/bin/genpolicy-linux
    '';
    meta.maintainers = with lib.maintainers; [ miampf ];
    meta = {
      maintainers = with lib.maintainers; [ miampf ];
      platforms = lib.platforms.linux; # confcom is linux only
    };
  };

  connectedk8s = mkAzExtension rec {
    pname = "connectedk8s";
    version = "1.9.3";
    url = "https://azcliprod.blob.core.windows.net/cli-extensions/connectedk8s-${version}-py2.py3-none-any.whl";
    hash = "sha256-4OuN92PXzIWgOWhWu/S4ofQ4AbITH6XSG1soUOljY+8=";
    description = "Microsoft Azure Command-Line Tools Connectedk8s Extension";
    propagatedBuildInputs = with python3Packages; [
      azure-graphrbac
      azure-mgmt-hybridcompute
      kubernetes
      pycryptodome
      pyyaml
    ];
    meta.maintainers = with lib.maintainers; [ techknowlogick ];
  };

  containerapp = mkAzExtension rec {
@@ -108,6 +237,31 @@
    meta.maintainers = [ ];
  };

  interactive = mkAzExtension {
    pname = "interactive";
    version = "1.0.0b1";
    url = "https://azcliprod.blob.core.windows.net/cli-extensions/interactive-1.0.0b1-py2.py3-none-any.whl";
    hash = "sha256-COvHDhvsigEEMYlMQ2hHFKzjX7WwdkwfT9id6z+Sj7w=";
    description = "Microsoft Azure Command-Line Interactive Shell";
    propagatedBuildInputs = with python3Packages; [
      prompt-toolkit
    ];
    meta.maintainers = with lib.maintainers; [ techknowlogick ];
  };

  k8s-configuration = mkAzExtension rec {
    pname = "k8s-configuration";
    version = "2.2.0";
    url = "https://azcliprod.blob.core.windows.net/cli-extensions/k8s_configuration-${version}-py3-none-any.whl";
    hash = "sha256-aRdNy3aH+xfLNK7asYqok9aw6RedEcAQqOUKxtIwRwg=";
    description = "Microsoft Azure Command-Line Tools K8s-configuration Extension";
    propagatedBuildInputs = with python3Packages; [
      pycryptodome
      pyyaml
    ];
    meta.maintainers = with lib.maintainers; [ techknowlogick ];
  };

  rdbms-connect = mkAzExtension rec {
    pname = "rdbms-connect";
    version = "1.0.7";
@@ -125,6 +279,18 @@
    meta.maintainers = with lib.maintainers; [ obreitwi ];
  };

  serial-console = mkAzExtension {
    pname = "serial-console";
    version = "1.0.0b2";
    url = "https://azcliprod.blob.core.windows.net/cli-extensions/serial_console-1.0.0b2-py3-none-any.whl";
    hash = "sha256-Weu4BEdq/0dvi07682UfYL8FzAd3cKZUGVJLTzJ27JM=";
    description = "Microsoft Azure Command-Line Tools for Serial Console Extension";
    propagatedBuildInputs = with python3Packages; [
      websocket-client
    ];
    meta.maintainers = with lib.maintainers; [ techknowlogick ];
  };

  ssh = mkAzExtension rec {
    pname = "ssh";
    version = "2.0.6";
@@ -160,6 +326,18 @@
    propagatedBuildInputs = with python3Packages; [ opencensus ];
    meta.maintainers = [ ];
  };

  webpubsub = mkAzExtension {
    pname = "webpubsub";
    version = "1.7.2";
    url = "https://azcliprod.blob.core.windows.net/cli-extensions/webpubsub-1.7.2-py3-none-any.whl";
    hash = "sha256-axtA9vXM1WmzXTj7rbA6Tlrx7kpx2Z6c3NYtwUiv2UI=";
    description = "Microsoft Azure Command-Line Tools Webpubsub Extension";
    propagatedBuildInputs = with python3Packages; [
      websockets
    ];
    meta.maintainers = with lib.maintainers; [ techknowlogick ];
  };
}
// lib.optionalAttrs config.allowAliases {
  # Removed extensions
+48 −0
Original line number Diff line number Diff line
{
  lib,
  azure-common,
  azure-mgmt-core,
  buildPythonPackage,
  fetchPypi,
  isodate,
  pythonOlder,
  setuptools,
  typing-extensions,
}:

buildPythonPackage rec {
  pname = "azure-mgmt-dashboard";
  version = "1.1.0";
  format = "wheel";

  disabled = pythonOlder "3.8";

  src = fetchPypi {
    pname = "azure_mgmt_dashboard";
    inherit version;
    format = "wheel";
    python = "py3";
    dist = "py3";
    hash = "sha256-WoZW5p30f0mrmMyhD68nxqlGrTtUU93V167B8wZitdA=";
  };

  propagatedBuildInputs = [
    azure-common
    azure-mgmt-core
    isodate
    typing-extensions
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "azure.mgmt.dashboard" ];

  meta = with lib; {
    description = "Microsoft Azure Dashboard Management Client Library for Python";
    homepage = "https://github.com/Azure/azure-sdk-for-python";
    changelog = "https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/dashboard/azure-mgmt-dashboard/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ techknowlogick ];
  };
}
+48 −0
Original line number Diff line number Diff line
{
  lib,
  azure-common,
  azure-mgmt-core,
  buildPythonPackage,
  fetchPypi,
  isodate,
  pythonOlder,
  setuptools,
  typing-extensions,
}:

buildPythonPackage rec {
  pname = "azure-mgmt-hybridcompute";
  version = "9.1.0b2";
  format = "wheel";

  disabled = pythonOlder "3.8";

  src = fetchPypi {
    pname = "azure_mgmt_hybridcompute";
    inherit version;
    format = "wheel";
    python = "py3";
    dist = "py3";
    hash = "sha256-bKv4A6PjN6fMpyso0JqewADcKGOK1wXlULtkZpzrilY=";
  };

  propagatedBuildInputs = [
    azure-common
    azure-mgmt-core
    isodate
    typing-extensions
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "azure.mgmt.hybridcompute" ];

  meta = with lib; {
    description = "Microsoft Azure Hybrid Compute Management Client Library for Python";
    homepage = "https://github.com/Azure/azure-sdk-for-python";
    changelog = "https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/hybridcompute/azure-mgmt-hybridcompute/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ techknowlogick ];
  };
}
+4 −0
Original line number Diff line number Diff line
@@ -1409,6 +1409,8 @@ self: super: with self; {
  azure-mgmt-cosmosdb = callPackage ../development/python-modules/azure-mgmt-cosmosdb { };
  azure-mgmt-dashboard = callPackage ../development/python-modules/azure-mgmt-dashboard { };
  azure-mgmt-databoxedge = callPackage ../development/python-modules/azure-mgmt-databoxedge { };
  azure-mgmt-databricks = callPackage ../development/python-modules/azure-mgmt-databricks { };
@@ -1449,6 +1451,8 @@ self: super: with self; {
  azure-mgmt-hdinsight = callPackage ../development/python-modules/azure-mgmt-hdinsight { };
  azure-mgmt-hybridcompute = callPackage ../development/python-modules/azure-mgmt-hybridcompute { };
  azure-mgmt-imagebuilder = callPackage ../development/python-modules/azure-mgmt-imagebuilder { };
  azure-mgmt-iotcentral = callPackage ../development/python-modules/azure-mgmt-iotcentral { };