guix_mirror_bot pushed a commit to branch master
in repository guix.

commit ffb8b9b5f7425ba7213791c6f678c808a30051bd
Author: Cayetano Santos <[email protected]>
AuthorDate: Tue Oct 28 08:27:11 2025 +0100

    gnu: Add python-wadler-lindig.
    
    * gnu/packages/python-xyz.scm (python-wadler-lindig): New variable.
    
    Change-Id: Ia493938cf8983ee978a1a37c04dd7a90ee473f32
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 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 6a811c845c..64911e206d 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")

Reply via email to