python312Packages.justext: fix build after lxml upgrade

This commit is contained in:
Martin Weinelt
2024-06-24 12:18:22 +02:00
parent 14924d621a
commit bd24dadaea
@@ -4,6 +4,7 @@
fetchFromGitHub,
pytestCheckHook,
lxml,
lxml-html-clean,
}:
buildPythonPackage rec {
@@ -18,14 +19,17 @@ buildPythonPackage rec {
hash = "sha256-9i7hzCK/ijh8xw9l2ZbVhVj5IBf0WD/49/R1tSWgqrQ=";
};
propagatedBuildInputs = [ lxml ];
propagatedBuildInputs = [
lxml
lxml-html-clean
];
nativeCheckInputs = [ pytestCheckHook ];
# patch out coverage report
postPatch = ''
substituteInPlace setup.cfg \
--replace " --cov=justext --cov-report=term-missing --no-cov-on-fail" ""
--replace-fail " --cov=justext --cov-report=term-missing --no-cov-on-fail" ""
'';
pythonImportsCheck = [ "justext" ];