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, pythonOlder 12}: 13 14buildPythonPackage rec { 15 pname = "google-cloud-error-reporting"; 16 version = "1.6.3"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-7QR4NS98MtJ8aMLC+qQeTrK1Rv5kw6XlZhSKbatrZFY="; 24 }; 25 26 propagatedBuildInputs = [ 27 google-cloud-logging 28 libcst 29 proto-plus 30 ]; 31 32 checkInputs = [ 33 google-cloud-testutils 34 mock 35 pytestCheckHook 36 pytest-asyncio 37 ]; 38 39 disabledTests = [ 40 # require credentials 41 "test_report_error_event" 42 "test_report_exception" 43 ]; 44 45 preCheck = '' 46 # prevent google directory from shadowing google imports 47 rm -r google 48 ''; 49 50 meta = with lib; { 51 description = "Stackdriver Error Reporting API client library"; 52 homepage = "https://github.com/googleapis/python-error-reporting"; 53 license = licenses.asl20; 54 maintainers = with maintainers; [ SuperSandro2000 ]; 55 }; 56}