python-diffusers
MEDIUM
maintainer Smoolak
4 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
# Maintainer: @xiota
3
# Contributor: Alexander F. Rødseth <xyproto@archlinux.org>
4
5
_module="diffusers"
6
_pkgname="python-$_module"
7
pkgname="$_pkgname"
8
pkgver=0.35.2
9
pkgrel=1
10
pkgdesc='Pretrained diffusion models for image and audio generation in PyTorch'
11
url='https://github.com/huggingface/diffusers'
12
license=('Apache-2.0')
13
arch=('any')
14
groups=('huggingface')
15
depends=(
16
'python-filelock'
17
'python-huggingface-hub'
18
'python-numpy'
19
'python-pillow'
20
'python-regex'
21
'python-requests'
22
'python-safetensors'
23
)
24
optdepends=(
25
'python-accelerate: multi-GPU and TPU training support'
26
'python-datasets: datasets and data loading'
27
'python-flax: JAX/FLAX support'
28
'python-peft: parameter efficient fine-tunning'
29
'python-pytorch: PyTorch support'
30
'python-tensorflow: TensorFlow support'
31
)
32
makedepends=(
33
'python-build'
34
'python-installer'
35
'python-setuptools'
36
'python-wheel'
37
)
38
39
_pkgsrc="$_module-$pkgver"
40
_pkgext="tar.gz"
41
source=("$_pkgsrc.$_pkgext"::"$url/archive/refs/tags/v$pkgver.$_pkgext")
42
sha256sums=('e513789041223fada8d25be9b85e49a828604aedea074f64cd179636d37603d3')
43
44
prepare() {
45
cd "$_pkgsrc"
46
sed -i '/License :: OSI Approved/d' setup.py
47
sed -i 's/license=.*,/license="Apache-2.0",/' setup.py
48
sed -i '/importlib_metadata/d' setup.py
49
python setup.py deps_table_update
50
}
51
52
build() {
53
python -m build -nw "$_pkgsrc"
54
}
55
56
check() {
57
PYTHONPATH=$srcdir/$_pkgsrc/src python -c 'import diffusers'
58
}
59
60
package() {
61
cd "$_pkgsrc"
62
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
63
python -m installer --compile-bytecode=1 --destdir="$pkgdir" dist/*.whl
64
}
65
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-27 13:18:29 | Medium | 1 |
| 2026-06-18 16:11:54 | Clean | 0 |