python310Packages.json-logging: 1.3.0 -> 1.5.0-rc0
This commit is contained in:
parent
5fbcf2577a
commit
6dd9806775
1 changed files with 32 additions and 20 deletions
|
@ -1,44 +1,56 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
|
||||||
, fetchpatch
|
|
||||||
, pytestCheckHook
|
|
||||||
, wheel
|
|
||||||
, flask
|
|
||||||
, sanic
|
|
||||||
, fastapi
|
, fastapi
|
||||||
, uvicorn
|
, fetchFromGitHub
|
||||||
|
, flask
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
, requests
|
, requests
|
||||||
|
, sanic
|
||||||
|
, uvicorn
|
||||||
|
, wheel
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "json-logging";
|
pname = "json-logging";
|
||||||
version = "1.3.0";
|
version = "1.5.0-rc0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "bobbui";
|
owner = "bobbui";
|
||||||
repo = "json-logging-python";
|
repo = "json-logging-python";
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-0eIhOi30r3ApyVkiBdTQps5tNj7rI+q8TjNWxTnhtMQ=";
|
hash = "sha256-WOAEY1pONH+Gx1b8zHZDMNgJJSn7jvMO60LYTA8z/dE=";
|
||||||
};
|
};
|
||||||
patches = [
|
|
||||||
# Fix tests picking up test modules instead of real packages.
|
checkInputs = [
|
||||||
(fetchpatch {
|
fastapi
|
||||||
url = "https://github.com/bobbui/json-logging-python/commit/6fdb64deb42fe48b0b12bda0442fd5ac5f03107f.patch";
|
flask
|
||||||
sha256 = "sha256-BLfARsw2FdvY22NCaFfdFgL9wTmEZyVIi3CQpB5qU0Y=";
|
pytestCheckHook
|
||||||
})
|
# quart
|
||||||
|
requests
|
||||||
|
sanic
|
||||||
|
uvicorn
|
||||||
|
wheel
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"json_logging"
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
"quart"
|
||||||
];
|
];
|
||||||
|
|
||||||
# - Quart is not packaged for Nixpkgs.
|
|
||||||
checkInputs = [ wheel flask /*quart*/ sanic fastapi uvicorn requests pytestCheckHook ];
|
|
||||||
disabledTests = [ "quart" ];
|
|
||||||
# Tests spawn servers and try to connect to them.
|
|
||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python library to emit logs in JSON format";
|
description = "Python library to emit logs in JSON format";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
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.
|
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.
|
||||||
'';
|
'';
|
||||||
homepage = "https://github.com/bobbui/json-logging-python";
|
homepage = "https://github.com/bobbui/json-logging-python";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
|
|
Loading…
Reference in a new issue