mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-17 19:46:52 +02:00
40 lines
1.2 KiB
Text
40 lines
1.2 KiB
Text
# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
|
|
# Maintainer: Dmitry Zakharchenko <dmitz@disroot.org>
|
|
pkgname=py3-pysrt
|
|
_pkgname=pysrt
|
|
pkgver=1.1.2
|
|
pkgrel=4
|
|
pkgdesc="Python parser for SubRip (srt) files"
|
|
url="https://github.com/byroot/pysrt"
|
|
arch="noarch"
|
|
license="GPL-3.0-only"
|
|
depends="python3 py3-chardet"
|
|
makedepends="py3-setuptools py3-gpep517"
|
|
checkdepends="py3-nose"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/byroot/pysrt/archive/v$pkgver.tar.gz
|
|
assertEquals.patch
|
|
"
|
|
builddir="$srcdir/$_pkgname-$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
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
.testenv/bin/python3 -m nose
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
0d6b3a7ce4c8733221bfb5c3e434233d1b221fedda3c145fafe124093f1f9090b99c175e79de386717ec5f8b564c62719f377651db95a8d3c382e2bf8dccb0a8 py3-pysrt-1.1.2.tar.gz
|
|
0a1f74486e70488b236a5cfe4008c375adede8c8383016c39c660337e61c589ca5970e7a93e4514e43ed2162f2f1964171d706aa8c4b8854b0a1f90538f21673 assertEquals.patch
|
|
"
|