1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 11:19:50 +03:00
aports/testing/py3-pycaption/APKBUILD

45 lines
1.1 KiB
Text

# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
# Maintainer:
pkgname=py3-pycaption
pkgver=2.2.15
pkgrel=0
pkgdesc="Python module to read/write popular video caption formats"
url="https://github.com/pbs/pycaption"
arch="noarch"
license="Apache-2.0"
depends="
python3
py3-beautifulsoup4
py3-cssutils
py3-lxml
py3-nltk
"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="py3-pytest"
source="https://github.com/pbs/pycaption/archive/refs/tags/$pkgver/pycaption-$pkgver.tar.gz"
builddir="$srcdir/pycaption-$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 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" .dist/*.whl
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/tests
}
sha512sums="
f99b4526c0888e8991d09d3c964a062faa92a470a2d03d4a5ece0ca89e6e01bd246a7a3b042390582dedc074af8b1ad51f1aaacf3fcb592f699bd21c0cfc1c70 pycaption-2.2.15.tar.gz
"