71.23. python3-cattrs-26.2.1
Structuring and unstructuring of attrs classes and dataclasses to and from plain Python data
26.2.1-1 · MIT · 40_lang, 102 of 186 · ports/core/python-libs/python3-cattrs
Homepage: https://catt.rs/
cattrs converts between attrs classes or dataclasses and plain Python data (dicts, lists, strings and numbers), the step before and after JSON or another wire format. python3-lsp-ruff’s lsprotocol builds its language-server messages with it, and Blender’s Extensions platform and remote asset libraries read their listings with it.
Depends on: python3, python3-pip, python3-hatchling, python3-hatch-vcs, python3-setuptools-scm, python3-attrs, python3-typing-extensions.
Required by (2): blender, python3-lsp-ruff.
Sources: python3-cattrs-26.2.1.tar.gz. 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-cattrs'
build.sh:
export SETUPTOOLS_SCM_PRETEND_VERSION=$version
pip3 install --ignore-installed --no-deps --no-index --no-build-isolation --root=$PKG --prefix=/usr .
Not in the build-state snapshot: the snapshot’s tree had not built it.
cattrs builds with hatchling and hatch-vcs, both ports in depends. hatch-vcs asks version control for the version, and an unpacked source distribution is not a checkout, so build.sh hands it the recipe’s version in SETUPTOOLS_SCM_PRETEND_VERSION. Its run-time dependencies are python3-attrs and python3-typing-extensions; exceptiongroup is required only below Python 3.11.