From 2babbb5f8a9ae6c2c06f973034406813898f3d3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 5 Jan 2021 15:57:40 +0100 Subject: [PATCH] pythonPackages.google_cloud_monitoring: Fix dependencies, cleanups --- .../google_cloud_monitoring/default.nix | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/google_cloud_monitoring/default.nix b/pkgs/development/python-modules/google_cloud_monitoring/default.nix index 99557565e63..c1890d99a04 100644 --- a/pkgs/development/python-modules/google_cloud_monitoring/default.nix +++ b/pkgs/development/python-modules/google_cloud_monitoring/default.nix @@ -2,8 +2,11 @@ , buildPythonPackage , fetchPypi , google_api_core -, pandas -, pytest +, google_cloud_testutils +, libcst +, proto-plus +, pytestCheckHook +, pytest-asyncio , mock }: @@ -13,20 +16,27 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - sha256 = "1debfa046ab9518d46b68712c03d86d0ddb11d1aad428aed62c6465752f2201f"; + sha256 = "07r0y995fin6cbnqlhmd38fv3pfhhqyw04l7nr38sldrd82gmsqx"; }; - checkInputs = [ pytest mock ]; - propagatedBuildInputs = [ google_api_core pandas ]; + propagatedBuildInputs = [ libcst google_api_core proto-plus ]; - checkPhase = '' - pytest tests/unit - ''; + checkInputs = [ google_cloud_testutils mock pytestCheckHook pytest-asyncio ]; + + disabledTests = [ + # requires credentials + "test_list_monitored_resource_descriptors" + ]; + + pythonImportsCheck = [ + "google.cloud.monitoring" + "google.cloud.monitoring_v3" + ]; meta = with stdenv.lib; { description = "Stackdriver Monitoring API client library"; homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python"; license = licenses.asl20; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ SuperSandro2000 ]; }; }