From da5ce589009e1a2917e4374ebcf45349f1077b66 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 12 Nov 2025 12:19:06 +0000 Subject: [PATCH] gnu: Add python-represent. * gnu/packages/python-xyz.scm (python-represent): New variable. Change-Id: If8081edde0caf8808a1930ed648c6896ba2b3a6f --- gnu/packages/python-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index bd3cef36e3e..db27517591c 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -2030,6 +2030,31 @@ of VT100 terminal.") edit distance algorithm for Python in Cython for high performance.") (license license:bsd-3))) +(define-public python-represent + (package + (name "python-represent") + (version "2.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Represent" version)) + (sha256 + (base32 "1b5wbnkjirscfqwcb6ik8klky0ajm4qs2yvabqxnpfp72if02b8b")))) + (build-system pyproject-build-system) + (native-inputs + ;; XXX This might be too much for testing, maybe switch them off as it's + ;; a simple middleware library. + (list python-ipython + python-pytest + python-rich + python-setuptools)) + (home-page "https://github.com/RazerM/represent") + (synopsis "Create @code{__repr__} automatically or declaratively for Python") + (description + "This package implements a functionality to generate Python +@code{__repr__} methods automatically or declaratively.") + (license license:expat))) + (define-public python-rich-argparse (package (name "python-rich-argparse")