summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eaf3c05d8cec3fd0ac074550013218b67120963e (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
# Maintainer: Lumaku <lumaku@mailbox.org>
pkgname=python-huggingface-hub-git
pkgver=0.17.0.dev0
pkgrel=1
pkgdesc='Client library to download and publish models on the huggingface.co hub'
arch=('any')
url='https://github.com/huggingface/huggingface_hub'
license=('Apache 2.0')
depends=('python>=3.6' 'python-filelock' 'python-tqdm' 'python-requests' 'python-importlib-metadata')
optdepends=('python-espnet-git: ASR toolkit'
            'python-speechbrain-git: ASR toolkit')
provides=('python-huggingface-hub')
conflicts=("python-huggingface-hub")
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
}