mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 13:41:20 +02:00
35 lines
951 B
Plaintext
35 lines
951 B
Plaintext
pkgname=py3-readability-lxml
|
|
pkgver=0.8.1
|
|
pkgrel=1
|
|
pkgdesc="fast python port of arc90's readability tool, updated to match latest readability.js!"
|
|
url="https://github.com/buriy/python-readability"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="python3 py3-chardet py3-lxml py3-cssselect !py3-readability"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-timeout-decorator"
|
|
# pypi version doesn't have tests
|
|
source="readability-lxml-$pkgver.tar.gz::https://github.com/buriy/python-readability/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/python-readability-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
rm readability/compat/two.py
|
|
}
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
c5b296a35606f65643f72e7d9ee07d6820a7a6a36ce97350673ea6076b704f7ed72f92ded47dac56690cdf3776eb8fadbb02ea234355a9982d4127976b2e6c6e readability-lxml-0.8.1.tar.gz
|
|
"
|