Maeve Sproule dceb7fbb0f python3-readability-lxml: add python3-lxml_html_clean dependency
lxml 5.2 moved lxml.html.clean to a separate project, leaving only a
compatibility shim in its place. Since the update to Void's python3-lxml
package on Dec. 13, importing readability causes the following error to
be emitted:

> ImportError: lxml.html.clean module is now a separate project lxml_html_clean.
> Install lxml[html_clean] or lxml_html_clean directly.

Adding a new python3-lxml_html_clean dependency resolves this error and
causes readability to behave as it did before.
2024-12-25 18:29:28 -08:00

19 lines
674 B
Bash

# Template file for 'python3-readability-lxml'
pkgname=python3-readability-lxml
version=0.8.1
revision=10
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-lxml python3-lxml_html_clean python3-chardet python3-cssselect"
short_desc="Fast html to text parser"
maintainer="Benjamín Albiñana <benalb@gmail.com>"
license="Apache-2.0"
homepage="https://github.com/buriy/python-readability"
distfiles="${PYPI_SITE}/r/readability-lxml/readability-lxml-${version}.tar.gz"
checksum=e51fea56b5909aaf886d307d48e79e096293255afa567b7d08bca94d25b1a4e1
make_check=no # needs unpackaged timeout_decorator
post_extract() {
rm -f readability/compat/two.py
}