python-pdfnup
The source is a Python package tarball from a personal academic host, but it is the project's own source being built normally; the worst case of a swapped source is limited to code injection during build, which is low risk for a Python module in this context.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The source is a Python package tarball from a personal academic host, but it is the project's own source being built normally; the worst case of a swapped source is limited to code injection during build, which is low risk for a Python module in this context.
1 higher static finding superseded - not the current verdict (shown for transparency)
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:13
source=("http://www.dinu-gherman.net/tmp/pdfnup-$pkgver.tar.gz")
PKGBUILD
1 offending line(s) highlighted# Maintainer: Kyle Keen <keenerd@gmail.com>
pkgname=python-pdfnup
pkgver=0.4.2
pkgrel=1
pkgdesc="a Python module and CLI tool for layouting multiple pages per sheet of a PDF"
arch=('any')
url="http://www.dinu-gherman.net/tmp/pdfnup-README.html"
#url="https://pypi.python.org/pypi/pdfnup/0.4.1"
license=('GPL3')
depends=('python-pypdf2')
makedepends=('python-setuptools')
source=("http://www.dinu-gherman.net/tmp/pdfnup-$pkgver.tar.gz")
#source=("https://pypi.python.org/packages/source/p/pdfnup/pdfnup-$pkgver.tar.gz")
md5sums=('02b9232a918d573c2d1933dfba3e6ede')
# note: this bundles a binary template PDF (_mtA4PdfZip64) that I have not inspected
prepare() {
cd "$srcdir/pdfnup-$pkgver"
find ./ -name '*.py' -exec 2to3 -w '{}' \;
2to3 -w pdfnup
# todo: remove the unused ones from 0.3.3
sed -i -e 's/from pyPdf/from PyPDF2/' \
-e 's/ImmutableSet, //' \
-e 's/IS = ImmutableSet/IS = frozenset/' \
-e 's/decodestring(_mtA4PdfZip64)/decodestring(_mtA4PdfZip64.encode("ascii"))/' \
-e 's/StringIO/BytesIO/' \
-e 's/range(n)/range(int(n))/' \
-e 's/outPages\[destPageNum\]/outPages[int(destPageNum)]/' \
-e 's/import types/import io/' \
-e 's/type(obj) == types.FileType/isinstance(obj, io.IOBase)/' \
-e 's/ in str:/ == str:/' \
pdfnup.py
}
build() {
cd "$srcdir/pdfnup-$pkgver"
python setup.py build
}
package(){
cd "$srcdir/pdfnup-$pkgver"
python setup.py install --root="${pkgdir}" --optimize=0
}
# vim:ts=2:sw=2:et:
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |