ayaports/user/py3-extruct/APKBUILD

41 lines
1 KiB
Text

# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-extruct
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=extruct
pkgver=0.16.0
pkgrel=0
pkgdesc="Extract embedded metadata from HTML markup"
url="https://pypi.python.org/project/extruct"
license="BSD-3-Clause"
arch="noarch"
depends="
py3-lxml
py3-pyrdfa3
py3-mf2py
py3-w3lib
py3-html-text
py3-six
py3-jstyleson
py3-requests
"
checkdepends="python3-dev"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/e/extruct/extruct-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
subpackages="$pkgname-pyc"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
da645863d3b421418871cdbbf2b970458c124c9f078aa013b5ef6147ddbebc3ef39dfb7b668dbb35aac8b47f6417525d16a40d0d5cb7e56aa0e4edf779a02a24 py3-extruct-0.16.0.tar.gz
"