Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-monitoring / default.nix
blobf230ac19194bcb4f6200d48f0b0b24d791396e80
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , google-api-core
5 , google-cloud-testutils
6 , mock
7 , pandas
8 , proto-plus
9 , protobuf
10 , pytest-asyncio
11 , pytestCheckHook
12 , pythonOlder
13 , setuptools
16 buildPythonPackage rec {
17   pname = "google-cloud-monitoring";
18   version = "2.19.3";
19   pyproject = true;
21   disabled = pythonOlder "3.7";
23   src = fetchPypi {
24     inherit pname version;
25     hash = "sha256-N2QeU3mG/SIn+HOLh51gWozfTDFc3GDobhCTR6scodc=";
26   };
28   nativeBuildInputs = [
29     setuptools
30   ];
32   propagatedBuildInputs = [
33     google-api-core
34     proto-plus
35     protobuf
36   ] ++ google-api-core.optional-dependencies.grpc;
38   passthru.optional-dependencies = {
39     pandas = [
40       pandas
41     ];
42   };
44   nativeCheckInputs = [
45     google-cloud-testutils
46     mock
47     pytestCheckHook
48     pytest-asyncio
49   ] ++ passthru.optional-dependencies.pandas;
51   disabledTests = [
52     # Test requires credentials
53     "test_list_monitored_resource_descriptors"
54     # Test requires PRROJECT_ID
55     "test_list_alert_policies"
56   ];
58   pythonImportsCheck = [
59     "google.cloud.monitoring"
60     "google.cloud.monitoring_v3"
61   ];
63   meta = with lib; {
64     description = "Stackdriver Monitoring API client library";
65     homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-monitoring";
66     changelog = "https://github.com/googleapis/google-cloud-python/tree/google-cloud-monitoring-v${version}/packages/google-cloud-monitoring";
67     license = licenses.asl20;
68     maintainers = with maintainers; [ ];
69   };