2020-11-03 01:17:29 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
|
|
|
|
, google_api_core, google_cloud_core, mock }:
|
2018-11-02 20:12:41 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-runtimeconfig";
|
2020-08-16 18:31:01 +01:00
|
|
|
version = "0.32.0";
|
2018-11-02 20:12:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 18:31:01 +01:00
|
|
|
sha256 = "3d125c01817d5bef2b644095b044d22b03b9d8d4591088cadd8e97851f7a150a";
|
2018-11-02 20:12:41 +00:00
|
|
|
};
|
|
|
|
|
2020-11-03 01:17:29 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
checkInputs = [ mock pytestCheckHook ];
|
2018-11-02 20:12:41 +00:00
|
|
|
propagatedBuildInputs = [ google_api_core google_cloud_core ];
|
|
|
|
|
2020-11-03 01:17:29 +00:00
|
|
|
# api_url test broken, fix not yet released
|
|
|
|
# https://github.com/googleapis/python-resource-manager/pull/31
|
|
|
|
# Client tests require credentials
|
|
|
|
disabledTests = [ "build_api_url_w_custom_endpoint" "client_options" ];
|
|
|
|
|
|
|
|
# prevent google directory from shadowing google imports
|
|
|
|
preCheck = ''
|
2020-03-18 22:26:52 +00:00
|
|
|
rm -r google
|
2018-11-02 20:12:41 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Google Cloud RuntimeConfig API client library";
|
2020-11-03 01:17:29 +00:00
|
|
|
homepage = "https://pypi.org/project/google-cloud-runtimeconfig";
|
2018-11-02 20:12:41 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|