pythonPackages.google_cloud_resource_manager: Cleanups
This commit is contained in:
parent
32e25e4c3c
commit
a3a1091dee
1 changed files with 13 additions and 11 deletions
|
@ -1,5 +1,11 @@
|
|||
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
|
||||
, google_cloud_core, google_api_core, mock, pytest }:
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytestCheckHook
|
||||
, google_cloud_core
|
||||
, google_api_core
|
||||
, mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-cloud-resource-manager";
|
||||
|
@ -7,28 +13,24 @@ buildPythonPackage rec {
|
|||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3577bbf38f2c7c2f42306b8dfdeffbb0eedf45aaec947fd513d51937f72046d1";
|
||||
sha256 = "1la643vkf6fm2gapz57cm92xzvmhzgpzv3bb6112yz1cizrvnxrm";
|
||||
};
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
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" ];
|
||||
checkInputs = [ mock pytestCheckHook ];
|
||||
|
||||
# prevent google directory from shadowing google imports
|
||||
preCheck = ''
|
||||
rm -r google
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "google.cloud.resource_manager" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Google Cloud Resource Manager API client library";
|
||||
homepage = "https://github.com/googleapis/python-resource-manager";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue