pythonPackages.google_cloud_secret_manager: Cleanups

This commit is contained in:
Sandro Jäckel 2021-01-05 15:39:52 +01:00
parent 61b7747992
commit b92abee84d
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -1,6 +1,13 @@
{ lib, buildPythonPackage, fetchPypi { lib
, grpc_google_iam_v1, google_api_core, libcst, proto-plus , buildPythonPackage
, pytest, mock , fetchPypi
, google_api_core
, grpc_google_iam_v1
, libcst
, mock
, proto-plus
, pytestCheckHook
, pytest-asyncio
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -9,7 +16,7 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "2f08b49164aca8623b2e4ee07352980b3ffca909ce205c03568e203bbc455c30"; sha256 = "0c2w8ny3n84faq1mq86f16lzqgqbk1977q2f5qxn5a5ccj8v821g";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -21,16 +28,20 @@ buildPythonPackage rec {
checkInputs = [ checkInputs = [
mock mock
pytest pytestCheckHook
pytest-asyncio
];
pythonImportsCheck = [
"google.cloud.secretmanager"
"google.cloud.secretmanager_v1"
"google.cloud.secretmanager_v1beta1"
]; ];
checkPhase = ''
pytest
'';
meta = with lib; { meta = with lib; {
description = "Secret Manager API: Stores, manages, and secures access to application secrets"; description = "Secret Manager API API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python"; homepage = "https://github.com/googleapis/python-secret-manager";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ siriobalmelli ]; maintainers = with maintainers; [ siriobalmelli SuperSandro2000 ];
}; };
} }