python-peft
MEDIUM
maintainer Smoolak
0 votes
scanned 2026-09-27 13:18:29.354985
Why flagged
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
Triggered rules
Medium
Recently orphaned & re-adopted
orphaned_readopted
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
PKGBUILD
1
# Maintainer: Daniel Bershatsky <bepshatsky@yandex.ru>
2
pkgname=python-peft
3
_pkgname=${pkgname#python-}
4
pkgver=0.17.1
5
pkgrel=1
6
pkgdesc='State-of-the-art Parameter-Efficient Fine-Tuning.'
7
arch=('any')
8
url='https://github.com/huggingface/peft'
9
license=('Apache-2.0')
10
groups=('huggingface')
11
depends=(
12
'python-accelerate'
13
'python-huggingface-hub'
14
'python-numpy'
15
'python-packaging'
16
'python-psutil'
17
'python-pytorch'
18
'python-safetensors'
19
'python-tqdm'
20
'python-transformers'
21
'python-yaml'
22
)
23
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
24
optdepends=()
25
source=("$_pkgname-$pkgver.tar.gz::https://github.com/huggingface/$_pkgname/archive/refs/tags/v$pkgver.tar.gz")
26
sha256sums=('d9d8a31f757a777ab19839a33551389daa8e23c38b5bea5e47a56e274681d637')
27
28
build() {
29
python -m build -nw $_pkgname-$pkgver
30
}
31
32
check() {
33
export PYTHONPATH=$srcdir/$_pkgname-$pkgver/src
34
python -c 'import peft'
35
}
36
37
package() {
38
cd $_pkgname-$pkgver
39
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
40
python -m installer --compile-bytecode=1 --destdir=$pkgdir \
41
dist/$_pkgname-$pkgver-py3-*-*.whl
42
}
43
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-27 13:18:29 | Medium | 1 |
| 2026-06-18 16:11:54 | Clean | 0 |