nixpkgs/pkgs/development/python-modules/google-cloud-monitoring/default.nix

44 lines
969 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, google-api-core
, google-cloud-testutils
, libcst
, proto-plus
, pandas
, pytestCheckHook
, pytest-asyncio
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-monitoring";
version = "2.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "fcbf644622709277d47b0dd8884efd1d62703bffda3c1030e06404709690c06c";
};
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 ];
};
}