Skip to content
Snippets Groups Projects
Commit 5cebfada authored by Bart Ribbers's avatar Bart Ribbers
Browse files

testing/py3-srt: new aport

parent 687176f3
No related branches found
No related tags found
1 merge request!48241testing/vosk-api: enable Python bindings
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-srt
pkgver=3.5.3
pkgrel=0
pkgdesc="A tiny library for parsing, modifying, and composing SRT files"
url="https://github.com/cdown/srt"
arch="noarch"
license="MIT"
depends="python3"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="
py3-hypothesis
py3-pytest
"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/cdown/srt/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/srt-$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="
df4968715a557ec594b68ade57ef3fa86599338f693fc339acf91a5036cb50c066e900927001ae92ad71b66e16de3cfe4cfbbf9946372428f7a5cbe179c6de8a py3-srt-3.5.3.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment