2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
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";
|
2020-12-03 18:35:06 +01:00
|
|
|
version = "1.1.0";
|
2018-11-02 20:31:56 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-03 18:35:06 +01:00
|
|
|
sha256 = "2fd6fe25343f7017c22e2733a0358c64b3171edc1669d0c8a1e1f07f86a048c4";
|
2018-11-02 20:31:56 +01:00
|
|
|
};
|
|
|
|
|
2021-01-06 10:46:48 +01:00
|
|
|
propagatedBuildInputs = [ google-cloud-logging libcst proto-plus ];
|
2018-11-02 20:31:56 +01:00
|
|
|
|
2021-01-06 10:46:48 +01: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
|
|
|
# prevent google directory from shadowing google imports
|
|
|
|
preCheck = ''
|
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
|
|
|
};
|
|
|
|
}
|