summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a4fa79147eb03a718a9a5e35d2cd55c4feba1feb (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
# Maintainer: Daniel Bershatsky <bepshatsky@yandex.ru>

pkgname='python-evaluate'
_pkgname=${pkgname#python-}
pkgver=0.4.3
pkgrel=1
pkgdesc='HuggigFace library for easily evaluating machine learning models and datasets'
arch=('x86_64')
url='https://github.com/huggingface/evaluate/'
license=('Apache')
depends=('python-datasets>=2.0.0'
         'python-dill'
         'python-fsspec>=2021.05.0'
         'python-huggingface-hub'
         'python-multiprocess'
         'python-numpy>=1.17'
         'python-pandas'
         'python-requests>=2.19.0'
         'python-scipy>=1.7.1'
         'python-tqdm>=4.62.1'
         'python-xxhash')
makedepends=('python-installer' 'python-packaging' 'python-setuptools')
optdepends=('python-transformers')
groups=('huggingface')
source=("evaluate-${pkgver}.tar.gz::https://github.com/huggingface/evaluate/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('af193874d5fdd3c4321e1b740e3f67232fac950d357dfd9034337e8c17a5d09e')

build() {
    cd $srcdir/evaluate-$pkgver
    python setup.py bdist_wheel
}

package() {
    python -m installer \
        --compile-bytecode 1 \
        --destdir $pkgdir \
        $srcdir/$_pkgname-$pkgver/dist/$_pkgname-$pkgver-*.whl
}