2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2018-11-02 20:48:41 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-06 10:46:48 +01:00
|
|
|
, google-api-core
|
|
|
|
, google-cloud-testutils
|
2021-01-05 15:57:40 +01:00
|
|
|
, libcst
|
|
|
|
, proto-plus
|
2021-04-05 05:01:45 +02:00
|
|
|
, pandas
|
2021-01-05 15:57:40 +01:00
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
2018-11-02 20:48:41 +01:00
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-monitoring";
|
2021-08-31 23:28:10 +02:00
|
|
|
version = "2.5.0";
|
2018-11-02 20:48:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-31 23:28:10 +02:00
|
|
|
sha256 = "d3d436fab7f50f69bdd47655871ac923e4dcbaf8538808bbe31cf0a3cbdf3514";
|
2018-11-02 20:48:41 +01:00
|
|
|
};
|
|
|
|
|
2021-01-06 10:46:48 +01:00
|
|
|
propagatedBuildInputs = [ libcst google-api-core proto-plus ];
|
2018-11-02 20:48:41 +01:00
|
|
|
|
2021-04-05 05:01:45 +02:00
|
|
|
checkInputs = [ google-cloud-testutils mock pandas pytestCheckHook pytest-asyncio ];
|
2021-01-05 15:57:40 +01:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# requires credentials
|
|
|
|
"test_list_monitored_resource_descriptors"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.monitoring"
|
|
|
|
"google.cloud.monitoring_v3"
|
|
|
|
];
|
2018-11-02 20:48:41 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-11-02 20:48:41 +01:00
|
|
|
description = "Stackdriver Monitoring API client library";
|
2021-03-07 00:37:05 +01:00
|
|
|
homepage = "https://github.com/googleapis/python-monitoring";
|
2018-11-02 20:48:41 +01:00
|
|
|
license = licenses.asl20;
|
2021-01-05 15:57:40 +01:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 20:48:41 +01:00
|
|
|
};
|
|
|
|
}
|