aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-pycaption/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/py3-pycaption/APKBUILD')
-rw-r--r--testing/py3-pycaption/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/py3-pycaption/APKBUILD b/testing/py3-pycaption/APKBUILD
new file mode 100644
index 00000000000..e44e2cda347
--- /dev/null
+++ b/testing/py3-pycaption/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
+# Maintainer: lauren n. liberda <lauren@selfisekai.rocks>
+pkgname=py3-pycaption
+pkgver=2.2.4
+pkgrel=0
+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
+ py3-nltk
+ "
+makedepends="py3-setuptools"
+checkdepends="py3-pytest"
+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="
+6082cf098b2e8b97e84729538f842405c667a5eda50d5bec094b372f9e9b0ac79a64bb807fc2b75b0ee3c79d934f6e15f595cdf4882277086067207fb7637976 pycaption-2.2.4.tar.gz
+"