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-11-01 00:21:48 | Low | 2 |
| 2026-10-31 00:07:41 | Low | 2 |
| 2026-10-30 00:29:30 | Low | 2 |
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 00:13:10 | Low | 2 |
| 2026-10-21 00:12:50 | Low | 2 |
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |