nixpkgs/pkgs/development/python-modules/google-cloud-error-reporting/default.nix
2023-07-23 19:30:22 +02:00

60 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, google-api-core
, google-cloud-logging
, google-cloud-testutils
, mock
, proto-plus
, protobuf
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "google-cloud-error-reporting";
version = "1.9.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-S+7x6gIxJDfV7Xe6DOBVbJNMREYlRFLyGo8BEpIdIow=";
};
propagatedBuildInputs = [
google-api-core
google-cloud-logging
proto-plus
protobuf
] ++ google-api-core.optional-dependencies.grpc;
nativeCheckInputs = [
google-cloud-testutils
mock
pytestCheckHook
pytest-asyncio
];
disabledTests = [
# Tests require credentials
"test_report_error_event"
"test_report_exception"
];
preCheck = ''
# prevent google directory from shadowing google imports
rm -r google
'';
meta = with lib; {
description = "Stackdriver Error Reporting API client library";
homepage = "https://github.com/googleapis/python-error-reporting";
changelog = "https://github.com/googleapis/python-error-reporting/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}