diff --git a/pkgs/development/python-modules/junit2html/default.nix b/pkgs/development/python-modules/junit2html/default.nix index 744456950354..bc21fdb74bf7 100644 --- a/pkgs/development/python-modules/junit2html/default.nix +++ b/pkgs/development/python-modules/junit2html/default.nix @@ -1,12 +1,10 @@ { 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";