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