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