From 244248f8a126cbd66cbe3597fbada09b4b146d87 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 7 Aug 2025 11:35:10 +0200 Subject: [PATCH] python313Packages.readabilipy: disable failing tests --- .../python-modules/readabilipy/default.nix | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/readabilipy/default.nix b/pkgs/development/python-modules/readabilipy/default.nix index e220f5caff29..65bca92865c5 100644 --- a/pkgs/development/python-modules/readabilipy/default.nix +++ b/pkgs/development/python-modules/readabilipy/default.nix @@ -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"; }; }