mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-14 01:03:54 +00:00
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)
39 lines
879 B
Nix
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";
|
|
};
|
|
})
|