Files
Otavio Salvador b8b3c3ad18 python3Packages.junit2html: 30.1.3 -> 31.1.3
Upstream stopped publishing source distributions on PyPI starting with
31.0.1; switch to fetchFromGitLab using the upstream version tags.

The tagged GitLab source ships the test suite, so enable it via
pytestCheckHook.

Assisted-by: Claude Code (claude-opus-4-8)
2026-06-08 20:28:07 -03:00

39 lines
879 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitLab,
jinja2,
setuptools,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "junit2html";
version = "31.1.3";
pyproject = true;
src = fetchFromGitLab {
owner = "inorton";
repo = "junit2html";
tag = "v${finalAttrs.version}";
hash = "sha256-TF+ifAFPn3PQwYQFruP++bWo6/6J8LEmDJYXDYSwcq0=";
};
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";
};
})