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";
|
2020-12-25 11:10:45 +00:00
|
|
|
version = "0.30.3";
|
2018-11-02 20:09:18 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-05 14:44:21 +00:00
|
|
|
sha256 = "1la643vkf6fm2gapz57cm92xzvmhzgpzv3bb6112yz1cizrvnxrm";
|
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
|
|
|
};
|
|
|
|
}
|