Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-kms / default.nix
blob5daa5fe466f610e9086b5e949c023eab02012989
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , google-api-core
5 , grpc-google-iam-v1
6 , mock
7 , proto-plus
8 , protobuf
9 , pytest-asyncio
10 , pytestCheckHook
11 , pythonOlder
14 buildPythonPackage rec {
15   pname = "google-cloud-kms";
16   version = "2.19.1";
17   format = "setuptools";
19   disabled = pythonOlder "3.7";
21   src = fetchPypi {
22     inherit pname version;
23     hash = "sha256-ia3XCpLUXJ93AGEHdDaOidQEagUkMVAnb2UYK+ktzKc=";
24   };
26   propagatedBuildInputs = [
27     grpc-google-iam-v1
28     google-api-core
29     proto-plus
30     protobuf
31   ] ++ google-api-core.optional-dependencies.grpc;
33   nativeCheckInputs = [
34     mock
35     pytest-asyncio
36     pytestCheckHook
37   ];
39   # Disable tests that need credentials
40   disabledTests = [
41     "test_list_global_key_rings"
42   ];
44   pythonImportsCheck = [
45     "google.cloud.kms"
46     "google.cloud.kms_v1"
47   ];
49   meta = with lib; {
50     description = "Cloud Key Management Service (KMS) API API client library";
51     homepage = "https://github.com/googleapis/python-kms";
52     changelog = "https://github.com/googleapis/python-kms/blob/v${version}/CHANGELOG.md";
53     license = licenses.asl20;
54     maintainers = with maintainers; [ ];
55   };