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-01-05 14:44:21 +00:00
|
|
|
, mock
|
|
|
|
}:
|
2018-11-02 20:09:18 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-resource-manager";
|
2021-08-09 22:38:53 +01:00
|
|
|
version = "1.0.2";
|
2018-11-02 20:09:18 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-09 22:38:53 +01:00
|
|
|
sha256 = "sha256-5njC5yO7NTU81i9vmJoe1RBYPS1fU/3K5tgH7twyT+I=";
|
2018-11-02 20:09:18 +00:00
|
|
|
};
|
|
|
|
|
2021-01-06 09:46:48 +00:00
|
|
|
propagatedBuildInputs = [ google-api-core google-cloud-core ];
|
2020-11-03 01:17:14 +00:00
|
|
|
|
2021-01-05 14:44:21 +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-01-05 14:44:21 +00:00
|
|
|
pythonImportsCheck = [ "google.cloud.resource_manager" ];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|