Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-monitoring / default.nix
blob1622df5207970333b7d444d95e8f51df2437dbb4
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
15 buildPythonPackage rec {
16   pname = "google-cloud-monitoring";
17   version = "2.16.0";
18   format = "setuptools";
20   disabled = pythonOlder "3.7";
22   src = fetchPypi {
23     inherit pname version;
24     hash = "sha256-PRhRAJMSraXoq/IP92GvhHS3UwYKtuC31uxHvBHysTY=";
25   };
27   propagatedBuildInputs = [
28     google-api-core
29     proto-plus
30     protobuf
31   ] ++ google-api-core.optional-dependencies.grpc;
33   passthru.optional-dependencies = {
34     pandas = [
35       pandas
36     ];
37   };
39   nativeCheckInputs = [
40     google-cloud-testutils
41     mock
42     pytestCheckHook
43     pytest-asyncio
44   ] ++ passthru.optional-dependencies.pandas;
46   disabledTests = [
47     # requires credentials
48     "test_list_monitored_resource_descriptors"
49   ];
51   pythonImportsCheck = [
52     "google.cloud.monitoring"
53     "google.cloud.monitoring_v3"
54   ];
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   };