guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 40cd075186b6d0721f165bb15fd8d054cb983c8e
Author: Nicolas Graves <[email protected]>
AuthorDate: Sat Sep 6 17:47:17 2025 +0200

    gnu: wfetch: Switch to pyproject.
    
    * gnu/packages/python-xyz.scm (wfetch):
    [build-system]: Switch to pyproject-build-system.
    [arguments]<#:phases>: Improve style.
    <#:use-setuptools?>: Unset.
    [native-inputs]: Add python-setuptools-next.
    
    Change-Id: I9b8fa66a3ff0ef20adcda3541918ce0b85e8e4f6
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-xyz.scm | 47 ++++++++++++++++++++++++---------------------
 1 file changed, 25 insertions(+), 22 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index db58f612cb..c7dbd6566c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -18016,31 +18016,33 @@ structures.")
       (source
        (origin
          (method git-fetch)
-         (uri (git-reference (url home-page)
-                             (commit commit)))
+         (uri (git-reference
+               (url home-page)
+               (commit commit)))
          (file-name (git-file-name name version))
          (sha256
           (base32 "1dmr85plx8zr6s14ym3r32g6crwxghkval5a24ah90ijx4dbn5q5"))))
-      (build-system python-build-system)
+      (build-system pyproject-build-system)
       (arguments
-       `(#:use-setuptools? #f           ; no setup.py
-         #:tests? #f                    ; no test suite
-         #:phases
-         (modify-phases %standard-phases
-           (delete 'build)
-           (replace 'install
-             (lambda* (#:key outputs #:allow-other-keys)
-               (let* ((out (assoc-ref outputs "out"))
-                      (bin (string-append out "/bin"))
-                      (share (string-append out "/share")))
-                 (mkdir-p share)
-                 (substitute* "wfetch/wfetch.py"
-                   (("os.sep, 'opt', 'wfetch'") (string-append "'" share "'")))
-                 ; The documentation expects the executable to be named
-                 ; 'wfetch', not 'wfetch.py'.
-                 (rename-file "wfetch/wfetch.py" "wfetch/wfetch")
-                 (install-file "wfetch/wfetch" bin)
-                 (copy-recursively "wfetch/icons" share)))))))
+       (list
+        #:tests? #f ;no test suite
+        #:phases
+        #~(modify-phases %standard-phases
+            (delete 'build)
+            (replace 'install
+              (lambda _
+                (let ((bin (string-append #$output "/bin"))
+                      (share (string-append #$output "/share")))
+                  (mkdir-p share)
+                  (substitute* "wfetch/wfetch.py"
+                    (("os.sep, 'opt', 'wfetch'")
+                     (string-append "'" share "'")))
+                  ;; The documentation expects the executable to be named
+                  ;; 'wfetch', not 'wfetch.py'.
+                  (rename-file "wfetch/wfetch.py" "wfetch/wfetch")
+                  (install-file "wfetch/wfetch" bin)
+                  (copy-recursively "wfetch/icons" share)))))))
+      (native-inputs (list python-setuptools-next))
       (inputs (list python-pyowm python-fire python-termcolor python-requests))
       (synopsis "Command-line tool to display weather info")
       (description
@@ -18051,7 +18053,8 @@ To use it, you must first run:
 
 @example
 export WEATHER_CLI_API=@var{your OpenWeatherMap API key}
-@end example\n")
+@end example
+")
       (license license:gpl3+))))
 
 (define-public python-get-version

Reply via email to