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
|
2022-03-05 16:20:37 +00:00
|
|
|
, pythonOlder
|
2021-01-09 10:05:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-resource-manager";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "1.6.0";
|
2022-03-05 16:20:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-07-14 12:49:19 +00:00
|
|
|
hash = "sha256-loyEh0R4jtOThDJXntnWi/q74WmXmC7E4f6h059UccU=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
google-api-core
|
|
|
|
google-cloud-core
|
|
|
|
grpc-google-iam-v1
|
|
|
|
proto-plus
|
|
|
|
];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|