diff --git a/pkgs/development/python-modules/google-cloud-monitoring/default.nix b/pkgs/development/python-modules/google-cloud-monitoring/default.nix index 1622df520797..63060d008efd 100644 --- a/pkgs/development/python-modules/google-cloud-monitoring/default.nix +++ b/pkgs/development/python-modules/google-cloud-monitoring/default.nix @@ -4,26 +4,31 @@ , google-api-core , google-cloud-testutils , mock -, proto-plus , pandas -, pytestCheckHook -, pytest-asyncio +, proto-plus , protobuf +, pytest-asyncio +, pytestCheckHook , pythonOlder +, setuptools }: buildPythonPackage rec { pname = "google-cloud-monitoring"; - version = "2.16.0"; - format = "setuptools"; + version = "2.18.0"; + pyproject = true; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-PRhRAJMSraXoq/IP92GvhHS3UwYKtuC31uxHvBHysTY="; + hash = "sha256-Bswdf7dcXlC1S8wASUHqSyCnqfCe1+bnU1FP2MQ2CWo="; }; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ google-api-core proto-plus @@ -44,8 +49,10 @@ buildPythonPackage rec { ] ++ passthru.optional-dependencies.pandas; disabledTests = [ - # requires credentials + # Test requires credentials "test_list_monitored_resource_descriptors" + # Test requires PRROJECT_ID + "test_list_alert_policies" ]; pythonImportsCheck = [ @@ -55,8 +62,8 @@ buildPythonPackage rec { meta = with lib; { description = "Stackdriver Monitoring API client library"; - homepage = "https://github.com/googleapis/python-monitoring"; - changelog = "https://github.com/googleapis/python-monitoring/blob/v${version}/CHANGELOG.md"; + 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 = licenses.asl20; maintainers = with maintainers; [ ]; };