71.25. python3-orjson-3.12.0
JSON for Python, written in Rust
3.12.0-1 · MPL-2.0 AND (Apache-2.0 OR MIT) · 0.9 SBU · 752.1 KiB, 17 files · 40_lang, 104 of 186 · ports/core/python-libs/python3-orjson
Homepage: https://github.com/ijl/orjson
Why it is in KDOS. The comment above it in script/phases/40_lang/packages.d/python-libs.txt:
orjson, which Gramps imports, builds through maturin as cryptography does.
Depends on: python3, python3-pip, python3-maturin, rust.
Required by (1): gramps.
Sources: python3-orjson-3.12.0.tar.gz (4.0 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/40_lang/phase.env && kpkg install python3-orjson'
build.sh:
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 .
Directories: /usr/lib/python3.14/site-packages/orjson, /usr/lib/python3.14/site-packages/orjson-3.12.0.dist-info, /usr/share/licenses/python3-orjson.