Files
nixpkgs/pkgs/development/python-modules/jsonformatter/default.nix
T
2024-11-26 08:55:08 +01:00

35 lines
840 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "jsonformatter";
version = "0.3.4";
pyproject = true;
src = fetchFromGitHub {
owner = "MyColorfulDays";
repo = "jsonformatter";
rev = "refs/tags/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 ];
};
}