nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.05 48 lines 1.1 kB view raw
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.1.2"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "sha256-NT/+2mtIaEMyXnmM1fWX4kEV9pb1+aNas2lNobUPR14="; 20 }; 21 22 postPatch = '' 23 substituteInPlace setup.py \ 24 --replace 'google-cloud-logging>=1.14.0, <2.1' 'google-cloud-logging>=1.14.0' 25 ''; 26 27 propagatedBuildInputs = [ google-cloud-logging libcst proto-plus ]; 28 29 checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ]; 30 31 disabledTests = [ 32 # require credentials 33 "test_report_error_event" 34 "test_report_exception" 35 ]; 36 37 # prevent google directory from shadowing google imports 38 preCheck = '' 39 rm -r google 40 ''; 41 42 meta = with lib; { 43 description = "Stackdriver Error Reporting API client library"; 44 homepage = "https://github.com/googleapis/python-error-reporting"; 45 license = licenses.asl20; 46 maintainers = with maintainers; [ SuperSandro2000 ]; 47 }; 48}