Merge pull request #269039 from fabaff/junit2html-refactor

python311Packages.junit2html: refactor
This commit is contained in:
Fabian Affolter 2023-11-22 08:29:29 +01:00 committed by GitHub
commit 1308d628e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";