blob: 9f2a5757d2ecb4303aebd2f49ebc2b32a635a849 (
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
|
# Maintainer: a821 (nospam) mail de
# Contributor: Vekhir <vekhir at yahoo dot com>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Mark Wagie <mark dot wagie at tutanota dot com>
# Contributor: bitwave
pkgname=python-pycaption
_pkg="${pkgname#python-}"
pkgver=2.2.22
pkgrel=1
pkgdesc="Python module to read/write popular video caption formats"
arch=('any')
url="https://github.com/pbs/pycaption"
license=('Apache-2.0')
depends=('python-beautifulsoup4' 'python-lxml' 'python-cssutils')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest' 'python-pytest-lazy-fixture')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha512sums=('1bd532a003a17bc14183677889fdd0fed208e147ad251cdc46d829efb02d677806b27e727191e6bad7f9adcd90879763d97363eb2e3f17fdbeecc28c84b7eebf')
prepare() {
cd "$_pkg-$pkgver"
sed -i "/packages=/s/()/(exclude=['tests*'])/" setup.py
}
build() {
cd "$_pkg-$pkgver"
python -m build --wheel --no-isolation
}
check() {
cd "$_pkg-$pkgver"
pytest --disable-warnings
}
package() {
cd "$_pkg-$pkgver"
python -m installer --destdir="$pkgdir/" dist/*.whl
}
|