python-q2templates
LOW
maintainer Smoolak
0 votes
scanned 2026-11-01 20:01:18.389276
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
3
pkgname=python-q2templates
4
pkgver=2026.10.0
5
pkgrel=2
6
pkgdesc='HTML templates and interactive reports for QIIME 2 visualizations'
7
arch=(any)
8
url=https://github.com/qiime2/q2templates
9
license=(BSD-3-Clause MIT)
10
depends=(python python-jinja python-pandas)
11
makedepends=(python-build python-installer python-setuptools python-versioningit python-wheel nodejs npm)
12
checkdepends=(python-pytest)
13
_commit=59d47eb8072d70f9e6f984dff4f052620a62a91e
14
source=("$pkgname-$pkgver.tar.gz::$url/archive/$_commit.tar.gz"
15
runtime-modules.js matryoshka-vite.config.ts runtime-notices.py)
16
sha256sums=('abd54379f9c422e2e9a65460a339511f725c8b33570ccad376a30534ebee8682'
17
'3c5e2dfe3205420c87a9551eef6e292ed0c927c1072e58a3ab3f72f6e6f6a225' '4f2885e1596469dafceb7034cd980392a2b8bf6744546e41f05c488722cd19d5' '7b7adcf9b697a79bd988ee855e5e9b91b70cd1dbd9cccdbe7123950db85a634d')
18
19
prepare() {
20
cd "q2templates-$_commit"
21
cp "$srcdir/"{runtime-modules.js,matryoshka-vite.config.ts} reports/matryoshka/
22
npm ci --prefix reports/matryoshka --no-audit --no-fund
23
}
24
25
build() {
26
cd "q2templates-$_commit"
27
npm run build --prefix reports/matryoshka -- --config matryoshka-vite.config.ts
28
(cd reports/matryoshka && python "$srcdir/runtime-notices.py")
29
install -d q2templates/reports/built_assets/matryoshka
30
cp -r reports/matryoshka/build/. q2templates/reports/built_assets/matryoshka/
31
python -m build --wheel --no-isolation
32
}
33
34
check() {
35
python -m venv --system-site-packages --without-pip "$srcdir/check-env"
36
"$srcdir/check-env/bin/python" -m installer "q2templates-$_commit"/dist/*.whl
37
"$srcdir/check-env/bin/python" -I -m pytest --import-mode=importlib -v \
38
"q2templates-$_commit/q2templates" --junitxml="$srcdir/pytest-results.xml"
39
}
40
41
package() {
42
cd "q2templates-$_commit"
43
python -m installer --destdir="$pkgdir" dist/*.whl
44
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
45
cp -r reports/matryoshka/build/third-party-licenses "$pkgdir/usr/share/licenses/$pkgname/"
46
}
47
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 20:01:18 | Low | 1 |