python313Packages.readabilipy: disable failing tests (#431705)

This commit is contained in:
Fabian Affolter 2025-08-07 14:16:38 +02:00 committed by GitHub
commit bd74a8e8c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,9 +44,9 @@ buildPythonPackage rec {
dontNpmBuild = true;
};
nativeBuildInputs = [ setuptools ];
build-system = [ setuptools ];
propagatedBuildInputs = [
dependencies = [
beautifulsoup4
html5lib
lxml
@ -75,6 +75,18 @@ buildPythonPackage rec {
"tests/test_benchmarking.py"
];
disabledTests = [
# IndexError: list index out of range
"test_html_blacklist"
"test_prune_div_with_one_empty_span"
"test_prune_div_with_one_whitespace_paragraph"
"test_empty_page"
"test_contentless_page"
"test_extract_title"
"test_iframe_containing_tags"
"test_iframe_with_source"
];
passthru = {
tests.version = testers.testVersion {
package = readabilipy;
@ -85,10 +97,10 @@ buildPythonPackage rec {
meta = with lib; {
description = "HTML content extractor";
mainProgram = "readabilipy";
homepage = "https://github.com/alan-turing-institute/ReadabiliPy";
changelog = "https://github.com/alan-turing-institute/ReadabiliPy/blob/${src.tag}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
mainProgram = "readabilipy";
};
}