Files
nixpkgs/pkgs/development/python-modules/jsonformatter/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

35 lines
828 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 = {
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 = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ gador ];
};
}