2024-03-14 13:06:47 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-11-26 08:55:08 +01:00
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
2024-03-14 13:06:47 +01:00
|
|
|
setuptools,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonformatter";
|
2024-11-22 03:56:12 +00:00
|
|
|
version = "0.3.4";
|
2024-11-26 08:50:03 +01:00
|
|
|
pyproject = true;
|
2024-03-14 13:06:47 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MyColorfulDays";
|
2024-11-26 08:50:03 +01:00
|
|
|
repo = "jsonformatter";
|
2025-01-03 21:24:13 +01:00
|
|
|
tag = "v${version}";
|
2024-11-22 03:56:12 +00:00
|
|
|
hash = "sha256-A+lsSBrm/64w7yMabmuAbRCLwUUdulGH3jB/DbYJ2QY=";
|
2024-03-14 13:06:47 +01:00
|
|
|
};
|
|
|
|
|
2024-11-26 08:50:03 +01:00
|
|
|
build-system = [ setuptools ];
|
2024-03-14 13:06:47 +01:00
|
|
|
|
2024-11-26 08:55:08 +01:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
2024-03-14 13:06:47 +01:00
|
|
|
pythonImportsCheck = [ "jsonformatter" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-11-26 08:50:03 +01:00
|
|
|
description = "Formatter to output JSON log, e.g. output LogStash needed log";
|
2024-03-14 13:06:47 +01:00
|
|
|
homepage = "https://github.com/MyColorfulDays/jsonformatter";
|
2024-11-26 08:50:03 +01:00
|
|
|
changelog = "https://github.com/MyColorfulDays/jsonformatter/releases/tag/v${version}";
|
2024-03-14 13:06:47 +01:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ gador ];
|
|
|
|
};
|
|
|
|
}
|