1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-15 04:05:15 +03:00
aports/community/py3-html-text/APKBUILD
Antoine Martin 998928fbdc community/py3-html-text: upgrade to 0.7.0
* Python 3.13 support
2025-02-12 20:43:16 +00:00

37 lines
1.1 KiB
Text

# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-html-text
pkgver=0.7.0
pkgrel=0
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=html_text
pkgdesc="Extract text from HTML"
url="https://pypi.python.org/project/html-text"
arch="noarch"
license="MIT"
depends="py3-lxml py3-lxml-html-clean"
checkdepends="py3-pytest py3-parsel py3-six"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/h/html_text/html_text-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
subpackages="$pkgname-pyc"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer "$builddir"/.dist/*.whl
.testenv/bin/python3 -m pytest -v
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
8e56a73db0b67da7970a18b05bbb32304b10f7bb3632f3af64124bd52b0bdd3805f4f8e9a9b6273c2e5bb62053cf72140e03b5bb90dcfa0ba19fb3e61ed62e77 py3-html-text-0.7.0.tar.gz
"