nixpkgs/pkgs/development/python-modules/junit2html/default.nix
2026-06-18 20:06:20 +00:00

38 lines
879 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitLab,
jinja2,
setuptools,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "junit2html";
version = "31.1.4";
pyproject = true;
src = fetchFromGitLab {
owner = "inorton";
repo = "junit2html";
tag = "v${finalAttrs.version}";
hash = "sha256-GUlRGv4+tRslrvSWvb3Fe5DcMFeYgL7HCyAHzrksJeQ=";
};
build-system = [ setuptools ];
dependencies = [ jinja2 ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "junit2htmlreport" ];
meta = {
description = "Generate HTML reports from Junit results";
homepage = "https://gitlab.com/inorton/junit2html";
changelog = "https://gitlab.com/inorton/junit2html/-/releases/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ otavio ];
mainProgram = "junit2html";
};
})