Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, google-api-core 5, google-cloud-logging 6, google-cloud-testutils 7, mock 8, proto-plus 9, protobuf 10, pytest-asyncio 11, pytestCheckHook 12, pythonOlder 13}: 14 15buildPythonPackage rec { 16 pname = "google-cloud-error-reporting"; 17 version = "1.9.1"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchPypi { 23 inherit pname version; 24 hash = "sha256-3N7LtFKvTdV0zBGIyUgi6tCVZX7+rbJD5Lb+xZafJNw="; 25 }; 26 27 propagatedBuildInputs = [ 28 google-api-core 29 google-cloud-logging 30 proto-plus 31 protobuf 32 ] ++ google-api-core.optional-dependencies.grpc; 33 34 nativeCheckInputs = [ 35 google-cloud-testutils 36 mock 37 pytestCheckHook 38 pytest-asyncio 39 ]; 40 41 disabledTests = [ 42 # Tests require credentials 43 "test_report_error_event" 44 "test_report_exception" 45 ]; 46 47 preCheck = '' 48 # prevent google directory from shadowing google imports 49 rm -r google 50 ''; 51 52 meta = with lib; { 53 description = "Stackdriver Error Reporting API client library"; 54 homepage = "https://github.com/googleapis/python-error-reporting"; 55 changelog = "https://github.com/googleapis/python-error-reporting/blob/v${version}/CHANGELOG.md"; 56 license = licenses.asl20; 57 maintainers = with maintainers; [ SuperSandro2000 ]; 58 }; 59}