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-10-08 15:17:17 +00:00
|
|
|
version = "1.2.0";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-08 15:17:17 +00:00
|
|
|
sha256 = "7f519bdf1ed5bfedc4bdcd237c5d3cfa50ef37dd92cf14db123ff80ac99950e0";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|