azure-cli: nixfmt format

This commit is contained in:
superherointj 2024-07-10 06:29:38 -03:00
parent cb9bbcdc82
commit 96cd538b68
3 changed files with 537 additions and 425 deletions

View File

@ -2,11 +2,12 @@
# #
# Checkout ./README.md for more information. # Checkout ./README.md for more information.
{ lib {
, mkAzExtension lib,
, mycli mkAzExtension,
, python3Packages mycli,
, python3 python3Packages,
python3,
}: }:
{ {
@ -26,14 +27,14 @@
url = "https://azcliprod.blob.core.windows.net/cli-extensions/rdbms_connect-${version}-py2.py3-none-any.whl"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/rdbms_connect-${version}-py2.py3-none-any.whl";
sha256 = "49cbe8d9b7ea07a8974a29ad90247e864ed798bed5f28d0e3a57a4b37f5939e7"; sha256 = "49cbe8d9b7ea07a8974a29ad90247e864ed798bed5f28d0e3a57a4b37f5939e7";
description = "Support for testing connection to Azure Database for MySQL & PostgreSQL servers"; description = "Support for testing connection to Azure Database for MySQL & PostgreSQL servers";
propagatedBuildInputs = (with python3Packages; [ propagatedBuildInputs =
pgcli (with python3Packages; [
psycopg2 pgcli
pymysql psycopg2
setproctitle pymysql
]) ++ [ setproctitle
(mycli.override { inherit python3; }) ])
]; ++ [ (mycli.override { inherit python3; }) ];
meta.maintainers = with lib.maintainers; [ obreitwi ]; meta.maintainers = with lib.maintainers; [ obreitwi ];
}; };

View File

