1{ lib
2, buildPythonPackage
3, fetchPypi
4, google-api-core
5, google-cloud-testutils
6, libcst
7, proto-plus
8, pandas
9, pytestCheckHook
10, pytest-asyncio
11, mock
12}:
13
14buildPythonPackage rec {
15 pname = "google-cloud-monitoring";
16 version = "2.2.1";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "sha256-QeMJBJKjW3Zu0p0mSmo5dVOJNwRmmA5FKXRXjCd+zN4=";
21 };
22
23 propagatedBuildInputs = [ libcst google-api-core proto-plus ];
24
25 checkInputs = [ google-cloud-testutils mock pandas pytestCheckHook pytest-asyncio ];
26
27 disabledTests = [
28 # requires credentials
29 "test_list_monitored_resource_descriptors"
30 ];
31
32 pythonImportsCheck = [
33 "google.cloud.monitoring"
34 "google.cloud.monitoring_v3"
35 ];
36
37 meta = with lib; {
38 description = "Stackdriver Monitoring API client library";
39 homepage = "https://github.com/googleapis/python-monitoring";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ SuperSandro2000 ];
42 };
43}