1{ lib
2, buildPythonPackage
3, fetchPypi
4, google-api-core
5, google-cloud-core
6, mock
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "google-cloud-runtimeconfig";
12 version = "0.33.2";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "sha256-MPmyvm2FSrUzb1y5i4xl5Cqea6sxixLoZ7V1hxNi7hw=";
17 };
18
19 propagatedBuildInputs = [ google-api-core google-cloud-core ];
20
21 checkInputs = [ mock pytestCheckHook ];
22
23 # Client tests require credentials
24 disabledTests = [ "client_options" ];
25
26 # prevent google directory from shadowing google imports
27 preCheck = ''
28 rm -r google
29 '';
30
31 pythonImportsCheck = [ "google.cloud.runtimeconfig" ];
32
33 meta = with lib; {
34 description = "Google Cloud RuntimeConfig API client library";
35 homepage = "https://pypi.org/project/google-cloud-runtimeconfig";
36 license = licenses.asl20;
37 maintainers = with maintainers; [ SuperSandro2000 ];
38 };
39}