From fef4512c0812abeef6ea7fb8c94b3ad0a6fba2c8 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Tue, 22 Jul 2025 18:04:47 +0200 Subject: [PATCH] gnu: Add python-rich-click-next. * gnu/packages/python-xyz.scm (python-rich-click-next): New variable. Change-Id: I551b3f0efb016d0d8e40f5293d2b7f86385ea107 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d5891289832e71c5751ebe948847909d438fafa2..adc60fb018edb8a496143af24676dbce7960707d 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -21917,6 +21917,37 @@ representation.") syntax highlighting, markdown and more to the terminal.") (license license:expat))) +;; TODO: Merge with python-rich-click on next python-team iteration. +(define-public python-rich-click-next + ;; Hidden from the CLI, so that we don't have warnings or surprises on + ;; installation, but other packages can still refer to it. + (hidden-package + (package + (name "python-rich-click") + (version "1.8.9") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ewels/rich-click") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0kc2wcb5dpgxhdcz8fy6gfhl7vra03xwgwfg7h0qxxibr8yzhmmq")))) + (build-system pyproject-build-system) + (propagated-inputs + (list python-click python-importlib-metadata python-rich + python-typing-extensions)) + (native-inputs (list python-pytest python-setuptools python-wheel)) + (home-page "https://github.com/ewels/rich-click") + (synopsis "Format click help output nicely with rich") + (description "Click is a \"Python package for creating beautiful command +line interfaces\". Rich is a \"Python library for rich text and beautiful +formatting in the terminal\". The intention of rich-click is to provide +attractive help output from click, formatted with rich, with minimal +customization required.") + (license license:expat)))) + (define-public python-rich-click (package (name "python-rich-click")