a5adf1ddd8
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
39 lines
920 B
Nix
39 lines
920 B
Nix
{ lib, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, google-api-core
|
|
, google-cloud-core
|
|
, mock
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-cloud-runtimeconfig";
|
|
version = "0.32.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1bd8hlp0ssi20ds4gknbxai8mih6xiz8b60ab7p0ngpdqp1kw52p";
|
|
};
|
|
|
|
propagatedBuildInputs = [ google-api-core google-cloud-core ];
|
|
|
|
checkInputs = [ mock pytestCheckHook ];
|
|
|
|
# Client tests require credentials
|
|
disabledTests = [ "client_options" ];
|
|
|
|
# prevent google directory from shadowing google imports
|
|
preCheck = ''
|
|
rm -r google
|
|
'';
|
|
|
|
pythonImportsCheck = [ "google.cloud.runtimeconfig" ];
|
|
|
|
meta = with lib; {
|
|
description = "Google Cloud RuntimeConfig API client library";
|
|
homepage = "https://pypi.org/project/google-cloud-runtimeconfig";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|