1{ lib 2, buildPythonPackage 3, fetchPypi 4, django 5, flask 6, google-api-core 7, google-cloud-appengine-logging 8, google-cloud-audit-log 9, google-cloud-core 10, google-cloud-testutils 11, mock 12, pandas 13, proto-plus 14, pytestCheckHook 15, pytest-asyncio 16, pythonOlder 17, rich 18}: 19 20buildPythonPackage rec { 21 pname = "google-cloud-logging"; 22 version = "3.2.5"; 23 format = "setuptools"; 24 25 disabled = pythonOlder "3.7"; 26 27 src = fetchPypi { 28 inherit pname version; 29 hash = "sha256-wbB4AD+PwsCGSvBGUeK+EhPltzjqgykeX/VlJSm8Xlg="; 30 }; 31 32 propagatedBuildInputs = [ 33 google-api-core 34 google-cloud-appengine-logging 35 google-cloud-audit-log 36 google-cloud-core 37 proto-plus 38 ]; 39 40 checkInputs = [ 41 django 42 flask 43 google-cloud-testutils 44 mock 45 pandas 46 pytestCheckHook 47 pytest-asyncio 48 rich 49 ]; 50 51 disabledTests = [ 52 # requires credentials 53 "test_write_log_entries" 54 ]; 55 56 preCheck = '' 57 # prevent google directory from shadowing google imports 58 rm -r google 59 # requires credentials 60 rm tests/system/test_system.py tests/unit/test__gapic.py 61 ''; 62 63 pythonImportsCheck = [ 64 "google.cloud.logging" 65 "google.cloud.logging_v2" 66 ]; 67 68 meta = with lib; { 69 description = "Stackdriver Logging API client library"; 70 homepage = "https://github.com/googleapis/python-logging"; 71 license = licenses.asl20; 72 maintainers = with maintainers; [ SuperSandro2000 ]; 73 }; 74}