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