@ -1,21 +1,22 @@
{ lib {
, callPackage lib,
, callPackages callPackage,
, stdenvNoCC callPackages,
, fetchurl stdenvNoCC,
, fetchFromGitHub fetchurl,
, runCommand fetchFromGitHub,
, installShellFiles runCommand,
, python311 installShellFiles,
python311,
# Whether to include patches that enable placing certain behavior-defining # Whether to include patches that enable placing certain behavior-defining
# configuration files in the Nix store. # configuration files in the Nix store.
, withImmutableConfig ? true withImmutableConfig ? true,
# List of extensions/plugins to include. # List of extensions/plugins to include.
, withExtensions ? [ ] withExtensions ? [ ],
, azure-cli azure-cli,
}: }:
let let
@ -40,28 +41,41 @@ let
# Builder for Azure CLI extensions. Extensions are Python wheels that # Builder for Azure CLI extensions. Extensions are Python wheels that
# outside of nix would be fetched by the CLI itself from various sources. # outside of nix would be fetched by the CLI itself from various sources.
mkAzExtension = mkAzExtension =
{ pname {
, version pname,
, url version,
, sha256 url,
, description sha256,
, ... description,
}@args: python3.pkgs.buildPythonPackage ({ ...
format = "wheel"; }@args:
src = fetchurl { inherit url sha256; }; python3.pkgs.buildPythonPackage (
meta = { {
inherit description; format = "wheel";
inherit (azure-cli.meta) platforms maintainers; src = fetchurl { inherit url sha256; };
homepage = "https://github.com/Azure/azure-cli-extensions"; meta = {
changelog = "https://github.com/Azure/azure-cli-extensions/blob/main/src/${pname}/HISTORY.rst"; inherit description;
license = lib.licenses.mit; inherit (azure-cli.meta) platforms maintainers;
sourceProvenance = [ lib.sourceTypes.fromSource ]; homepage = "https://github.com/Azure/azure-cli-extensions";
} // args.meta or { }; changelog = "https://github.com/Azure/azure-cli-extensions/blob/main/src/${pname}/HISTORY.rst";
} // (removeAttrs args [ "url" "sha256" "description" "meta" ])); license = lib.licenses.mit;
sourceProvenance = [ lib.sourceTypes.fromSource ];
} // args.meta or { };
}
// (removeAttrs args [
"url"
"sha256"
"description"
"meta"
])
);
extensions = extensions =
callPackages ./extensions-generated.nix { inherit mkAzExtension; } callPackages ./extensions-generated.nix { inherit mkAzExtension; }
// callPackages ./extensions-manual.nix { inherit mkAzExtension python3; python3Packages = python3.pkgs; }; // callPackages ./extensions-manual.nix {
inherit mkAzExtension python3;
python3Packages = python3.pkgs;
};
extensionDir = stdenvNoCC.mkDerivation { extensionDir = stdenvNoCC.mkDerivation {
name = "azure-cli-extensions"; name = "azure-cli-extensions";
@ -83,341 +97,352 @@ let
}; };
in in
py.pkgs.toPythonApplication (py.pkgs.buildAzureCliPackage rec { py.pkgs.toPythonApplication (
pname = "azure-cli"; py.pkgs.buildAzureCliPackage rec {
inherit version src; pname = "azure-cli";
inherit version src;
sourceRoot = "${src.name}/src/azure-cli"; sourceRoot = "${src.name}/src/azure-cli";
nativeBuildInputs = [ nativeBuildInputs = [ installShellFiles ];
installShellFiles
];
propagatedBuildInputs = with py.pkgs; [ propagatedBuildInputs =
antlr4-python3-runtime with py.pkgs;
applicationinsights [
argcomplete antlr4-python3-runtime
asn1crypto applicationinsights
azure-appconfiguration argcomplete
azure-batch asn1crypto
azure-cli-core azure-appconfiguration
azure-cli-telemetry azure-batch
azure-common azure-cli-core
azure-core azure-cli-telemetry
azure-cosmos azure-common
azure-data-tables azure-core
azure-datalake-store azure-cosmos
azure-graphrbac azure-data-tables
azure-keyvault-administration azure-datalake-store
azure-keyvault-certificates azure-graphrbac
azure-keyvault-keys azure-keyvault-administration
azure-keyvault-secrets azure-keyvault-certificates
azure-loganalytics azure-keyvault-keys
azure-mgmt-advisor azure-keyvault-secrets
azure-mgmt-apimanagement azure-loganalytics
azure-mgmt-appconfiguration azure-mgmt-advisor
azure-mgmt-appcontainers azure-mgmt-apimanagement
azure-mgmt-applicationinsights azure-mgmt-appconfiguration
azure-mgmt-authorization azure-mgmt-appcontainers
azure-mgmt-batch azure-mgmt-applicationinsights
azure-mgmt-batchai azure-mgmt-authorization
azure-mgmt-billing azure-mgmt-batch
azure-mgmt-botservice azure-mgmt-batchai
azure-mgmt-cdn azure-mgmt-billing
azure-mgmt-cognitiveservices azure-mgmt-botservice
azure-mgmt-compute azure-mgmt-cdn
azure-mgmt-consumption azure-mgmt-cognitiveservices
azure-mgmt-containerinstance azure-mgmt-compute
azure-mgmt-containerregistry azure-mgmt-consumption
azure-mgmt-containerservice azure-mgmt-containerinstance
azure-mgmt-core azure-mgmt-containerregistry
azure-mgmt-cosmosdb azure-mgmt-containerservice
azure-mgmt-databoxedge azure-mgmt-core
azure-mgmt-datalake-nspkg azure-mgmt-cosmosdb
azure-mgmt-datalake-store azure-mgmt-databoxedge
azure-mgmt-datamigration azure-mgmt-datalake-nspkg
azure-mgmt-devtestlabs azure-mgmt-datalake-store
azure-mgmt-dns azure-mgmt-datamigration
azure-mgmt-eventgrid azure-mgmt-devtestlabs
azure-mgmt-eventhub azure-mgmt-dns
azure-mgmt-extendedlocation azure-mgmt-eventgrid
azure-mgmt-hdinsight azure-mgmt-eventhub
azure-mgmt-imagebuilder azure-mgmt-extendedlocation
azure-mgmt-iotcentral azure-mgmt-hdinsight
azure-mgmt-iothub azure-mgmt-imagebuilder
azure-mgmt-iothubprovisioningservices azure-mgmt-iotcentral
azure-mgmt-keyvault azure-mgmt-iothub
azure-mgmt-kusto azure-mgmt-iothubprovisioningservices
azure-mgmt-loganalytics azure-mgmt-keyvault
azure-mgmt-managementgroups azure-mgmt-kusto
azure-mgmt-managedservices azure-mgmt-loganalytics
azure-mgmt-maps azure-mgmt-managementgroups
azure-mgmt-marketplaceordering azure-mgmt-managedservices
azure-mgmt-media azure-mgmt-maps
azure-mgmt-monitor azure-mgmt-marketplaceordering
azure-mgmt-msi azure-mgmt-media
azure-mgmt-netapp azure-mgmt-monitor
azure-mgmt-policyinsights azure-mgmt-msi
azure-mgmt-privatedns azure-mgmt-netapp
azure-mgmt-rdbms azure-mgmt-policyinsights
azure-mgmt-recoveryservices azure-mgmt-privatedns
azure-mgmt-recoveryservicesbackup azure-mgmt-rdbms
azure-mgmt-redhatopenshift azure-mgmt-recoveryservices
azure-mgmt-redis azure-mgmt-recoveryservicesbackup
azure-mgmt-relay azure-mgmt-redhatopenshift
azure-mgmt-resource azure-mgmt-redis
azure-mgmt-search azure-mgmt-relay
azure-mgmt-security azure-mgmt-resource
azure-mgmt-servicebus azure-mgmt-search
azure-mgmt-servicefabric azure-mgmt-security
azure-mgmt-servicefabricmanagedclusters azure-mgmt-servicebus
azure-mgmt-servicelinker azure-mgmt-servicefabric
azure-mgmt-sql azure-mgmt-servicefabricmanagedclusters
azure-mgmt-signalr azure-mgmt-servicelinker
azure-mgmt-sqlvirtualmachine azure-mgmt-sql
azure-mgmt-storage azure-mgmt-signalr
azure-mgmt-synapse azure-mgmt-sqlvirtualmachine
azure-mgmt-trafficmanager azure-mgmt-storage
azure-mgmt-web azure-mgmt-synapse
azure-multiapi-storage azure-mgmt-trafficmanager
azure-nspkg azure-mgmt-web
azure-storage-common azure-multiapi-storage
azure-storage-blob azure-nspkg
azure-synapse-accesscontrol azure-storage-common
azure-synapse-artifacts azure-storage-blob
azure-synapse-managedprivateendpoints azure-synapse-accesscontrol
azure-synapse-spark azure-synapse-artifacts
bcrypt azure-synapse-managedprivateendpoints
certifi azure-synapse-spark
cffi bcrypt
chardet certifi
colorama cffi
cryptography chardet
distro colorama
fabric cryptography
humanfriendly distro
idna fabric
invoke humanfriendly
isodate idna
javaproperties invoke
jinja2 isodate
jmespath javaproperties
jsondiff jinja2
knack jmespath
markupsafe jsondiff
msal-extensions knack
msal markupsafe
msrest msal-extensions
msrestazure msal
oauthlib msrest
packaging msrestazure
paramiko oauthlib
pbr packaging
pkginfo paramiko
portalocker pbr
psutil pkginfo
pycomposefile portalocker
pycparser psutil
pygithub pycomposefile
pyjwt pycparser
pynacl pygithub
pyopenssl pyjwt
python-dateutil pynacl
requests-oauthlib pyopenssl
requests python-dateutil
scp requests-oauthlib
semver requests
setuptools scp
six semver
sshtunnel setuptools
tabulate six
urllib3 sshtunnel
wcwidth tabulate
websocket-client urllib3
xmltodict wcwidth
] ++ lib.optionals (!withImmutableConfig) [ websocket-client
# pip is required to install extensions locally, but it's not needed if xmltodict
# we're using the default immutable configuration. ]
pip ++ lib.optionals (!withImmutableConfig) [
] ++ lib.concatMap (extension: extension.propagatedBuildInputs) withExtensions; # pip is required to install extensions locally, but it's not needed if
# we're using the default immutable configuration.
pip
]
++ lib.concatMap (extension: extension.propagatedBuildInputs) withExtensions;
postInstall = '' postInstall =
substituteInPlace az.completion.sh \ ''
--replace register-python-argcomplete ${py.pkgs.argcomplete}/bin/register-python-argcomplete substituteInPlace az.completion.sh \
installShellCompletion --bash --name az.bash az.completion.sh --replace register-python-argcomplete ${py.pkgs.argcomplete}/bin/register-python-argcomplete
installShellCompletion --zsh --name _az az.completion.sh installShellCompletion --bash --name az.bash az.completion.sh
'' + lib.optionalString withImmutableConfig '' installShellCompletion --zsh --name _az az.completion.sh
export HOME=$TMPDIR ''
$out/bin/az --version + lib.optionalString withImmutableConfig ''
mkdir -p $out/etc/azure export HOME=$TMPDIR
mv $TMPDIR/.azure/commandIndex.json $out/etc/azure/commandIndex.json $out/bin/az --version
mv $TMPDIR/.azure/versionCheck.json $out/etc/azure/versionCheck.json mkdir -p $out/etc/azure
'' + '' mv $TMPDIR/.azure/commandIndex.json $out/etc/azure/commandIndex.json
# remove garbage mv $TMPDIR/.azure/versionCheck.json $out/etc/azure/versionCheck.json
rm $out/bin/az.bat ''
rm $out/bin/az.completion.sh + ''
''; # remove garbage
rm $out/bin/az.bat
rm $out/bin/az.completion.sh
'';
# wrap the executable so that the python packages are available # wrap the executable so that the python packages are available
# it's just a shebang script which calls `python -m azure.cli "$@"` # it's just a shebang script which calls `python -m azure.cli "$@"`
postFixup = '' postFixup =
wrapProgram $out/bin/az \ ''
'' + lib.optionalString withImmutableConfig '' wrapProgram $out/bin/az \
--set AZURE_IMMUTABLE_DIR $out/etc/azure \ ''
'' + lib.optionalString (withExtensions != [ ]) '' + lib.optionalString withImmutableConfig ''
--set AZURE_EXTENSION_DIR ${extensionDir} \ --set AZURE_IMMUTABLE_DIR $out/etc/azure \
'' + '' ''
--set PYTHONPATH "${python3.pkgs.makePythonPath propagatedBuildInputs}:$out/${python3.sitePackages}" + lib.optionalString (withExtensions != [ ]) ''
''; --set AZURE_EXTENSION_DIR ${extensionDir} \
''
+ ''
--set PYTHONPATH "${python3.pkgs.makePythonPath propagatedBuildInputs}:$out/${python3.sitePackages}"
'';
doInstallCheck = true; doInstallCheck = true;
installCheckPhase = '' installCheckPhase = ''
export HOME=$TMPDIR export HOME=$TMPDIR
$out/bin/az --version $out/bin/az --version
$out/bin/az self-test $out/bin/az self-test
'';
# ensure these namespaces are able to be accessed
pythonImportsCheck = [
"azure.batch"
"azure.cli.core"
"azure.cli.telemetry"
"azure.cosmos"
"azure.datalake.store"
"azure.graphrbac"
"azure.keyvault"
"azure.loganalytics"
"azure.mgmt.advisor"
"azure.mgmt.apimanagement"
"azure.mgmt.applicationinsights"
"azure.mgmt.appconfiguration"
"azure.mgmt.appcontainers"
"azure.mgmt.authorization"
"azure.mgmt.batch"
"azure.mgmt.batchai"
"azure.mgmt.billing"
"azure.mgmt.botservice"
"azure.mgmt.cdn"
"azure.mgmt.cognitiveservices"
"azure.mgmt.compute"
"azure.mgmt.consumption"
"azure.mgmt.containerinstance"
"azure.mgmt.containerregistry"
"azure.mgmt.containerservice"
"azure.mgmt.cosmosdb"
"azure.mgmt.datalake.store"
"azure.mgmt.datamigration"
"azure.mgmt.devtestlabs"
"azure.mgmt.dns"
"azure.mgmt.eventgrid"
"azure.mgmt.eventhub"
"azure.mgmt.hdinsight"
"azure.mgmt.imagebuilder"
"azure.mgmt.iotcentral"
"azure.mgmt.iothub"
"azure.mgmt.iothubprovisioningservices"
"azure.mgmt.keyvault"
"azure.mgmt.kusto"
"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.netapp"
"azure.mgmt.policyinsights"
"azure.mgmt.privatedns"
"azure.mgmt.rdbms"
"azure.mgmt.recoveryservices"
"azure.mgmt.recoveryservicesbackup"
"azure.mgmt.redis"
"azure.mgmt.relay"
"azure.mgmt.resource"
"azure.mgmt.search"
"azure.mgmt.security"
"azure.mgmt.servicebus"
"azure.mgmt.servicefabric"
"azure.mgmt.signalr"
"azure.mgmt.sql"
"azure.mgmt.sqlvirtualmachine"
"azure.mgmt.storage"
"azure.mgmt.trafficmanager"
"azure.mgmt.web"
"azure.storage.blob"
"azure.storage.common"
];
passthru = {
inherit extensions;
withExtensions = extensions: azure-cli.override { withExtensions = extensions; };
tests = {
# Test the package builds with some extensions configured, and the
# wanted extensions are recognized by the CLI and listed in the output.
azWithExtensions =
let
extensions = with azure-cli.extensions; [
aks-preview
azure-devops
rdbms-connect
];
extensionNames = map (ext: ext.pname) extensions;
az = (azure-cli.withExtensions extensions);
in
runCommand "test-az-with-extensions" { } ''
export HOME=$TMPDIR
${lib.getExe az} extension list > $out
for ext in ${lib.concatStringsSep " " extensionNames}; do
if ! grep -q $ext $out; then
echo "Extension $ext not found in list"
exit 1
fi
done
'';
# Test the package builds with mutable config.
# TODO: Maybe we can install an extension from local python wheel to
# check mutable extension install still works.
azWithMutableConfig =
let
az = azure-cli.override { withImmutableConfig = false; };
in
runCommand "test-az-with-immutable-config" { } ''
export HOME=$TMPDIR
${lib.getExe az} --version || exit 1
touch $out
'';
};
};
meta = with lib; {
homepage = "https://github.com/Azure/azure-cli";
description = "Next generation multi-platform command line experience for Azure";
downloadPage = "https://github.com/Azure/azure-cli/releases/tag/azure-cli-${version}";
longDescription = ''
The Azure Command-Line Interface (CLI) is a cross-platform
command-line tool to connect to Azure and execute administrative
commands on Azure resources. It allows the execution of commands
through a terminal using interactive command-line prompts or a script.
`azure-cli` has extension support. For example, to install the `aks-preview` extension, use
```nix
environment.systemPackages = [
(azure-cli.withExtensions [ azure-cli.extensions.aks-preview ])
];
```
To make the `azure-cli` immutable and prevent clashes in case `azure-cli` is also installed via other package managers,
some configuration files were moved into the derivation. This can be disabled by overriding `withImmutableConfig = false`
when building `azure-cli`.
''; '';
changelog = "https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/docs-ref-conceptual/release-notes-azure-cli.md";
sourceProvenance = [ sourceTypes.fromSource ]; # ensure these namespaces are able to be accessed
license = licenses.mit; pythonImportsCheck = [
mainProgram = "az"; "azure.batch"
maintainers = with maintainers; [ katexochen ]; "azure.cli.core"
platforms = platforms.all; "azure.cli.telemetry"
}; "azure.cosmos"
}) "azure.datalake.store"
"azure.graphrbac"
"azure.keyvault"
"azure.loganalytics"
"azure.mgmt.advisor"
"azure.mgmt.apimanagement"
"azure.mgmt.applicationinsights"
"azure.mgmt.appconfiguration"
"azure.mgmt.appcontainers"
"azure.mgmt.authorization"
"azure.mgmt.batch"
"azure.mgmt.batchai"
"azure.mgmt.billing"
"azure.mgmt.botservice"
"azure.mgmt.cdn"
"azure.mgmt.cognitiveservices"
"azure.mgmt.compute"
"azure.mgmt.consumption"
"azure.mgmt.containerinstance"
"azure.mgmt.containerregistry"
"azure.mgmt.containerservice"
"azure.mgmt.cosmosdb"
"azure.mgmt.datalake.store"
"azure.mgmt.datamigration"
"azure.mgmt.devtestlabs"
"azure.mgmt.dns"
"azure.mgmt.eventgrid"
"azure.mgmt.eventhub"
"azure.mgmt.hdinsight"
"azure.mgmt.imagebuilder"
"azure.mgmt.iotcentral"
"azure.mgmt.iothub"
"azure.mgmt.iothubprovisioningservices"
"azure.mgmt.keyvault"
"azure.mgmt.kusto"
"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.netapp"
"azure.mgmt.policyinsights"
"azure.mgmt.privatedns"
"azure.mgmt.rdbms"
"azure.mgmt.recoveryservices"
"azure.mgmt.recoveryservicesbackup"
"azure.mgmt.redis"
"azure.mgmt.relay"
"azure.mgmt.resource"
"azure.mgmt.search"
"azure.mgmt.security"
"azure.mgmt.servicebus"
"azure.mgmt.servicefabric"
"azure.mgmt.signalr"
"azure.mgmt.sql"
"azure.mgmt.sqlvirtualmachine"
"azure.mgmt.storage"
"azure.mgmt.trafficmanager"
"azure.mgmt.web"
"azure.storage.blob"
"azure.storage.common"
];
passthru = {
inherit extensions;
withExtensions = extensions: azure-cli.override { withExtensions = extensions; };
tests = {
# Test the package builds with some extensions configured, and the
# wanted extensions are recognized by the CLI and listed in the output.
azWithExtensions =
let
extensions = with azure-cli.extensions; [
aks-preview
azure-devops
rdbms-connect
];
extensionNames = map (ext: ext.pname) extensions;
az = (azure-cli.withExtensions extensions);
in
runCommand "test-az-with-extensions" { } ''
export HOME=$TMPDIR
${lib.getExe az} extension list > $out
for ext in ${lib.concatStringsSep " " extensionNames}; do
if ! grep -q $ext $out; then
echo "Extension $ext not found in list"
exit 1
fi
done
'';
# Test the package builds with mutable config.
# TODO: Maybe we can install an extension from local python wheel to
# check mutable extension install still works.
azWithMutableConfig =
let
az = azure-cli.override { withImmutableConfig = false; };
in
runCommand "test-az-with-immutable-config" { } ''
export HOME=$TMPDIR
${lib.getExe az} --version || exit 1
touch $out
'';
};
};
meta = with lib; {
homepage = "https://github.com/Azure/azure-cli";
description = "Next generation multi-platform command line experience for Azure";
downloadPage = "https://github.com/Azure/azure-cli/releases/tag/azure-cli-${version}";
longDescription = ''
The Azure Command-Line Interface (CLI) is a cross-platform
command-line tool to connect to Azure and execute administrative
commands on Azure resources. It allows the execution of commands
through a terminal using interactive command-line prompts or a script.
`azure-cli` has extension support. For example, to install the `aks-preview` extension, use
```nix
environment.systemPackages = [
(azure-cli.withExtensions [ azure-cli.extensions.aks-preview ])
];
```
To make the `azure-cli` immutable and prevent clashes in case `azure-cli` is also installed via other package managers,
some configuration files were moved into the derivation. This can be disabled by overriding `withImmutableConfig = false`
when building `azure-cli`.
'';
changelog = "https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/docs-ref-conceptual/release-notes-azure-cli.md";
sourceProvenance = [ sourceTypes.fromSource ];
license = licenses.mit;
mainProgram = "az";
maintainers = with maintainers; [ katexochen ];
platforms = platforms.all;
};
}
)

View File

@ -1,16 +1,18 @@
{ lib {
, stdenv lib,
, python3 stdenv,
, fetchPypi python3,
, fetchpatch fetchPypi,
, src fetchpatch,
, version src,
version,
}: }:
let let
buildAzureCliPackage = with py.pkgs; buildPythonPackage; buildAzureCliPackage = with py.pkgs; buildPythonPackage;
overrideAzureMgmtPackage = package: version: extension: hash: overrideAzureMgmtPackage =
package: version: extension: hash:
package.overridePythonAttrs (oldAttrs: { package.overridePythonAttrs (oldAttrs: {
inherit version; inherit version;
@ -106,49 +108,133 @@ let
''; '';
}; };
azure-keyvault-keys = overrideAzureMgmtPackage super.azure-keyvault-keys "4.9.0b3" "tar.gz" "sha256-qoseyf6WqBEG8vPc1hF17K46AWk8Ba8V9KRed4lOlGo="; azure-keyvault-keys =
azure-mgmt-applicationinsights = overrideAzureMgmtPackage super.azure-mgmt-applicationinsights "1.0.0" "zip" "sha256-woeix9703hn5LAwxugKGf6xvW433G129qxkoi7RV/Fs="; overrideAzureMgmtPackage super.azure-keyvault-keys "4.9.0b3" "tar.gz"
azure-mgmt-batch = overrideAzureMgmtPackage super.azure-mgmt-batch "17.3.0" "tar.gz" "sha256-/JSIGmrNuKlTPzcbb3stPq6heJ65VQFLJKkI1t/nWZE="; "sha256-qoseyf6WqBEG8vPc1hF17K46AWk8Ba8V9KRed4lOlGo=";
azure-mgmt-batchai = overrideAzureMgmtPackage super.azure-mgmt-batchai "7.0.0b1" "zip" "sha256-mT6vvjWbq0RWQidugR229E8JeVEiobPD3XA/nDM3I6Y="; azure-mgmt-applicationinsights =
azure-mgmt-botservice = overrideAzureMgmtPackage super.azure-mgmt-botservice "2.0.0b3" "zip" "sha256-XZGQOeMw8usyQ1tl8j57fZ3uqLshomHY9jO/rbpQOvM="; overrideAzureMgmtPackage super.azure-mgmt-applicationinsights "1.0.0" "zip"
azure-mgmt-cdn = overrideAzureMgmtPackage super.azure-mgmt-cdn "12.0.0" "zip" "sha256-t8PuIYkjS0r1Gs4pJJJ8X9cz8950imQtbVBABnyMnd0="; "sha256-woeix9703hn5LAwxugKGf6xvW433G129qxkoi7RV/Fs=";
azure-mgmt-compute = overrideAzureMgmtPackage super.azure-mgmt-compute "31.0.0" "tar.gz" "sha256-WlscT8GhnssCKhLe0b6LGxVfaXnQP7nvwEZC9gZkS78="; azure-mgmt-batch =
azure-mgmt-core = overrideAzureMgmtPackage super.azure-mgmt-core "1.3.2" "zip" "sha256-B/Sv6COlXXBLBI1h7f3BMYwFHtWfJEAyEmNQvpXp1QE="; overrideAzureMgmtPackage super.azure-mgmt-batch "17.3.0" "tar.gz"
azure-mgmt-cosmosdb = overrideAzureMgmtPackage super.azure-mgmt-cosmosdb "9.5.1" "tar.gz" "sha256-TlXTlz8RzwLPeoBVruhmFSM9fL47siegfBdrrIvH7wI="; "sha256-/JSIGmrNuKlTPzcbb3stPq6heJ65VQFLJKkI1t/nWZE=";
azure-mgmt-datalake-store = overrideAzureMgmtPackage super.azure-mgmt-datalake-store "0.5.0" "zip" "sha256-k3bTVJVmHRn4rMVgT2ewvFlJOxg1u8SA+aGVL5ABekw="; azure-mgmt-batchai =
azure-mgmt-devtestlabs = overrideAzureMgmtPackage super.azure-mgmt-devtestlabs "4.0.0" "zip" "sha256-WVScTEBo8mRmsQl7V0qOUJn7LNbIvgoAOVsG07KeJ40="; overrideAzureMgmtPackage super.azure-mgmt-batchai "7.0.0b1" "zip"
azure-mgmt-dns = overrideAzureMgmtPackage super.azure-mgmt-dns "8.0.0" "zip" "sha256-QHwtrLM1E/++nKS+Wt216dS64Mt++mE8P31THve/jeg="; "sha256-mT6vvjWbq0RWQidugR229E8JeVEiobPD3XA/nDM3I6Y=";
azure-mgmt-eventgrid = overrideAzureMgmtPackage super.azure-mgmt-eventgrid "10.2.0b2" "zip" "sha256-QcHY1wCwQyVOEdUi06/wEa4dqJH5Ccd33gJ1Sju0qZA="; azure-mgmt-botservice =
azure-mgmt-eventhub = overrideAzureMgmtPackage super.azure-mgmt-eventhub "10.1.0" "zip" "sha256-MZqhSBkwypvEefhoEWEPsBUFidWYD7qAX6edcBDDSSA="; overrideAzureMgmtPackage super.azure-mgmt-botservice "2.0.0b3" "zip"
azure-mgmt-extendedlocation = overrideAzureMgmtPackage super.azure-mgmt-extendedlocation "1.0.0b2" "zip" "sha256-mjfH35T81JQ97jVgElWmZ8P5MwXVxZQv/QJKNLS3T8A="; "sha256-XZGQOeMw8usyQ1tl8j57fZ3uqLshomHY9jO/rbpQOvM=";
azure-mgmt-iotcentral = overrideAzureMgmtPackage super.azure-mgmt-iotcentral "10.0.0b1" "zip" "sha256-1CiZuTXYhIb74eGQZUJHHzovYNnnVd3Ydu1UCy2Bu00="; azure-mgmt-cdn =
azure-mgmt-kusto = (overrideAzureMgmtPackage super.azure-mgmt-kusto "0.3.0" "zip" overrideAzureMgmtPackage super.azure-mgmt-cdn "12.0.0" "zip"
"sha256-nri3eB/UQQ7p4gfNDDmDuvnlhBS1tKGISdCYVuNrrN4=").overridePythonAttrs (attrs: { "sha256-t8PuIYkjS0r1Gs4pJJJ8X9cz8950imQtbVBABnyMnd0=";
propagatedBuildInputs = attrs.propagatedBuildInputs or [ ] ++ [ self.msrest self.msrestazure ]; azure-mgmt-compute =
}); overrideAzureMgmtPackage super.azure-mgmt-compute "31.0.0" "tar.gz"
azure-mgmt-maps = overrideAzureMgmtPackage super.azure-mgmt-maps "2.0.0" "zip" "sha256-OE4X92potwCk+YhHiUXDqXIXEcBAByWv38tjz4ToXw4="; "sha256-WlscT8GhnssCKhLe0b6LGxVfaXnQP7nvwEZC9gZkS78=";
azure-mgmt-media = overrideAzureMgmtPackage super.azure-mgmt-media "9.0.0" "zip" "sha256-TI7l8sSQ2QUgPqiE3Cu/F67Wna+KHbQS3fuIjOb95ZM="; azure-mgmt-core =
azure-mgmt-monitor = overrideAzureMgmtPackage super.azure-mgmt-monitor "5.0.0" "zip" "sha256-eL9KJowxTF7hZJQQQCNJZ7l+rKPFM8wP5vEigt3ZFGE="; overrideAzureMgmtPackage super.azure-mgmt-core "1.3.2" "zip"
azure-mgmt-netapp = overrideAzureMgmtPackage super.azure-mgmt-netapp "10.1.0" "zip" "sha256-eJiWTOCk2C79Jotku9bKlu3vU6H8004hWrX+h76MjQM="; "sha256-B/Sv6COlXXBLBI1h7f3BMYwFHtWfJEAyEmNQvpXp1QE=";
azure-mgmt-policyinsights = overrideAzureMgmtPackage super.azure-mgmt-policyinsights "1.1.0b4" "zip" "sha256-aB16xyrhNYHJeitvdCeV+kik21B2LC+5/OSDQIGwTpI="; azure-mgmt-cosmosdb =
azure-mgmt-privatedns = overrideAzureMgmtPackage super.azure-mgmt-privatedns "1.0.0" "zip" "sha256-tg8W5D97KRWCxfV7rhsIMJbYMD6dmVjiwpInpVzCfEU="; overrideAzureMgmtPackage super.azure-mgmt-cosmosdb "9.5.1" "tar.gz"
azure-mgmt-rdbms = overrideAzureMgmtPackage super.azure-mgmt-rdbms "10.2.0b16" "tar.gz" "sha256-HDktzv8MOs5VRQArbS3waMhjbwVgZMmvch7PXen5DjE="; "sha256-TlXTlz8RzwLPeoBVruhmFSM9fL47siegfBdrrIvH7wI=";
azure-mgmt-recoveryservicesbackup = overrideAzureMgmtPackage super.azure-mgmt-recoveryservicesbackup "9.1.0" "tar.gz" "sha256-Hp/UBsDJ7iYn9aNx8BL4dzQvf8bzOyVk/NFNbwZjzQ8="; azure-mgmt-datalake-store =
azure-mgmt-redis = overrideAzureMgmtPackage super.azure-mgmt-redis "14.3.0" "tar.gz" "sha256-eoMbY4oNzYXkn3uFUhxecJQD+BxYkGTbWhAWSgAoLyA="; overrideAzureMgmtPackage super.azure-mgmt-datalake-store "0.5.0" "zip"
azure-mgmt-resource = overrideAzureMgmtPackage super.azure-mgmt-resource "23.1.1" "tar.gz" "sha256-ILawBrVE/bGWB/P2o4EQViXgu2D78wNvOYhcRkbTND4="; "sha256-k3bTVJVmHRn4rMVgT2ewvFlJOxg1u8SA+aGVL5ABekw=";
azure-mgmt-search = overrideAzureMgmtPackage super.azure-mgmt-search "9.0.0" "zip" "sha256-Gc+qoTa1EE4/YmJvUSqVG+zZ50wfohvWOe/fLJ/vgb0="; azure-mgmt-devtestlabs =
azure-mgmt-security = overrideAzureMgmtPackage super.azure-mgmt-security "6.0.0" "tar.gz" "sha256-zq/BhpiZBnEQvYMMXMmLybjzLY6oQMofaTsaX1Kl+LA="; overrideAzureMgmtPackage super.azure-mgmt-devtestlabs "4.0.0" "zip"
azure-mgmt-servicefabric = overrideAzureMgmtPackage super.azure-mgmt-servicefabric "2.1.0" "tar.gz" "sha256-oIQzBJVUQ2yQhEvIqWgg6INplITm/8mQMv0lcfjF99Y="; "sha256-WVScTEBo8mRmsQl7V0qOUJn7LNbIvgoAOVsG07KeJ40=";
azure-mgmt-servicelinker = overrideAzureMgmtPackage super.azure-mgmt-servicelinker "1.2.0b2" "tar.gz" "sha256-PpEFMM8ri9OgAa79dGhvPKy5YFfDZZustBUDieQrtZU="; azure-mgmt-dns =
azure-mgmt-signalr = overrideAzureMgmtPackage super.azure-mgmt-signalr "2.0.0b1" "tar.gz" "sha256-oK2ceBEoQ7gAeG6mye+x8HPzQU9bUNRPVJtRW2GL4xg="; overrideAzureMgmtPackage super.azure-mgmt-dns "8.0.0" "zip"
azure-mgmt-sql = overrideAzureMgmtPackage super.azure-mgmt-sql "4.0.0b17" "tar.gz" "sha256-i9VNbYJ3TgzURbtYYrXw+ez4ubK7BH39/EIL5kqb9Xg="; "sha256-QHwtrLM1E/++nKS+Wt216dS64Mt++mE8P31THve/jeg=";
azure-mgmt-sqlvirtualmachine = overrideAzureMgmtPackage super.azure-mgmt-sqlvirtualmachine "1.0.0b5" "zip" "sha256-ZFgJflgynRSxo+B+Vso4eX1JheWlDQjfJ9QmupXypMc="; azure-mgmt-eventgrid =
azure-mgmt-storage = overrideAzureMgmtPackage super.azure-mgmt-storage "21.2.0" "tar.gz" "sha256-KHyYQLAb6TGBnUA9p+1SvWL9B3sFKd1HDm28T+3ksg0="; overrideAzureMgmtPackage super.azure-mgmt-eventgrid "10.2.0b2" "zip"
azure-mgmt-synapse = overrideAzureMgmtPackage super.azure-mgmt-synapse "2.1.0b5" "zip" "sha256-5E6Yf1GgNyNVjd+SeFDbhDxnOA6fOAG6oojxtCP4m+k="; "sha256-QcHY1wCwQyVOEdUi06/wEa4dqJH5Ccd33gJ1Sju0qZA=";
azure-mgmt-trafficmanager = overrideAzureMgmtPackage super.azure-mgmt-trafficmanager "1.0.0" "zip" "sha256-R0F2HoA0bE7dTLPycTaOqYBj+ATQFeJFwv4EjtK1lqg="; azure-mgmt-eventhub =
azure-storage-common = overrideAzureMgmtPackage super.azure-storage-common "1.4.2" "tar.gz" "sha256-Tsh8dTfUV+yVJS4ORkd+LBzPM3dP/v0F2FRGgssK5AE="; overrideAzureMgmtPackage super.azure-mgmt-eventhub "10.1.0" "zip"
azure-synapse-accesscontrol = overrideAzureMgmtPackage super.azure-synapse-accesscontrol "0.5.0" "zip" "sha256-g14ySiByqPgkJGRH8EnIRJO9Q6H2usS5FOeMCQiUuwQ="; "sha256-MZqhSBkwypvEefhoEWEPsBUFidWYD7qAX6edcBDDSSA=";
azure-synapse-spark = overrideAzureMgmtPackage super.azure-synapse-spark "0.2.0" "zip" "sha256-OQ5brhweEIrtN2iP4I5NacdC9t3YUiGIVhhqSs3FMuI="; azure-mgmt-extendedlocation =
overrideAzureMgmtPackage super.azure-mgmt-extendedlocation "1.0.0b2" "zip"
"sha256-mjfH35T81JQ97jVgElWmZ8P5MwXVxZQv/QJKNLS3T8A=";
azure-mgmt-iotcentral =
overrideAzureMgmtPackage super.azure-mgmt-iotcentral "10.0.0b1" "zip"
"sha256-1CiZuTXYhIb74eGQZUJHHzovYNnnVd3Ydu1UCy2Bu00=";
azure-mgmt-kusto =
(overrideAzureMgmtPackage super.azure-mgmt-kusto "0.3.0" "zip"
"sha256-nri3eB/UQQ7p4gfNDDmDuvnlhBS1tKGISdCYVuNrrN4="
).overridePythonAttrs
(attrs: {
propagatedBuildInputs = attrs.propagatedBuildInputs or [ ] ++ [
self.msrest
self.msrestazure
];
});
azure-mgmt-maps =
overrideAzureMgmtPackage super.azure-mgmt-maps "2.0.0" "zip"
"sha256-OE4X92potwCk+YhHiUXDqXIXEcBAByWv38tjz4ToXw4=";
azure-mgmt-media =
overrideAzureMgmtPackage super.azure-mgmt-media "9.0.0" "zip"
"sha256-TI7l8sSQ2QUgPqiE3Cu/F67Wna+KHbQS3fuIjOb95ZM=";
azure-mgmt-monitor =
overrideAzureMgmtPackage super.azure-mgmt-monitor "5.0.0" "zip"
"sha256-eL9KJowxTF7hZJQQQCNJZ7l+rKPFM8wP5vEigt3ZFGE=";
azure-mgmt-netapp =
overrideAzureMgmtPackage super.azure-mgmt-netapp "10.1.0" "zip"
"sha256-eJiWTOCk2C79Jotku9bKlu3vU6H8004hWrX+h76MjQM=";
azure-mgmt-policyinsights =
overrideAzureMgmtPackage super.azure-mgmt-policyinsights "1.1.0b4" "zip"
"sha256-aB16xyrhNYHJeitvdCeV+kik21B2LC+5/OSDQIGwTpI=";
azure-mgmt-privatedns =
overrideAzureMgmtPackage super.azure-mgmt-privatedns "1.0.0" "zip"
"sha256-tg8W5D97KRWCxfV7rhsIMJbYMD6dmVjiwpInpVzCfEU=";
azure-mgmt-rdbms =
overrideAzureMgmtPackage super.azure-mgmt-rdbms "10.2.0b16" "tar.gz"
"sha256-HDktzv8MOs5VRQArbS3waMhjbwVgZMmvch7PXen5DjE=";
azure-mgmt-recoveryservicesbackup =
overrideAzureMgmtPackage super.azure-mgmt-recoveryservicesbackup "9.1.0" "tar.gz"
"sha256-Hp/UBsDJ7iYn9aNx8BL4dzQvf8bzOyVk/NFNbwZjzQ8=";
azure-mgmt-redis =
overrideAzureMgmtPackage super.azure-mgmt-redis "14.3.0" "tar.gz"
"sha256-eoMbY4oNzYXkn3uFUhxecJQD+BxYkGTbWhAWSgAoLyA=";
azure-mgmt-resource =
overrideAzureMgmtPackage super.azure-mgmt-resource "23.1.1" "tar.gz"
"sha256-ILawBrVE/bGWB/P2o4EQViXgu2D78wNvOYhcRkbTND4=";
azure-mgmt-search =
overrideAzureMgmtPackage super.azure-mgmt-search "9.0.0" "zip"
"sha256-Gc+qoTa1EE4/YmJvUSqVG+zZ50wfohvWOe/fLJ/vgb0=";
azure-mgmt-security =
overrideAzureMgmtPackage super.azure-mgmt-security "6.0.0" "tar.gz"
"sha256-zq/BhpiZBnEQvYMMXMmLybjzLY6oQMofaTsaX1Kl+LA=";
azure-mgmt-servicefabric =
overrideAzureMgmtPackage super.azure-mgmt-servicefabric "2.1.0" "tar.gz"
"sha256-oIQzBJVUQ2yQhEvIqWgg6INplITm/8mQMv0lcfjF99Y=";
azure-mgmt-servicelinker =
overrideAzureMgmtPackage super.azure-mgmt-servicelinker "1.2.0b2" "tar.gz"
"sha256-PpEFMM8ri9OgAa79dGhvPKy5YFfDZZustBUDieQrtZU=";
azure-mgmt-signalr =
overrideAzureMgmtPackage super.azure-mgmt-signalr "2.0.0b1" "tar.gz"
"sha256-oK2ceBEoQ7gAeG6mye+x8HPzQU9bUNRPVJtRW2GL4xg=";
azure-mgmt-sql =
overrideAzureMgmtPackage super.azure-mgmt-sql "4.0.0b17" "tar.gz"
"sha256-i9VNbYJ3TgzURbtYYrXw+ez4ubK7BH39/EIL5kqb9Xg=";
azure-mgmt-sqlvirtualmachine =
overrideAzureMgmtPackage super.azure-mgmt-sqlvirtualmachine "1.0.0b5" "zip"
"sha256-ZFgJflgynRSxo+B+Vso4eX1JheWlDQjfJ9QmupXypMc=";
azure-mgmt-storage =
overrideAzureMgmtPackage super.azure-mgmt-storage "21.2.0" "tar.gz"
"sha256-KHyYQLAb6TGBnUA9p+1SvWL9B3sFKd1HDm28T+3ksg0=";
azure-mgmt-synapse =
overrideAzureMgmtPackage super.azure-mgmt-synapse "2.1.0b5" "zip"
"sha256-5E6Yf1GgNyNVjd+SeFDbhDxnOA6fOAG6oojxtCP4m+k=";
azure-mgmt-trafficmanager =
overrideAzureMgmtPackage super.azure-mgmt-trafficmanager "1.0.0" "zip"
"sha256-R0F2HoA0bE7dTLPycTaOqYBj+ATQFeJFwv4EjtK1lqg=";
azure-storage-common =
overrideAzureMgmtPackage super.azure-storage-common "1.4.2" "tar.gz"
"sha256-Tsh8dTfUV+yVJS4ORkd+LBzPM3dP/v0F2FRGgssK5AE=";
azure-synapse-accesscontrol =
overrideAzureMgmtPackage super.azure-synapse-accesscontrol "0.5.0" "zip"
"sha256-g14ySiByqPgkJGRH8EnIRJO9Q6H2usS5FOeMCQiUuwQ=";
azure-synapse-spark =
overrideAzureMgmtPackage super.azure-synapse-spark "0.2.0" "zip"
"sha256-OQ5brhweEIrtN2iP4I5NacdC9t3YUiGIVhhqSs3FMuI=";
}; };
}; };
in in