1{ lib
2, buildPythonPackage
3, fetchPypi
4, google-api-core
5, google-cloud-core
6, mock
7, pytestCheckHook
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "google-cloud-runtimeconfig";
13 version = "0.33.2";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-MPmyvm2FSrUzb1y5i4xl5Cqea6sxixLoZ7V1hxNi7hw=";
21 };
22
23 propagatedBuildInputs = [
24 google-api-core
25 google-cloud-core
26 ];
27
28 nativeCheckInputs = [
29 mock
30 pytestCheckHook
31 ];
32
33 # Client tests require credentials
34 disabledTests = [
35 "client_options"
36 ];
37
38 # prevent google directory from shadowing google imports
39 preCheck = ''
40 rm -r google
41 '';
42
43 pythonImportsCheck = [
44 "google.cloud.runtimeconfig"
45 ];
46
47 meta = with lib; {
48 description = "Google Cloud RuntimeConfig API client library";
49 homepage = "https://github.com/googleapis/python-runtimeconfig";
50 changelog = "https://github.com/googleapis/python-runtimeconfig/blob/v${version}/CHANGELOG.md";
51 license = licenses.asl20;
52 maintainers = with maintainers; [ ];
53 };
54}