223.4. python3-pikepdf-10.13.0.post1
qpdf bindings — read and rewrite a PDF without rasterising it
10.13.0.post1-1 · MPL-2.0 · 3.6 SBU · 2.5 MiB, 123 files · 42_graphics, 148 of 189 · ports/core/python-libs/python3-pikepdf
Homepage: https://github.com/pikepdf/pikepdf
Why it is in KDOS. The comment above the 3 ports from python3-pillow to python3-pillow-heif in script/phases/42_graphics/packages.d/python-libs.txt:
The compiled python bindings a document pipeline needs: an imaging library, a PDF rewriter and a HEIF decoder. Each binds a system library this tree already builds, which is why they are ports rather than entries in somebody's vendor bundle.
Depends on: python3, python3-pip, python3-scikit-build-core, python3-nanobind, cmake, ninja, python3-pillow, python3-lxml, python3-packaging, qpdf.
Required by (1): ocrmypdf.
Sources: python3-pikepdf-10.13.0.post1.tar.gz (4.7 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/42_graphics/phase.env && kpkg install python3-pikepdf'
build.sh:
pip3 install --ignore-installed --no-deps --no-index --no-build-isolation --root=$PKG --prefix=/usr .
Directories: /usr/lib/python3.14/site-packages/pikepdf, /usr/lib/python3.14/site-packages/pikepdf-10.13.0.post1.dist-info, /usr/share/licenses/python3-pikepdf.