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