2021-01-09 10:05:03 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, google-api-core
|
|
|
|
, google-cloud-core
|
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-runtimeconfig";
|
2020-12-25 13:55:36 +00:00
|
|
|
version = "0.32.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-09 10:05:03 +00:00
|
|
|
sha256 = "1bd8hlp0ssi20ds4gknbxai8mih6xiz8b60ab7p0ngpdqp1kw52p";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
propagatedBuildInputs = [ google-api-core google-cloud-core ];
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
checkInputs = [ mock pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-06 00:33:48 +00:00
|
|
|
# Client tests require credentials
|
2021-01-09 10:05:03 +00:00
|
|
|
disabledTests = [ "client_options" ];
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
# prevent google directory from shadowing google imports
|
|
|
|
preCheck = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
rm -r google
|
|
|
|
'';
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
pythonImportsCheck = [ "google.cloud.runtimeconfig" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Google Cloud RuntimeConfig API client library";
|
2020-11-06 00:33:48 +00:00
|
|
|
homepage = "https://pypi.org/project/google-cloud-runtimeconfig";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2021-01-09 10:05:03 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|