2023-11-16 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2024-01-02 11:29:13 +00:00
|
|
|
, fetchPypi
|
2023-11-16 04:20:00 +00:00
|
|
|
, jinja2
|
2024-01-02 11:29:13 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "junit2html";
|
|
|
|
version = "30.1.3";
|
|
|
|
pyproject = true;
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-1q6KpKdrZvp8XvxGCkoorlZDDgvGg/imTX8+NEOBbWs=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
jinja2
|
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
# Tests are not shipped with PyPi and source is not tagged
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"junit2htmlreport"
|
|
|
|
];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Generate HTML reports from Junit results";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://gitlab.com/inorton/junit2html";
|
2023-11-16 04:20:00 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ otavio ];
|
|
|
|
mainProgram = "junit2html";
|
|
|
|
};
|
|
|
|
}
|