1{ lib
2, buildPythonPackage
3, fetchPypi
4, google-api-core
5, google-cloud-testutils
6, mock
7, proto-plus
8, pandas
9, pytestCheckHook
10, pytest-asyncio
11, protobuf
12, pythonOlder
13}:
14
15buildPythonPackage rec {
16 pname = "google-cloud-monitoring";
17 version = "2.16.0";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-PRhRAJMSraXoq/IP92GvhHS3UwYKtuC31uxHvBHysTY=";
25 };
26
27 propagatedBuildInputs = [
28 google-api-core
29 proto-plus
30 protobuf
31 ] ++ google-api-core.optional-dependencies.grpc;
32
33 passthru.optional-dependencies = {
34 pandas = [
35 pandas
36 ];
37 };
38
39 nativeCheckInputs = [
40 google-cloud-testutils
41 mock
42 pytestCheckHook
43 pytest-asyncio
44 ] ++ passthru.optional-dependencies.pandas;
45
46 disabledTests = [
47 # requires credentials
48 "test_list_monitored_resource_descriptors"
49 ];
50
51 pythonImportsCheck = [
52 "google.cloud.monitoring"
53 "google.cloud.monitoring_v3"
54 ];
55
56 meta = with lib; {
57 description = "Stackdriver Monitoring API client library";
58 homepage = "https://github.com/googleapis/python-monitoring";
59 changelog = "https://github.com/googleapis/python-monitoring/blob/v${version}/CHANGELOG.md";
60 license = licenses.asl20;
61 maintainers = with maintainers; [ ];
62 };
63}