2020-11-03 01:17:14 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
|
|
|
|
, google_cloud_core, google_api_core, mock, pytest }:
|
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;
|
2020-12-25 11:10:45 +00:00
|
|
|
sha256 = "3577bbf38f2c7c2f42306b8dfdeffbb0eedf45aaec947fd513d51937f72046d1";
|
2018-11-02 20:09:18 +00:00
|
|
|
};
|
|
|
|
|
2020-11-03 01:17:14 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2018-11-02 20:09:18 +00:00
|
|
|
|
2020-11-03 01:17:14 +00:00
|
|
|
checkInputs = [ mock pytestCheckHook ];
|
|
|
|
propagatedBuildInputs = [ google_api_core google_cloud_core ];
|
|
|
|
|
|
|
|
# api_url test broken, fix not yet released
|
|
|
|
# https://github.com/googleapis/python-resource-manager/pull/31
|
|
|
|
disabledTests =
|
|
|
|
[ "api_url_no_extra_query_param" "api_url_w_custom_endpoint" ];
|
|
|
|
|
|
|
|
# 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
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|