From ec7c2275c49db07346836f0215c5f539224f61b3 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 3 Jul 2024 16:45:32 -0400 Subject: [PATCH] backports/py3-html5-parser: new aport --- backports/py3-html5-parser/APKBUILD | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 backports/py3-html5-parser/APKBUILD diff --git a/backports/py3-html5-parser/APKBUILD b/backports/py3-html5-parser/APKBUILD new file mode 100644 index 0000000..45e1415 --- /dev/null +++ b/backports/py3-html5-parser/APKBUILD @@ -0,0 +1,41 @@ +# Maintainer: Cowington Post +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 +"