aports/testing/py3-pycaption/APKBUILD

46 lines
1.1 KiB
Plaintext

# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
# Maintainer:
pkgname=py3-pycaption
pkgver=2.2.10
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="
9c09ac504b4d42d5dfcc9e1890205fa990380d91f884205dc718668ebcf846e784e6c1d4a7410ae7ebbbc76fb0fc8c3cbbfe00e10ac0d08bc24778265f7d43e6 pycaption-2.2.10.tar.gz
"