2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2021-01-05 14:42:26 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-06 09:46:48 +00:00
|
|
|
, google-api-core
|
|
|
|
, google-cloud-core
|
2021-01-05 14:42:26 +00:00
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2018-11-02 20:12:41 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-runtimeconfig";
|
2020-12-16 19:37:05 +00:00
|
|
|
version = "0.32.1";
|
2018-11-02 20:12:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-05 14:42:26 +00:00
|
|
|
sha256 = "1bd8hlp0ssi20ds4gknbxai8mih6xiz8b60ab7p0ngpdqp1kw52p";
|
2018-11-02 20:12:41 +00:00
|
|
|
};
|
|
|
|
|
2021-01-06 09:46:48 +00:00
|
|
|
propagatedBuildInputs = [ google-api-core google-cloud-core ];
|
2020-11-03 01:17:29 +00:00
|
|
|
|
|
|
|
checkInputs = [ mock pytestCheckHook ];
|
2018-11-02 20:12:41 +00:00
|
|
|
|
2020-11-03 01:17:29 +00:00
|
|
|
# Client tests require credentials
|
2021-01-05 14:42:26 +00:00
|
|
|
disabledTests = [ "client_options" ];
|
2020-11-03 01:17:29 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
'';
|
|
|
|
|
2021-01-05 14:42:26 +00:00
|
|
|
pythonImportsCheck = [ "google.cloud.runtimeconfig" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-02 20:12:41 +00:00
|
|
|
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;
|
2021-01-05 14:42:26 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 20:12:41 +00:00
|
|
|
};
|
|
|
|
}
|