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