blob: cf163b1b85af97dfa811bb6c6ed28c8f7c58471c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
pkgname=py3-readability-lxml
pkgver=0.8.1
pkgrel=3
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"
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 --skip-build --root="$pkgdir"
}
sha512sums="
c5b296a35606f65643f72e7d9ee07d6820a7a6a36ce97350673ea6076b704f7ed72f92ded47dac56690cdf3776eb8fadbb02ea234355a9982d4127976b2e6c6e readability-lxml-0.8.1.tar.gz
"
|