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