34 lines
738 B
Nix
34 lines
738 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, enum34
|
|
, grpc_google_iam_v1
|
|
, google_api_core
|
|
, pytest
|
|
, mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-cloud-kms";
|
|
version = "1.0.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "2167e1c599ea1d9fed96d317ad817d0b37497460c70f11aafa13a24ede7c9c35";
|
|
};
|
|
|
|
checkInputs = [ pytest mock ];
|
|
propagatedBuildInputs = [ enum34 grpc_google_iam_v1 google_api_core ];
|
|
|
|
checkPhase = ''
|
|
pytest tests/unit
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Cloud Key Management Service (KMS) API API client library";
|
|
homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|