From ffb8b9b5f7425ba7213791c6f678c808a30051bd Mon Sep 17 00:00:00 2001 From: Cayetano Santos Date: Tue, 28 Oct 2025 08:27:11 +0100 Subject: [PATCH] gnu: Add python-wadler-lindig. * gnu/packages/python-xyz.scm (python-wadler-lindig): New variable. Change-Id: Ia493938cf8983ee978a1a37c04dd7a90ee473f32 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 6a811c845cd4a5fdfb13f2300d7bc95e7c638f42..64911e206d8dc6b4b85a3457c7fb2189ae24fa87 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -39947,6 +39947,32 @@ be imported, but only a few components are understood in a sophisticated way.") intended for validating data coming into Python as JSON, YAML, etc.") (license license:bsd-3))) +(define-public python-wadler-lindig + (package + (name "python-wadler-lindig") + (version "0.1.7") + (source + (origin + ;; GitHub includes the tests, unlike the PyPI tarball + (method git-fetch) + (uri (git-reference + (url "https://github.com/patrick-kidger/wadler_lindig") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0nl2zx75p0fza3xyd5qsl4gx68hma677gin68d290ivk6zmkdzx8")))) + (build-system pyproject-build-system) + (native-inputs (list python-hatchling python-pytest python-numpy)) + (home-page "https://docs.kidger.site/wadler_lindig") + (synopsis "Pretty printer for Python using the Wadler-Lindig algorithm") + (description + "Wadler-Lindig is a minimal, zero-dependency pretty-printing +library for Python that implements a simplified version of the Wadler-Lindig +algorithm. Designed to consume less horizontal space than Python's +built-in pprint.pprint, it produces compact, well-formatted representations +even for complex custom types.") + (license license:asl2.0))) + (define-public python-wand (package (name "python-wand")