1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 google-api-core, 6 grpc-google-iam-v1, 7 mock, 8 proto-plus, 9 protobuf, 10 pytest-asyncio, 11 pytestCheckHook, 12 pythonOlder, 13 setuptools, 14}: 15 16buildPythonPackage rec { 17 pname = "google-cloud-kms"; 18 version = "2.21.4"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchPypi { 24 inherit pname version; 25 hash = "sha256-AQW8FKOYt/05GUO766/VkY8+NAaCepiXObLcOInMEhg="; 26 }; 27 28 nativeBuildInputs = [ setuptools ]; 29 30 propagatedBuildInputs = [ 31 grpc-google-iam-v1 32 google-api-core 33 proto-plus 34 protobuf 35 ] ++ google-api-core.optional-dependencies.grpc; 36 37 nativeCheckInputs = [ 38 mock 39 pytest-asyncio 40 pytestCheckHook 41 ]; 42 43 disabledTests = [ 44 # Disable tests that need credentials 45 "test_list_global_key_rings" 46 # Tests require PROJECT_ID 47 "test_list_ekm_connections" 48 ]; 49 50 pythonImportsCheck = [ 51 "google.cloud.kms" 52 "google.cloud.kms_v1" 53 ]; 54 55 meta = with lib; { 56 description = "Cloud Key Management Service (KMS) API API client library"; 57 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-kms"; 58 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-kms-v${version}/packages/google-cloud-kms/CHANGELOG.md"; 59 license = licenses.asl20; 60 maintainers = with maintainers; [ ]; 61 }; 62}