2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2021-01-05 16:57:05 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
2021-01-06 10:46:48 +01:00
|
|
|
, google-cloud-logging
|
|
|
|
, google-cloud-testutils
|
2021-01-05 16:57:05 +01:00
|
|
|
, libcst
|
|
|
|
, mock
|
|
|
|
, proto-plus
|
|
|
|
, pytest-asyncio
|
|
|
|
}:
|
2018-11-02 20:31:56 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-error-reporting";
|
2021-08-09 23:38:31 +02:00
|
|
|
version = "1.2.2";
|
2018-11-02 20:31:56 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-09 23:38:31 +02:00
|
|
|
sha256 = "sha256-LKESEpQLvjmyo8VcZ1fxMcPCbUE+mxvmnexoZEKramc=";
|
2018-11-02 20:31:56 +01:00
|
|
|
};
|
|
|
|
|
2021-02-02 23:36:37 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2021-06-06 22:43:26 +02:00
|
|
|
--replace 'google-cloud-logging>=1.14.0, <2.4' 'google-cloud-logging>=1.14.0'
|
2021-02-02 23:36:37 +01:00
|
|
|
'';
|
|
|
|
|
2021-06-21 09:09:46 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
google-cloud-logging
|
|
|
|
libcst
|
|
|
|
proto-plus
|
|
|
|
];
|
2018-11-02 20:31:56 +01:00
|
|
|
|
2021-06-21 09:09:46 +02:00
|
|
|
checkInputs = [
|
|
|
|
google-cloud-testutils
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
2020-11-03 02:15:57 +01:00
|
|
|
|
2021-01-05 16:57:05 +01:00
|
|
|
disabledTests = [
|
|
|
|
# require credentials
|
|
|
|
"test_report_error_event"
|
|
|
|
"test_report_exception"
|
|
|
|
];
|
|
|
|
|
2020-11-03 02:15:57 +01:00
|
|
|
preCheck = ''
|
2021-06-21 09:09:46 +02:00
|
|
|
# prevent google directory from shadowing google imports
|
2020-03-18 23:24:33 +01:00
|
|
|
rm -r google
|
2018-11-02 20:31:56 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-11-02 20:31:56 +01:00
|
|
|
description = "Stackdriver Error Reporting API client library";
|
2020-11-03 02:15:57 +01:00
|
|
|
homepage = "https://github.com/googleapis/python-error-reporting";
|
2018-11-02 20:31:56 +01:00
|
|
|
license = licenses.asl20;
|
2021-01-05 16:57:05 +01:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 20:31:56 +01:00
|
|
|
};
|
|
|
|
}
|