1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, grpc-google-iam-v1
6, google-api-core
7, libcst
8, mock
9, proto-plus
10, pytest-asyncio
11}:
12
13buildPythonPackage rec {
14 pname = "google-cloud-kms";
15 version = "2.10.1";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "6a1cedc549ee0886d8603f519cc8631de3112be6f84c0bbbaedab4ee3f9b58fc";
20 };
21
22 propagatedBuildInputs = [ grpc-google-iam-v1 google-api-core libcst proto-plus ];
23
24 checkInputs = [ mock pytestCheckHook pytest-asyncio ];
25
26 # Disable tests that need credentials
27 disabledTests = [ "test_list_global_key_rings" ];
28
29 pythonImportsCheck = [
30 "google.cloud.kms"
31 "google.cloud.kms_v1"
32 ];
33
34 meta = with lib; {
35 description = "Cloud Key Management Service (KMS) API API client library";
36 homepage = "https://github.com/googleapis/python-kms";
37 license = licenses.asl20;
38 maintainers = with maintainers; [ SuperSandro2000 ];
39 };
40}