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