mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 18:25:41 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
34 lines
933 B
Text
34 lines
933 B
Text
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
|
|
"
|