nixpkgs/pkgs/development/python-modules/jsonformatter/default.nix
2025-01-04 00:19:17 +01:00

34 lines
830 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "jsonformatter";
version = "0.3.4";
pyproject = true;
src = fetchFromGitHub {
owner = "MyColorfulDays";
repo = "jsonformatter";
tag = "v${version}";
hash = "sha256-A+lsSBrm/64w7yMabmuAbRCLwUUdulGH3jB/DbYJ2QY=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "jsonformatter" ];
meta = with lib; {
description = "Formatter to output JSON log, e.g. output LogStash needed log";
homepage = "https://github.com/MyColorfulDays/jsonformatter";
changelog = "https://github.com/MyColorfulDays/jsonformatter/releases/tag/v${version}";
license = licenses.bsd2;
maintainers = with maintainers; [ gador ];
};
}