ca5ab3a501
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
57 lines
1 KiB
Nix
57 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, google-api-core
|
|
, google-cloud-testutils
|
|
, libcst
|
|
, proto-plus
|
|
, pandas
|
|
, pytestCheckHook
|
|
, pytest-asyncio
|
|
, mock
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-cloud-monitoring";
|
|
version = "2.10.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-hnDzNkFluRjq/Bxk6NIXezGLDEMAcW4MLQG7F5U9Ez8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
libcst
|
|
google-api-core
|
|
proto-plus
|
|
];
|
|
|
|
checkInputs = [
|
|
google-cloud-testutils
|
|
mock
|
|
pandas
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
];
|
|
|
|
disabledTests = [
|
|
# requires credentials
|
|
"test_list_monitored_resource_descriptors"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"google.cloud.monitoring"
|
|
"google.cloud.monitoring_v3"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Stackdriver Monitoring API client library";
|
|
homepage = "https://github.com/googleapis/python-monitoring";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|