1be0098156
GitOrigin-RevId: 667e5581d16745bcda791300ae7e2d73f49fff25
40 lines
914 B
Nix
40 lines
914 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, grpc-google-iam-v1
|
|
, google-api-core
|
|
, libcst
|
|
, mock
|
|
, proto-plus
|
|
, pytest-asyncio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-cloud-kms";
|
|
version = "2.12.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-ooWxYH4B8HY9ybWj0GQqUnfiFXzLCqyXGGZsocV9Od0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ grpc-google-iam-v1 google-api-core libcst proto-plus ];
|
|
|
|
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
|
|
|
|
# Disable tests that need credentials
|
|
disabledTests = [ "test_list_global_key_rings" ];
|
|
|
|
pythonImportsCheck = [
|
|
"google.cloud.kms"
|
|
"google.cloud.kms_v1"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Cloud Key Management Service (KMS) API API client library";
|
|
homepage = "https://github.com/googleapis/python-kms";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|