Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 40 lines 914 B view raw
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.2.0"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "0f3k2ixp1zsgydpvkj75bs2mb805389snyw30hn41c38qq5ksdga"; 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}