1{
2 buildPythonPackage,
3 fetchPypi,
4 google-api-core,
5 google-auth,
6 grpc-google-iam-v1,
7 lib,
8 proto-plus,
9 protobuf,
10 pytest-asyncio,
11 pytestCheckHook,
12 pythonOlder,
13 setuptools,
14}:
15
16buildPythonPackage rec {
17 pname = "google-cloud-artifact-registry";
18 version = "1.16.1";
19 pyproject = true;
20
21 disabled = pythonOlder "3.7";
22
23 src = fetchPypi {
24 pname = "google_cloud_artifact_registry";
25 inherit version;
26 hash = "sha256-X3v503uTPImEhSFw/oQlAaitx/MSgagblK1hkkSL7M4=";
27 };
28
29 build-system = [ setuptools ];
30
31 dependencies = [
32 google-api-core
33 google-auth
34 grpc-google-iam-v1
35 proto-plus
36 protobuf
37 ]
38 ++ google-api-core.optional-dependencies.grpc;
39
40 nativeCheckInputs = [
41 pytest-asyncio
42 pytestCheckHook
43 ];
44
45 pythonImportsCheck = [
46 "google.cloud.artifactregistry"
47 "google.cloud.artifactregistry_v1"
48 "google.cloud.artifactregistry_v1beta2"
49 ];
50
51 meta = with lib; {
52 description = "Google Cloud Artifact Registry API client library";
53 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-artifact-registry";
54 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-artifact-registry-v${version}/packages/google-cloud-artifact-registry/CHANGELOG.md";
55 license = licenses.asl20;
56 maintainers = with maintainers; [ samuela ];
57 };
58}