From 060cfe93e97a35cf670f67eaf6d70ace79a6d020 Mon Sep 17 00:00:00 2001 From: Hugo Buddelmeijer Date: Mon, 6 Oct 2025 18:15:01 +0200 Subject: [PATCH] gnu: Add python-rich-argparse. * gnu/packages/python-xyz.scm (python-rich-argparse): New variable. Change-Id: I578ce47998dad8c8e55e0bade54d3e53e18374b7 Modified-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b455473d745c3f945845801b5666d03f03b2069a..f7a7dcefe8237fd4533493957e6569012db01c97 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -1498,6 +1498,33 @@ of VT100 terminal.") edit distance algorithm for Python in Cython for high performance.") (license license:bsd-3))) +(define-public python-rich-argparse + (package + (name "python-rich-argparse") + (version "1.7.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hamdanal/rich-argparse") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0wydhy1167yv7lm07iy3aysyhxyixc24ma1wdna36c06d24wbdc0")))) + (build-system pyproject-build-system) + (native-inputs + (list python-pytest + python-hatchling)) + (propagated-inputs + (list python-rich)) + (home-page "https://github.com/hamdanal/rich-argparse") + (synopsis "Format argparse and optparse help using rich") + (description + "This package improves the look and readability of argparse's help while +requiring minimal changes to the code.") + (license license:expat))) + (define-public python-safety-schemas (package (name "python-safety-schemas")