python-ema-pytorch

LOW
maintainer Smoolak 0 votes scanned 2026-11-01 18:01:05.785766
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: Smoolak <smoolak@gmail.com>
2
3pkgname=python-ema-pytorch
4pkgver=0.8.3
5pkgrel=1
6pkgdesc="Exponential moving averages for PyTorch models and tensor trees"
7arch=('any')
8url="https://github.com/lucidrains/ema-pytorch"
9license=('MIT')
10_commit=762c471c221c50b770c3ba10274e6b5b08d15a7b
11depends=('python' 'python-numpy' 'python-pytorch>=2.0')
12makedepends=('python-build' 'python-installer' 'python-hatchling')
13checkdepends=('python-pytest')
14source=("$pkgname-$pkgver.tar.gz::$url/archive/$_commit.tar.gz")
15sha256sums=('c9135990a6e7c3312497b1849731cb3b068fecde088e08b83f3f53d16bf924a4')
16
17build() {
18 cd "ema-pytorch-$_commit"
19 python -m build --wheel --no-isolation
20}
21
22check() {
23 cd "ema-pytorch-$_commit"
24 python -m pytest -v tests --junitxml="$srcdir/pytest-results.xml"
25}
26
27package() {
28 cd "ema-pytorch-$_commit"
29 python -m installer --destdir="$pkgdir" dist/*.whl
30 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
31}
32

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 18:01:05 Low 1

Report a package

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

0 / 4000
Your suggestion