2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
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";
|
2021-02-20 09:09:09 +00:00
|
|
|
version = "2.0.1";
|
2018-11-02 19:48:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 09:09:09 +00:00
|
|
|
sha256 = "639408cac9660b6c7c2324bf1b2461c9c8e338518b9ebb7ebfac833a61d753eb";
|
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 02:11:51 +01: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
|
|
|
};
|
|
|
|
}
|