mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-13 00:16:45 +02:00
35 lines
957 B
Text
35 lines
957 B
Text
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-pysubs2
|
|
pkgver=1.8.0
|
|
pkgrel=0
|
|
pkgdesc="Python library for editing subtitle files"
|
|
url="https://github.com/tkarabela/pysubs2"
|
|
arch="noarch"
|
|
license="MIT"
|
|
makedepends="py3-setuptools py3-gpep517"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/tkarabela/pysubs2/archive/$pkgver/pysubs2-$pkgver.tar.gz"
|
|
builddir="$srcdir/pysubs2-$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="
|
|
d9ea72728bc34b8e94ee7e931f09954bab1940f0f3f9e3de62c56aa665fa8c02936cc3d3c3aed643877cd1203d4051b0f29a19780ae73442b42b2d6369963abe pysubs2-1.8.0.tar.gz
|
|
"
|