summaryrefslogtreecommitdiff
path: root/testing/py3-pycaption/APKBUILD
blob: b688c2dd6cf2cc3209464d4b700184c0d22effa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Contributor: Lauren N. Liberda <lauren@selfisekai.rocks>
# Maintainer: Lauren N. Liberda <lauren@selfisekai.rocks>
pkgname=py3-pycaption
pkgver=2.1.0
pkgrel=1
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
	"
makedepends="py3-setuptools"
checkdepends="
	py3-pytest
	py3-pytest-lazy-fixture
	"
source="https://github.com/pbs/pycaption/archive/refs/tags/$pkgver/pycaption-$pkgver.tar.gz"
builddir="$srcdir/pycaption-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/tests
}

sha512sums="
f9bacf940c49c2652484e73abee27eaae6dcd69e4ba571c38cf5ef4871c4b3cf6531f427c0ddbfa004ce84d154d32edfcd1c2a1adb195fb5cfe692a9026abd63  pycaption-2.1.0.tar.gz
"