python-pdfnup

maintainer orphaned · 5 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged 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

LOW AI review downgraded a static finding 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)
MEDIUM source=() URL on a non-standard host 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
1# Maintainer: Kyle Keen <keenerd@gmail.com>
2
3pkgname=python-pdfnup
4pkgver=0.4.2
5pkgrel=1
6pkgdesc="a Python module and CLI tool for layouting multiple pages per sheet of a PDF"
7arch=('any')
8url="http://www.dinu-gherman.net/tmp/pdfnup-README.html"
9#url="https://pypi.python.org/pypi/pdfnup/0.4.1"
10license=('GPL3')
11depends=('python-pypdf2')
12makedepends=('python-setuptools')
13source=("http://www.dinu-gherman.net/tmp/pdfnup-$pkgver.tar.gz")
14#source=("https://pypi.python.org/packages/source/p/pdfnup/pdfnup-$pkgver.tar.gz")
15md5sums=('02b9232a918d573c2d1933dfba3e6ede')
16
17# note: this bundles a binary template PDF (_mtA4PdfZip64) that I have not inspected
18
19prepare() {
20 cd "$srcdir/pdfnup-$pkgver"
21 find ./ -name '*.py' -exec 2to3 -w '{}' \;
22 2to3 -w pdfnup
23 # todo: remove the unused ones from 0.3.3
24 sed -i -e 's/from pyPdf/from PyPDF2/' \
25 -e 's/ImmutableSet, //' \
26 -e 's/IS = ImmutableSet/IS = frozenset/' \
27 -e 's/decodestring(_mtA4PdfZip64)/decodestring(_mtA4PdfZip64.encode("ascii"))/' \
28 -e 's/StringIO/BytesIO/' \
29 -e 's/range(n)/range(int(n))/' \
30 -e 's/outPages\[destPageNum\]/outPages[int(destPageNum)]/' \
31 -e 's/import types/import io/' \
32 -e 's/type(obj) == types.FileType/isinstance(obj, io.IOBase)/' \
33 -e 's/ in str:/ == str:/' \
34 pdfnup.py
35}
36
37build() {
38 cd "$srcdir/pdfnup-$pkgver"
39 python setup.py build
40}
41
42package(){
43 cd "$srcdir/pdfnup-$pkgver"
44 python setup.py install --root="${pkgdir}" --optimize=0
45}
46
47# vim:ts=2:sw=2:et:
48

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 LOW 2
2026-08-02 00:16:08 LOW 2
2026-08-01 00:11:18 LOW 2
2026-07-31 00:14:10 LOW 2
2026-07-30 00:17:23 LOW 2
2026-07-29 00:25:53 LOW 2
2026-07-28 00:07:28 LOW 2
2026-07-27 00:24:32 LOW 2
2026-07-26 00:07:32 LOW 2
2026-07-25 00:13:44 LOW 2
2026-07-24 00:02:28 LOW 2
2026-07-23 00:14:47 LOW 2
2026-07-22 00:29:32 LOW 2
2026-07-21 00:24:15 LOW 2
2026-07-20 00:19:49 LOW 2
2026-07-19 00:17:08 LOW 2
2026-07-18 00:14:48 LOW 2
2026-07-17 00:06:16 LOW 2
2026-07-16 00:05:41 LOW 2
2026-07-15 00:09:25 LOW 2

Report a package

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

0 / 4000
Your suggestion