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