python-diffusers

MEDIUM
maintainer Smoolak 4 votes scanned 2026-09-27 13:18:29.354985
View on AUR
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"
7pkgname="$_pkgname"
8pkgver=0.35.2
9pkgrel=1
10pkgdesc='Pretrained diffusion models for image and audio generation in PyTorch'
11url='https://github.com/huggingface/diffusers'
12license=('Apache-2.0')
13arch=('any')
14groups=('huggingface')
15depends=(
16 'python-filelock'
17 'python-huggingface-hub'
18 'python-numpy'
19 'python-pillow'
20 'python-regex'
21 'python-requests'
22 'python-safetensors'
23)
24optdepends=(
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)
32makedepends=(
33 'python-build'
34 'python-installer'
35 'python-setuptools'
36 'python-wheel'
37)
38
39_pkgsrc="$_module-$pkgver"
40_pkgext="tar.gz"
41source=("$_pkgsrc.$_pkgext"::"$url/archive/refs/tags/v$pkgver.$_pkgext")
42sha256sums=('e513789041223fada8d25be9b85e49a828604aedea074f64cd179636d37603d3')
43
44prepare() {
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
52build() {
53 python -m build -nw "$_pkgsrc"
54}
55
56check() {
57 PYTHONPATH=$srcdir/$_pkgsrc/src python -c 'import diffusers'
58}
59
60package() {
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)SeverityRules
2026-09-27 13:18:29 Medium 1
2026-06-18 16:11:54 Clean 0

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion