2021-05-03 20:48:10 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-10-21 18:38:19 +00:00
|
|
|
, fastapi
|
2021-05-03 20:48:10 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, flask
|
2022-10-21 18:38:19 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
2021-05-03 20:48:10 +00:00
|
|
|
, sanic
|
|
|
|
, uvicorn
|
2022-10-21 18:38:19 +00:00
|
|
|
, wheel
|
2021-05-03 20:48:10 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "json-logging";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "1.5.0-rc0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-05-03 20:48:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bobbui";
|
|
|
|
repo = "json-logging-python";
|
|
|
|
rev = version;
|
2022-10-21 18:38:19 +00:00
|
|
|
hash = "sha256-WOAEY1pONH+Gx1b8zHZDMNgJJSn7jvMO60LYTA8z/dE=";
|
2021-05-03 20:48:10 +00:00
|
|
|
};
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
fastapi
|
|
|
|
flask
|
|
|
|
pytestCheckHook
|
|
|
|
# quart
|
|
|
|
requests
|
|
|
|
sanic
|
|
|
|
uvicorn
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"json_logging"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"quart"
|
2021-05-03 20:48:10 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to emit logs in JSON format";
|
|
|
|
longDescription = ''
|
2022-10-21 18:38:19 +00:00
|
|
|
Python logging library to emit JSON log that can be easily indexed and searchable by logging
|
|
|
|
infrastructure such as ELK, EFK, AWS Cloudwatch, GCP Stackdriver.
|
2021-05-03 20:48:10 +00:00
|
|
|
'';
|
|
|
|
homepage = "https://github.com/bobbui/json-logging-python";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ AluisioASG ];
|
|
|
|
};
|
|
|
|
}
|