pythonPackages.google_cloud_monitoring: Fix dependencies, cleanups

This commit is contained in:
Sandro Jäckel 2021-01-05 15:57:40 +01:00
parent 6eae485e9f
commit 2babbb5f8a
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -2,8 +2,11 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, google_api_core , google_api_core
, pandas , google_cloud_testutils
, pytest , libcst
, proto-plus
, pytestCheckHook
, pytest-asyncio
, mock , mock
}: }:
@ -13,20 +16,27 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "1debfa046ab9518d46b68712c03d86d0ddb11d1aad428aed62c6465752f2201f"; sha256 = "07r0y995fin6cbnqlhmd38fv3pfhhqyw04l7nr38sldrd82gmsqx";
}; };
checkInputs = [ pytest mock ]; propagatedBuildInputs = [ libcst google_api_core proto-plus ];
propagatedBuildInputs = [ google_api_core pandas ];
checkPhase = '' checkInputs = [ google_cloud_testutils mock pytestCheckHook pytest-asyncio ];
pytest tests/unit
''; disabledTests = [
# requires credentials
"test_list_monitored_resource_descriptors"
];
pythonImportsCheck = [
"google.cloud.monitoring"
"google.cloud.monitoring_v3"
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Stackdriver Monitoring API client library"; description = "Stackdriver Monitoring API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python"; homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
license = licenses.asl20; license = licenses.asl20;
maintainers = [ maintainers.costrouc ]; maintainers = with maintainers; [ SuperSandro2000 ];
}; };
} }