diff options
author | Samuel Ainsworth <sam@jurabio.com> | 2023-07-16 20:38:19 -0400 |
---|---|---|
committer | Samuel Ainsworth <sam@jurabio.com> | 2023-07-16 20:38:19 -0400 |
commit | af4b2deeb47aee00407088804b0f30fa402edd38 (patch) | |
tree | 2ffe7ef84da6821eaf7121c73cf99d8c6b604bc9 | |
parent | f804cc939d80186b72506f5b23fe9f1e4764a1f4 (diff) |
python3Packages.google-cloud-artifact-registry: init at 1.8.2
-rw-r--r-- | pkgs/development/python-modules/google-cloud-artifact-registry/default.nix | 41 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/google-cloud-artifact-registry/default.nix b/pkgs/development/python-modules/google-cloud-artifact-registry/default.nix new file mode 100644 index 0000000000000..f88c5e2cef07f --- /dev/null +++ b/pkgs/development/python-modules/google-cloud-artifact-registry/default.nix @@ -0,0 +1,41 @@ +{ buildPythonPackage +, fetchPypi +, google-api-core +, grpc-google-iam-v1 +, lib +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "google-cloud-artifact-registry"; + version = "1.8.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-FuuxwOMV7IB1drn5hzX7p4BwJYQCUsgnZNVR+E6XKhM="; + }; + + propagatedBuildInputs = [ + google-api-core + grpc-google-iam-v1 + ] ++ google-api-core.optional-dependencies.grpc; + + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ + "google.cloud.artifactregistry" + "google.cloud.artifactregistry_v1" + "google.cloud.artifactregistry_v1beta2" + ]; + + meta = with lib; { + description = "Google Cloud Artifact Registry API client library"; + homepage = "https://github.com/googleapis/google-cloud-python"; + license = licenses.asl20; + maintainers = with maintainers; [ samuela ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1e7191d7c83cd..8c595b738ac4d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4265,6 +4265,8 @@ self: super: with self; { google-cloud-appengine-logging = callPackage ../development/python-modules/google-cloud-appengine-logging { }; + google-cloud-artifact-registry = callPackage ../development/python-modules/google-cloud-artifact-registry { }; + google-cloud-asset = callPackage ../development/python-modules/google-cloud-asset { }; google-cloud-audit-log = callPackage ../development/python-modules/google-cloud-audit-log { }; |