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 12}: 13 14buildPythonPackage rec { 15 pname = "google-cloud-kms"; 16 version = "2.19.1"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-ia3XCpLUXJ93AGEHdDaOidQEagUkMVAnb2UYK+ktzKc="; 24 }; 25 26 propagatedBuildInputs = [ 27 grpc-google-iam-v1 28 google-api-core 29 proto-plus 30 protobuf 31 ] ++ google-api-core.optional-dependencies.grpc; 32 33 nativeCheckInputs = [ 34 mock 35 pytest-asyncio 36 pytestCheckHook 37 ]; 38 39 # Disable tests that need credentials 40 disabledTests = [ 41 "test_list_global_key_rings" 42 ]; 43 44 pythonImportsCheck = [ 45 "google.cloud.kms" 46 "google.cloud.kms_v1" 47 ]; 48 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 }; 56}