41 lines
1 KiB
Text
41 lines
1 KiB
Text
# Maintainer: Cowington Post <cowingtonpost@gmail.com>
|
|
pkgname=py3-html5-parser
|
|
pkgver=0.4.12
|
|
pkgrel=1
|
|
pkgdesc="Fast C based HTML 5 parsing for python"
|
|
url="https://github.com/kovidgoyal/html5-parser"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
depends="py3-lxml py3-chardet"
|
|
makedepends="
|
|
libxml2-dev
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
python3-dev
|
|
"
|
|
checkdepends="py3-beautifulsoup4"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/kovidgoyal/html5-parser/archive/v$pkgver/py3-html5-parser-$pkgver.tar.gz"
|
|
builddir="$srcdir/html5-parser-$pkgver"
|
|
|
|
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 .dist/*.whl
|
|
.testenv/bin/python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
d2c031225b74d01a1ae3455837ac09e9afad8a4ec6ab1b8f66cbea8a86188db271a72570ef06e05ac56d369b41d97fc6f382455e25ca346a1897f62a3696a252 py3-html5-parser-0.4.12.tar.gz
|
|
"
|