blob: 9ca33c83c53cc846b1038275649aa2aea07d4bf6 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Contributor: Andrej Radović <r.andrej@gmail.com>
pkgname=python-ffsubsync
_name=${pkgname#python-}
pkgver=0.5.0
pkgrel=1
pkgdesc="Language-agnostic automatic synchronization of subtitles with video."
url="https://github.com/smacke/ffsubsync"
depends=(
'python'
'python-auditok'
'python-cchardet'
'python-chardet'
'python-charset-normalizer'
'python-ffmpeg-python'
'python-numpy'
'python-pysubs2'
'python-rich'
'python-srt'
'python-tqdm'
'python-typing_extensions'
'python-webrtcvad'
)
makedepends=(
'python-build'
'python-installer'
'python-pytest'
'python-setuptools'
'python-versioneer'
'python-wheel'
)
optdepends=(
'python-pytorch: for the `--vad=fused` option'
'mkvtoolnix-cli: for faster Matroska files subtitles extraction'
)
license=('GPL3')
arch=('any')
source=(
"https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
"requirements-$pkgver.txt::https://raw.githubusercontent.com/smacke/ffsubsync/$pkgver/requirements.txt"
)
sha256sums=('d23d56bca31e5529693bb0bcbd036da16702114fed44ee349a48b685361538e4'
'de4d3323f6109fe108656e9feba8e0d031685ab30b2fa2a494187ce857b1c04d')
build() {
cd "$_name-$pkgver"
rm versioneer.py
cp "../requirements-$pkgver.txt" requirements.txt
pyproject-build --no-isolation --skip-dependency-check --wheel
}
check() {
cd "$_name-$pkgver"
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 python -m pytest tests
}
package() {
cd "$_name-$pkgver"
python -m installer --destdir="$pkgdir" --compile-bytecode=1 dist/*.whl
}
|