Subject: [bug#63448] [PATCH 1/2] gnu: Add python-optparse-pretty.

From: Mădălin Ionel Patrașcu<[email-masked]>
Date: Thu, 11 May 2023 20:34:11 +0200

* gnu/packages/python-xyz.scm (python-optparse-pretty): New variable
---
 gnu/packages/python-xyz.scm | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 4f48d80eb6..9fabfce79f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -66,7 +66,7 @@
 ;;; Copyright © 2019, 2020, 2021 Giacomo Leidi <[email-masked]>
 ;;; Copyright © 2019 Wiktor Żelazny <[email-masked]>
 ;;; Copyright © 2019, 2020, 2021, 2022 Tanguy Le Carrour <[email-masked]>
-;;; Copyright © 2019, 2021, 2022 Mădălin Ionel Patrașcu <[email-masked]>
+;;; Copyright © 2019, 2021-2023 Mădălin Ionel Patrașcu <[email-masked]>
 ;;; Copyright © 2020 Riku Viitanen <[email-masked]>
 ;;; Copyright © 2020 Jakub Kądziołka <[email-masked]>
 ;;; Copyright © 2020 sirgazil <[email-masked]>
@@ -2690,6 +2690,27 @@ (define-public python-diskcache
     (description "DiskCache is a disk and file backed persistent cache.")
     (license license:asl2.0)))
 
+(define-public python-optparse-pretty
+  (package
+    (name "python-optparse-pretty")
+    (version "0.1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "optparse-pretty" version))
+       (sha256
+        (base32 "1920wbh2b7a8qn7zx2iiqbcdaax335l81a73x9pp8h11yzs2jdmh"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list #:tests? #f))   ; There are no tests in the pypi archive.
+    (home-page "https://github.com/gvalkov/optparse-pretty")
+    (synopsis "Compact help formatter for optparse")
+    (description
+     "This module provides two help formatters for optparse.  They provide
+terser and more customizable option formatting in comparison to the default
+help formatter.")
+    (license license:bsd-3)))
+
 (define-public python-orjson
   (package
     (name "python-orjson")

base-commit: e2eb43f945fd467e9b55a4b3c91cd186cf32e268
-- 
2.39.2