2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
jinja2,
|
|
|
|
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=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ jinja2 ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
# Tests are not shipped with PyPi and source is not tagged
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|