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