guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 8707776c941fb333ee24b1c6c6caa00c30a092c1
Author: Nicolas Graves <[email protected]>
AuthorDate: Thu Oct 23 23:23:20 2025 +0200

    gnu: python-py3status: Update to 3.62.
    
    * gnu/packages/python-xyz.scm (python-py3status): Update to 3.62.
    [source]: Switch to git-fetch.
    [build-system]: Switch to pyproject-build-system.
    [native-inputs]: Add python-hatchling.
    
    Change-Id: Ia8bb3e6221d5a090e2f05b676e18719fa374670e
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-xyz.scm | 45 +++++++++++++++++++++++----------------------
 1 file changed, 23 insertions(+), 22 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5765d5c4cf..795b17172f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22112,34 +22112,35 @@ in strings and comments.")
 (define-public python-py3status
   (package
     (name "python-py3status")
-    (version "3.50")
+    (version "3.62")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "py3status" version))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ultrabug/py3status";)
+             (commit version)))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "0j2dx9lzpic15r8p0r0s3jmcskxpacahxl640b4864ldn5rlnh9d"))))
-    (build-system python-build-system)
-    (inputs
-     (list file))
+        (base32 "13ggwr35w5isylrg1n7akhycm18r03bxin95hdpcmqg7fvqyfppz"))))
+    (build-system pyproject-build-system)
     (arguments
-     '(#:phases
-       (modify-phases %standard-phases
-         ;; 'file' is used for detection of configuration file encoding
-         ;; let's make link the dependency to particular input
-         (add-before 'build 'patch-file-path
-           (lambda* (#:key inputs #:allow-other-keys)
-             (let ((file-path (assoc-ref inputs "file")))
-               (substitute* "py3status/parse_config.py"
-                 (("\\[\"file\", \"-b\"")
-                  (string-append "['" file-path "/bin/file', '-b'")))
-               #t))))
-       #:tests? #f)) ; TODO: Requires many libraries not in Guix.
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'build 'hardcode-file-path
+            (lambda* (#:key inputs #:allow-other-keys)
+              (substitute* "py3status/parse_config.py"
+                (("\\[\"file\", \"-b\"")
+                 (format #f "[~s, \"-b\""
+                         (search-input-file inputs "bin/file")))))))))
+    (native-inputs (list python-hatchling python-pytest))
+    (inputs (list file))
     (home-page "https://github.com/ultrabug/py3status";)
     (synopsis "Extensible i3status wrapper written in Python")
-    (description "py3status is an i3status wrapper which extends i3status
-functionality in a modular way, allowing you to extend your panel with your
-own code, responding to click events and updating clock every second.")
+    (description
+     "py3status is an i3status wrapper which extends i3status functionality in
+a modular way, allowing you to extend your panel with your own code,
+responding to click events and updating clock every second.")
     (license license:bsd-3)))
 
 (define-public python-tblib

Reply via email to