2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2021-01-05 14:44:21 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
2021-01-06 09:46:48 +00:00
|
|
|
, google-cloud-core
|
|
|
|
, google-api-core
|
2021-08-16 11:53:30 +01:00
|
|
|
, grpc-google-iam-v1
|
|
|
|
, proto-plus
|
2021-01-05 14:44:21 +00:00
|
|
|
, mock
|
2022-03-01 07:43:25 +00:00
|
|
|
, pythonOlder
|
2021-01-05 14:44:21 +00:00
|
|
|
}:
|
2018-11-02 20:09:18 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-resource-manager";
|
2022-03-08 02:40:17 +00:00
|
|
|
version = "1.4.1";
|
2022-03-01 07:43:25 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2018-11-02 20:09:18 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-08 02:40:17 +00:00
|
|
|
hash = "sha256-NUqFkvIwfaqz3MZEUoLqO7hFCVwV5124+lA8LGzccl0=";
|
2018-11-02 20:09:18 +00:00
|
|
|
};
|
|
|
|
|
2022-03-01 07:43:25 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
google-api-core
|
|
|
|
google-cloud-core
|
|
|
|
grpc-google-iam-v1
|
|
|
|
proto-plus
|
|
|
|
];
|
2020-11-03 01:17:14 +00:00
|
|
|
|
2022-03-01 07:43:25 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-11-03 01:17:14 +00:00
|
|
|
|
|
|
|
# prevent google directory from shadowing google imports
|
|
|
|
preCheck = ''
|
2020-03-18 22:34:33 +00:00
|
|
|
rm -r google
|
2018-11-02 20:09:18 +00:00
|
|
|
'';
|
|
|
|
|
2021-08-16 11:53:30 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.resourcemanager"
|
|
|
|
"google.cloud.resourcemanager_v3"
|
|
|
|
];
|
2021-01-05 14:44:21 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-02 20:09:18 +00:00
|
|
|
description = "Google Cloud Resource Manager API client library";
|
2020-11-03 01:17:14 +00:00
|
|
|
homepage = "https://github.com/googleapis/python-resource-manager";
|
2018-11-02 20:09:18 +00:00
|
|
|
license = licenses.asl20;
|
2021-01-05 14:44:21 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 20:09:18 +00:00
|
|
|
};
|
|
|
|
}
|