1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 jinja2,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "junit2html";
12 version = "30.1.3";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-1q6KpKdrZvp8XvxGCkoorlZDDgvGg/imTX8+NEOBbWs=";
20 };
21
22 nativeBuildInputs = [ setuptools ];
23
24 propagatedBuildInputs = [ jinja2 ];
25
26 # Tests are not shipped with PyPi and source is not tagged
27 doCheck = false;
28
29 pythonImportsCheck = [ "junit2htmlreport" ];
30
31 meta = with lib; {
32 description = "Generate HTML reports from Junit results";
33 homepage = "https://gitlab.com/inorton/junit2html";
34 license = licenses.mit;
35 maintainers = with maintainers; [ otavio ];
36 mainProgram = "junit2html";
37 };
38}