# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=py3-webvtt pkgver=0.4.6 pkgrel=0 pkgdesc="WebVTT reader, writer and segmenter" url="https://github.com/glut23/webvtt-py" arch="noarch" license="MIT" depends=" py3-docopt python3 " makedepends=" py3-gpep517 py3-setuptools py3-wheel " checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/glut23/webvtt-py/archive/refs/tags/$pkgver.tar.gz" builddir="$srcdir/webvtt-py-$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 } sha512sums=" aca4420ab4816a1a2568e8b41f306eff4df0fd1bea7929655f02ffd393ed5a5edde27d708c4189bc4401d59b2482fb7ec25fc19b8aa2ee1dcf12233c78a1d282 py3-webvtt-0.4.6.tar.gz "