2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2021-01-05 21:48:27 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, grpc_google_iam_v1
|
2021-01-06 10:46:48 +01:00
|
|
|
, google-api-core
|
2021-01-05 21:48:27 +01:00
|
|
|
, libcst
|
|
|
|
, mock
|
|
|
|
, proto-plus
|
|
|
|
, pytest-asyncio
|
2018-11-02 19:17:53 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-kms";
|
2021-06-18 23:47:19 +02:00
|
|
|
version = "2.3.0";
|
2018-11-02 19:17:53 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-18 23:47:19 +02:00
|
|
|
sha256 = "39c6aa1633e45dc0364397b24c83718bd63f833db41d8c93b76019c16208d0f1";
|
2018-11-02 19:17:53 +01:00
|
|
|
};
|
|
|
|
|
2021-01-06 10:46:48 +01:00
|
|
|
propagatedBuildInputs = [ grpc_google_iam_v1 google-api-core libcst proto-plus ];
|
2018-11-02 19:17:53 +01:00
|
|
|
|
2020-11-03 02:16:19 +01:00
|
|
|
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
|
|
|
|
|
|
|
|
# Disable tests that need credentials
|
|
|
|
disabledTests = [ "test_list_global_key_rings" ];
|
2018-11-02 19:17:53 +01:00
|
|
|
|
2021-01-05 21:48:27 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.kms"
|
|
|
|
"google.cloud.kms_v1"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-11-02 19:17:53 +01:00
|
|
|
description = "Cloud Key Management Service (KMS) API API client library";
|
2020-11-03 02:16:19 +01:00
|
|
|
homepage = "https://github.com/googleapis/python-kms";
|
2018-11-02 19:17:53 +01:00
|
|
|
license = licenses.asl20;
|
2021-01-05 21:48:27 +01:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 19:17:53 +01:00
|
|
|
};
|
|
|
|
}
|