summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando Ayats <ayatsfer@gmail.com>2025-02-19 13:48:58 +0100
committerLudovic Courtès <ludovic.courtes@inria.fr>2025-02-20 10:37:51 +0100
commit47975c816d8705f3cb214d2eef873f36bbb524db (patch)
tree18c457788b224776ffc03e2f9b4ddd29bcb5ed38
parenta82cc47ae408a9a92e1bd038fdb8d46f694ebde3 (diff)
python: Add wadler-lindig
* guix-science/packages/python.scm (python-wadler-lindig): New variable. Signed-off-by: Ludovic Courtès <ludovic.courtes@inria.fr>
-rw-r--r--guix-science/packages/python.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/guix-science/packages/python.scm b/guix-science/packages/python.scm
index cfb13b3..7f4f6a0 100644
--- a/guix-science/packages/python.scm
+++ b/guix-science/packages/python.scm
@@ -1412,3 +1412,29 @@ reliable JAX code. This includes utils to help:
1412 (description "Optax is a gradient processing and optimization 1412 (description "Optax is a gradient processing and optimization
1413library for JAX.") 1413library for JAX.")
1414 (license license:asl2.0))) 1414 (license license:asl2.0)))
1415
1416(define-public python-wadler-lindig
1417 (package
1418 (name "python-wadler-lindig")
1419 (version "0.1.3")
1420 (source
1421 (origin
1422 ;; GitHub includes the tests, unlike the PyPI tarball
1423 (method git-fetch)
1424 (uri (git-reference
1425 (url "https://github.com/patrick-kidger/wadler_lindig")
1426 (commit (string-append "v" version))))
1427 (file-name (git-file-name name version))
1428 (sha256
1429 (base32 "03h0gg50yw28b8vlkvpjbl9ffrg3bcd6mfjlklqg2v8qsp3zaika"))))
1430 (build-system pyproject-build-system)
1431 (native-inputs (list python-hatchling python-pytest python-numpy))
1432 (home-page "https://docs.kidger.site/wadler_lindig")
1433 (synopsis "Pretty printer for Python using the Wadler-Lindig algorithm")
1434 (description
1435 "Wadler-Lindig is a minimal, zero-dependency pretty-printing
1436library for Python that implements a simplified version of the Wadler-Lindig
1437algorithm. Designed to consume less horizontal space than Python's
1438built-in pprint.pprint, it produces compact, well-formatted representations
1439even for complex custom types.")
1440 (license license:asl2.0)))