Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-artifact-registry / default.nix
blobf778b745cb4c1c0754d44423278384f384c54e7d
1 { buildPythonPackage
2 , fetchPypi
3 , google-api-core
4 , grpc-google-iam-v1
5 , lib
6 , pytestCheckHook
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "google-cloud-artifact-registry";
12   version = "1.9.0";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-NITSosBPrfpIC+FqVU0B5H5MT0taEjzTcl6GW03X8yU=";
20   };
22   propagatedBuildInputs = [
23     google-api-core
24     grpc-google-iam-v1
25   ] ++ google-api-core.optional-dependencies.grpc;
27   nativeCheckInputs = [
28     pytestCheckHook
29   ];
31   pythonImportsCheck = [
32     "google.cloud.artifactregistry"
33     "google.cloud.artifactregistry_v1"
34     "google.cloud.artifactregistry_v1beta2"
35   ];
37   meta = with lib; {
38     description = "Google Cloud Artifact Registry API client library";
39     homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-artifact-registry";
40     changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-artifact-registry-v${version}/packages/google-cloud-artifact-registry/CHANGELOG.md";
41     license = licenses.asl20;
42     maintainers = with maintainers; [ samuela ];
43   };