Unverified Commit 1308d628 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #269039 from fabaff/junit2html-refactor

python311Packages.junit2html: refactor
parents f7116e44 490ab8ba
Loading
Loading
Loading
Loading
+13 −11
Original line number Diff line number Diff line
{ lib
, fetchPypi
, buildPythonPackage
, nix-update-script

, setuptools
, wheel

, fetchPypi
, jinja2
, pytestCheckHook
, pythonOlder
, setuptools
}:

buildPythonPackage rec {
@@ -14,27 +12,31 @@ buildPythonPackage rec {
  version = "30.1.3";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-1q6KpKdrZvp8XvxGCkoorlZDDgvGg/imTX8+NEOBbWs=";
  };

  passthru.updateScript = nix-update-script { };

  nativeBuildInputs = [
    setuptools
    wheel
  ];

  propagatedBuildInputs = [
    jinja2
  ];

  pythonImportsCheck = [ "junit2htmlreport" ];
  # Tests are not shipped with PyPi and source is not tagged
  doCheck = false;

  pythonImportsCheck = [
    "junit2htmlreport"
  ];

  meta = with lib; {
    description = "Generate HTML reports from Junit results";
    homepage = "https://pypi.org/project/junit2html/";
    homepage = "https://gitlab.com/inorton/junit2html";
    license = licenses.mit;
    maintainers = with maintainers; [ otavio ];
    mainProgram = "junit2html";