2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2018-11-02 19:48:41 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-06 09:46:48 +00:00
|
|
|
, google-api-core
|
|
|
|
, google-cloud-testutils
|
2021-01-05 14:57:40 +00:00
|
|
|
, libcst
|
|
|
|
, proto-plus
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
2018-11-02 19:48:41 +00:00
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-monitoring";
|
2020-11-29 14:04:29 +00:00
|
|
|
version = "2.0.0";
|
2018-11-02 19:48:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-05 14:57:40 +00:00
|
|
|
sha256 = "07r0y995fin6cbnqlhmd38fv3pfhhqyw04l7nr38sldrd82gmsqx";
|
2018-11-02 19:48:41 +00:00
|
|
|
};
|
|
|
|
|
2021-01-06 09:46:48 +00:00
|
|
|
propagatedBuildInputs = [ libcst google-api-core proto-plus ];
|
2018-11-02 19:48:41 +00:00
|
|
|
|
2021-01-06 09:46:48 +00:00
|
|
|
checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
|
2021-01-05 14:57:40 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# requires credentials
|
|
|
|
"test_list_monitored_resource_descriptors"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.monitoring"
|
|
|
|
"google.cloud.monitoring_v3"
|
|
|
|
];
|
2018-11-02 19:48:41 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-02 19:48:41 +00:00
|
|
|
description = "Stackdriver Monitoring API client library";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
2018-11-02 19:48:41 +00:00
|
|
|
license = licenses.asl20;
|
2021-01-05 14:57:40 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 19:48:41 +00:00
|
|
|
};
|
|
|
|
}
|