1{ lib 2, buildPythonPackage 3, django 4, fetchPypi 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, grpc-google-iam-v1 12, mock 13, pandas 14, proto-plus 15, protobuf 16, pytest-asyncio 17, pytestCheckHook 18, pythonOlder 19, rich 20}: 21 22buildPythonPackage rec { 23 pname = "google-cloud-logging"; 24 version = "3.8.0"; 25 format = "setuptools"; 26 27 disabled = pythonOlder "3.7"; 28 29 src = fetchPypi { 30 inherit pname version; 31 hash = "sha256-/dkW5ZqEqowC6BSNf907O2I8V7DB/3H0MpfOjlD8Hqs="; 32 }; 33 34 propagatedBuildInputs = [ 35 google-api-core 36 google-cloud-appengine-logging 37 google-cloud-audit-log 38 google-cloud-core 39 grpc-google-iam-v1 40 proto-plus 41 protobuf 42 ] ++ google-api-core.optional-dependencies.grpc; 43 44 nativeCheckInputs = [ 45 django 46 flask 47 google-cloud-testutils 48 mock 49 pandas 50 pytestCheckHook 51 pytest-asyncio 52 rich 53 ]; 54 55 disabledTests = [ 56 # requires credentials 57 "test_write_log_entries" 58 ]; 59 60 preCheck = '' 61 # prevent google directory from shadowing google imports 62 rm -r google 63 ''; 64 65 disabledTestPaths = [ 66 # Tests require credentials 67 "tests/system/test_system.py" 68 "tests/unit/test__gapic.py" 69 # Exclude performance tests 70 "tests/performance/test_performance.py" 71 ]; 72 73 pythonImportsCheck = [ 74 "google.cloud.logging" 75 "google.cloud.logging_v2" 76 ]; 77 78 meta = with lib; { 79 description = "Stackdriver Logging API client library"; 80 homepage = "https://github.com/googleapis/python-logging"; 81 changelog = "https://github.com/googleapis/python-logging/blob/v${version}/CHANGELOG.md"; 82 license = licenses.asl20; 83 maintainers = with maintainers; [ ]; 84 }; 85}