2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2021-01-09 10:05:03 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, google-cloud-core
|
|
|
|
, google-api-core
|
2021-08-18 13:19:15 +00:00
|
|
|
, grpc-google-iam-v1
|
|
|
|
, proto-plus
|
2021-01-09 10:05:03 +00:00
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-resource-manager";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "1.3.3";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "b13e0a614b4865287a4b5fc43f4810d3d48fef7e24d9bcf54cb4bd93bfbb2bf2";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2021-08-18 13:19:15 +00:00
|
|
|
propagatedBuildInputs = [ google-api-core google-cloud-core grpc-google-iam-v1 proto-plus ];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
checkInputs = [ mock pytestCheckHook ];
|
|
|
|
|
|
|
|
# prevent google directory from shadowing google imports
|
|
|
|
preCheck = ''
|
|
|
|
rm -r google
|
|
|
|
'';
|
|
|
|
|
2021-08-18 13:19:15 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.resourcemanager"
|
|
|
|
"google.cloud.resourcemanager_v3"
|
|
|
|
];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-09 10:05:03 +00:00
|
|
|
description = "Google Cloud Resource Manager API client library";
|
|
|
|
homepage = "https://github.com/googleapis/python-resource-manager";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|