depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-monitoring/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

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.11.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-PXZGPMer/Y4zmx2Us8EfrLYLnF1tgF63ZDHmBmPPM0w=";
};
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 ];
};
}