1{ lib 2, buildPythonPackage 3, fastapi 4, fetchFromGitHub 5, flask 6, httpx 7, pytestCheckHook 8, pythonOlder 9, requests 10, sanic 11, uvicorn 12, wheel 13}: 14 15buildPythonPackage rec { 16 pname = "json-logging"; 17 version = "1.5.0-rc0"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchFromGitHub { 23 owner = "bobbui"; 24 repo = "json-logging-python"; 25 rev = "refs/tags/${version}"; 26 hash = "sha256-WOAEY1pONH+Gx1b8zHZDMNgJJSn7jvMO60LYTA8z/dE="; 27 }; 28 29 nativeCheckInputs = [ 30 fastapi 31 flask 32 httpx 33 pytestCheckHook 34 # quart 35 requests 36 sanic 37 uvicorn 38 wheel 39 ]; 40 41 pythonImportsCheck = [ 42 "json_logging" 43 ]; 44 45 disabledTests = [ 46 "quart" 47 ]; 48 49 disabledTestPaths = [ 50 # Smoke tests don't always work 51 "tests/smoketests/test_run_smoketest.py" 52 ]; 53 54 __darwinAllowLocalNetworking = true; 55 56 meta = with lib; { 57 description = "Python library to emit logs in JSON format"; 58 longDescription = '' 59 Python logging library to emit JSON log that can be easily indexed and searchable by logging 60 infrastructure such as ELK, EFK, AWS Cloudwatch, GCP Stackdriver. 61 ''; 62 homepage = "https://github.com/bobbui/json-logging-python"; 63 changelog = "https://github.com/bobbui/json-logging-python/releases/tag/${version}"; 64 license = licenses.asl20; 65 maintainers = with maintainers; [ AluisioASG ]; 66 }; 67}