guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 841ea8f305952b7d9a9af81f36c2b3ea886a30f8
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Oct 19 18:37:59 2025 +0200

    gnu: python-pythondialog: Rename and update to 3.5.3.
    
    * gnu/packages/python-xyz.scm
    (python-pythondialog): Define in terms of 'deprecated-package'.
    (python-dialog): New variable, formerly known as "python-pythondialog".
    [source]: Update to 3.5.3. Improve style. Remove "doc" directory.
    [build-system]: Switch to pyproject-build-system.
    [arguments]<#phases>: Rewrite phase 'patch-path entirely.
    [native-inputs]: Add python-setuptools.
    [description]: Improve style.
    
    Change-Id: I1360b4988e59b94e8c3d8e734ee2d58b56cd0baf
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-xyz.scm | 57 +++++++++++++++++++++++++--------------------
 1 file changed, 32 insertions(+), 25 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 891acdb6c2..c1508f8669 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19706,38 +19706,45 @@ tutorial.")
 @code{PythonAnywhere} services.")
     (license license:expat)))
 
-(define-public python-pythondialog
+(define-public python-dialog
   (package
-    (name "python-pythondialog")
-    (version "3.4.0")
-    (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "pythondialog" version))
-              (sha256
-               (base32
-                "1728ghsran47jczn9bhlnkvk5bvqmmbihabgif5h705b84r1272c"))))
-    (build-system python-build-system)
+    (name "python-dialog")
+    (version "3.5.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pythondialog" version))
+       (sha256
+        (base32 "08v3flvbhpc0p20drniiaalc3ijghlxk9ka5vz5mqqm6y254m8xj"))
+       (modules '((guix build utils)))
+       (snippet #~(delete-file-recursively "doc"))))
+    (build-system pyproject-build-system)
     (arguments
-     `(#:phases (modify-phases %standard-phases
-                  (add-after 'unpack 'patch-path
-                    (lambda* (#:key inputs #:allow-other-keys)
-                      (let* ((dialog (assoc-ref inputs "dialog")))
-                        (substitute* "dialog.py"
-                          (("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)") 
(string-append
-                                                                            
"os.getenv(\"PATH\")  + \":"
-                                                                            
dialog
-                                                                            
"/bin\"")))
-                        #t))))
-       #:tests? #f))
-    (propagated-inputs (list dialog))
+     (list
+      ;; XXX: There are no tests, but some examples.  However, they need to
+      ;; be run on a terminal.
+      #:tests? #f
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-path
+            (lambda* (#:key inputs #:allow-other-keys)
+              (substitute* "dialog.py"
+                (("_path_to_executable\\(dialog\\)")
+                 (format #f "os.path.realpath(~s)"
+                         (search-input-file inputs "bin/dialog")))))))))
+    (native-inputs (list python-setuptools))
+    (inputs (list dialog))
     (home-page "https://pythondialog.sourceforge.net/";)
     (synopsis "Python interface to the UNIX dialog utility")
     (description
-     "A Python wrapper for the dialog utility.  Its purpose is to
-provide an easy to use, pythonic and comprehensive Python interface to dialog.
-This allows one to make simple text-mode user interfaces on Unix-like systems")
+     "A Python wrapper for the dialog utility.  Its purpose is to provide an
+easy to use, pythonic and comprehensive Python interface to dialog.  This
+allows one to make simple text-mode user interfaces on Unix-like systems")
     (license license:lgpl2.1)))
 
+(define-public python-pythondialog
+  (deprecated-package "python-pythondialog" python-dialog))
+
 (define-public python-confection
   (package
     (name "python-confection")

Reply via email to