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