blob: b34211f3a8fedf808c33cc7b754f4dbc957e7c3b (
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
|
# Maintainer: Daniel Bershatsky <bepshatsky@yandex.ru>
pkgname=python-peft
_pkgname=${pkgname#python-}
pkgver=0.15.0
pkgrel=1
pkgdesc='State-of-the-art Parameter-Efficient Fine-Tuning.'
arch=('any')
url='https://github.com/huggingface/peft'
license=('Apache-2.0')
groups=('hugginface')
depends=(
'python-accelerate'
'python-huggingface-hub'
'python-numpy'
'python-packaging'
'python-psutil'
'python-pytorch'
'python-safetensors'
'python-tqdm'
'python-transformers'
'python-yaml'
)
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
optdepends=()
source=("$_pkgname-$pkgver.tar.gz::https://github.com/huggingface/$_pkgname/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('0c9ef77864aa5fa10bb1969a035479bad63a07636563397b24d98e5bb5fc23e1')
build() {
python -m build -nw $_pkgname-$pkgver
}
check() {
export PYTHONPATH=$srcdir/$_pkgname-$pkgver/src
python -c 'import peft'
}
package() {
cd $_pkgname-$pkgver
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
python -m installer --compile-bytecode=1 --destdir=$pkgdir \
dist/$_pkgname-$pkgver-py3-*-*.whl
}
|