summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dff8fb419b619426450dc8a4519bf242782a6cfa (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
60
# Maintainer: Lumaku <lumaku@mailbox.org>
pkgname=python-espnet-git
pkgver=202301
pkgrel=1
pkgdesc='End-to-End Speech Processing Toolkit Python Package'
arch=('any')
url='https://github.com/espnet/espnet'
license=('Apache 2.0')
depends=('python>=3.7'
        'python-numpy'
        'python-pytorch'
        'python-soundfile'
        'python-typeguard'
        'python-editdistance'
        'python-librosa'
        'tensorboard'
        'python-h5py'
        'python-nltk'
        'python-regex'
        'python-inflect'
        'python-jaconv'
        'python-pytorch-complex-git'
        'python-pytorch-wpe-git'
        'python-g2p-git'
        'python-kaldiio-git'
        'python-sentencepiece-git'
        'python-wandb-git'
        'python-espnet-tts-frontend-git'
        'python-ctc-segmentation-git'
        'python-humanfriendly'
        'python-jamo-git')
optdepends=('sox: convert audio files'
            'python-espnet-model-zoo-git: pretrained models')
makedepends=('git' 'python-setuptools')
provides=('python-espnet')
conflicts=("python-espnet")
source=(
    "${pkgname}::git+${url}")
md5sums=(
    'SKIP')


pkgver() {
    cd "${pkgname}"
    printf "%s" "$(python setup.py --version)"
}


build() {
    cd "${pkgname}"
    python setup.py build
}


package() {
    cd "${pkgname}"
    export PYTHONHASHSEED=0
    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}