diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2022-03-18 10:31:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-18 10:31:38 +0100 |
commit | 94000f47f3a21db3e2029d4e5a76bfe6fd24c621 (patch) | |
tree | e0ddda979173935a7f13f536d567c2932e2816a7 | |
parent | 201a32a1a70720a28036c1e83c421a185f2f13a5 (diff) | |
parent | 4faa91c07d28d853cbd8d652e0d74ec38ef2ddb8 (diff) | |
download | nixpkgs-94000f47f3a21db3e2029d4e5a76bfe6fd24c621.tar nixpkgs-94000f47f3a21db3e2029d4e5a76bfe6fd24c621.tar.gz nixpkgs-94000f47f3a21db3e2029d4e5a76bfe6fd24c621.tar.bz2 nixpkgs-94000f47f3a21db3e2029d4e5a76bfe6fd24c621.tar.lz nixpkgs-94000f47f3a21db3e2029d4e5a76bfe6fd24c621.tar.xz nixpkgs-94000f47f3a21db3e2029d4e5a76bfe6fd24c621.tar.zst nixpkgs-94000f47f3a21db3e2029d4e5a76bfe6fd24c621.zip |
Merge pull request #164249 from peterromfeldhk/peter-python-packages-azure-containerregistry
python3Packages.azure-containerregistry: init at 1.0.0
-rw-r--r-- | pkgs/development/python-modules/azure-containerregistry/default.nix | 32 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/azure-containerregistry/default.nix b/pkgs/development/python-modules/azure-containerregistry/default.nix new file mode 100644 index 00000000000..bc1aaf5f8bd --- /dev/null +++ b/pkgs/development/python-modules/azure-containerregistry/default.nix @@ -0,0 +1,32 @@ +{ lib, buildPythonPackage, fetchPypi, pythonOlder +, azure-core +, msrest +, msrestazure +}: + +buildPythonPackage rec { + pname = "azure-containerregistry"; + version = "1.0.0"; + disabled = pythonOlder "3.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-DIZCHZM5aeKtmJrgwAk5J26ltaxNxKUn3rR+FbmuyZc="; + extension = "zip"; + }; + + propagatedBuildInputs = [ azure-core msrest msrestazure ]; + + # tests require azure-devtools which are not published (since 2020) + # https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/containerregistry/azure-containerregistry/dev_requirements.txt + doCheck = false; + + pythonImportsCheck = [ "azure.core" "azure.containerregistry" ]; + + meta = with lib; { + description = "Microsoft Azure Container Registry client library for Python"; + homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/containerregistry/azure-containerregistry"; + license = licenses.mit; + maintainers = with maintainers; [ peterromfeldhk ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 64025d04ad9..92da9eec9a6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -844,6 +844,8 @@ in { azure-common = callPackage ../development/python-modules/azure-common { }; + azure-containerregistry = callPackage ../development/python-modules/azure-containerregistry { }; + azure-core = callPackage ../development/python-modules/azure-core { }; azure-cosmos = callPackage ../development/python-modules/azure-cosmos { }; |