1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, google-cloud-logging 6, google-cloud-testutils 7, libcst 8, mock 9, proto-plus 10, pytest-asyncio 11}: 12 13buildPythonPackage rec { 14 pname = "google-cloud-error-reporting"; 15 version = "1.4.1"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "4a72a65586178daaacf6bbc4b718db0765b99a719fce88a95c2be4f82689b7c1"; 20 }; 21 22 postPatch = '' 23 substituteInPlace setup.py \ 24 --replace 'google-cloud-logging>=1.14.0, <2.4' 'google-cloud-logging>=1.14.0' 25 ''; 26 27 propagatedBuildInputs = [ 28 google-cloud-logging 29 libcst 30 proto-plus 31 ]; 32 33 checkInputs = [ 34 google-cloud-testutils 35 mock 36 pytestCheckHook 37 pytest-asyncio 38 ]; 39 40 disabledTests = [ 41 # require credentials 42 "test_report_error_event" 43 "test_report_exception" 44 ]; 45 46 preCheck = '' 47 # prevent google directory from shadowing google imports 48 rm -r google 49 ''; 50 51 meta = with lib; { 52 description = "Stackdriver Error Reporting API client library"; 53 homepage = "https://github.com/googleapis/python-error-reporting"; 54 license = licenses.asl20; 55 maintainers = with maintainers; [ SuperSandro2000 ]; 56 }; 57}