71.35. python3-rpds-py-2026.6.3
Persistent data structures in Rust, under jsonschema's referencing
| Version | 2026.6.3, release 1 |
| Shelf | python-libs — General-purpose python3-* runtime libraries: text, templating, markup, parsing, config, CLI, system, files, crypto, imaging |
| Phase | 40_lang (Languages), 115 of 186 in build order |
| Licence | MIT |
| Homepage | https://github.com/crate-py/rpds |
| Build time | 0.8 SBU |
| Installed size | 1012.2 KiB in 13 files |
| Recipe | ports/core/python-libs/python3-rpds-py/kpkgbuild |
About
rpds-py binds the Rust rpds crate’s persistent (immutable, structurally shared) data structures to Python as HashTrieMap, HashTrieSet, List and Queue. It is built by maturin from its vendor bundle. python3-referencing, the reference resolver under python3-jsonschema, imports it.
Sources
python3-rpds-py-2026.6.3.tar.gz(62.5 KiB)
sha2561cebd1337c242e4ec2293e541f712b2da849b29f48f0c293684b71c0632625d4
upstream: https://files.pythonhosted.org/packages/source/r/rpds-py/rpds_py-2026.6.3.tar.gz
archive copy: sources-4/python-libs--python3-rpds-py-2026.6.3.tar.gzpython3-rpds-py-vendor-2026.6.3.tar.xz(2.0 MiB)
sha256b9b13414d67faa6906e78dc00c6289aed05c34b4db8f26c8349b36026e0314b6
a vendor bundle: the dependencies upstream’s own tool would download, packed once
archive copy: sources-4/python-libs--python3-rpds-py-vendor-2026.6.3.tar.xz
Dependencies
Depends on: python3, python3-pip, python3-maturin, rust.
Required by (4): jupyterlab, python3-jsonschema, python3-nbconvert, python3-referencing.
Installation
From the repository root, inside the build container, this is the line kdosbuild runs for the port:
script/chroot/exec.sh bash -c 'source script/phases/40_lang/phase.env && kpkg install python3-rpds-py'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/python-libs/python3-rpds-py.
1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.
cd /ports/core/python-libs/python3-rpds-py
echo '1cebd1337c242e4ec2293e541f712b2da849b29f48f0c293684b71c0632625d4 python3-rpds-py-2026.6.3.tar.gz' | sha256sum -c -
echo 'b9b13414d67faa6906e78dc00c6289aed05c34b4db8f26c8349b36026e0314b6 python3-rpds-py-vendor-2026.6.3.tar.xz' | sha256sum -c -
2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.
SRC_ROOT=/var/cache/kpkg/work/python3-rpds-py
SRC=$SRC_ROOT/python3-rpds-py-2026.6.3
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf python3-rpds-py-2026.6.3.tar.gz -C "$SRC" --strip-components=1
Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.
3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:
tar xf $PORT_SRC/${name}-vendor-${version}.tar.xz
export CARGO_HOME="$SRC_ROOT/.cargo"
export RUSTFLAGS="-C target-feature=-crt-static"
export CARGO_NET_OFFLINE=true
pip3 install --ignore-installed --no-deps --no-index --no-build-isolation --root=$PKG --prefix=/usr .
The common switches of each build system are explained in the Flag glossary.
4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/python3-rpds-py, prunes what the image does not ship, lints the tree and rolls it reproducibly:
tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
--mtime=@$SOURCE_DATE_EPOCH \
--use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
-cf python3-rpds-py-2026.6.3-1.tar.xz -C "$PKG" .
5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/python3-rpds-py, and runs the triggers its paths call for.
Contents
Installed directories: /usr/lib/python3.14/site-packages/rpds, /usr/lib/python3.14/site-packages/rpds_py-2026.6.3.dist-info, /usr/share/licenses/python3-rpds-py.