Files
nixpkgs/pkgs/development/python-modules/google-cloud-monitoring/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

68 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
google-api-core,
google-cloud-testutils,
mock,
pandas,
proto-plus,
protobuf,
pytest-asyncio,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "google-cloud-monitoring";
version = "2.28.0";
pyproject = true;
src = fetchPypi {
pname = "google_cloud_monitoring";
inherit version;
hash = "sha256-JRdVkJB+A4rdZEtbdElB0iF3Y0KSRjcJWoeZc6fArDc=";
};
build-system = [ setuptools ];
dependencies = [
google-api-core
proto-plus
protobuf
]
++ google-api-core.optional-dependencies.grpc;
optional-dependencies = {
pandas = [ pandas ];
};
nativeCheckInputs = [
google-cloud-testutils
mock
pytestCheckHook
pytest-asyncio
]
++ optional-dependencies.pandas;
disabledTests = [
# Test requires credentials
"test_list_monitored_resource_descriptors"
# Test requires PRROJECT_ID
"test_list_alert_policies"
];
pythonImportsCheck = [
"google.cloud.monitoring"
"google.cloud.monitoring_v3"
];
meta = {
description = "Stackdriver Monitoring API client library";
homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-monitoring";
changelog = "https://github.com/googleapis/google-cloud-python/tree/google-cloud-monitoring-v${version}/packages/google-cloud-monitoring";
license = lib.licenses.asl20;
maintainers = [ ];
};
}