me
/
guix
Archived
1
0
Fork 0

gnu: wfetch: Give the executable the expected name.

Fixes a problem reported by bdju on #guix:

https://logs.guix.gnu.org/guix/2024-07-26.log#221323

* gnu/packages/python-xyz.scm (wfetch)[arguments]: Rename the executable in the
custom 'install' phase.

Change-Id: I0e8dd41195ef716618b9dd5fd196f392a546272a
master
Leo Famulari 2024-07-26 16:32:16 -04:00
parent 72e586fcae
commit 862a9b5b25
No known key found for this signature in database
GPG Key ID: 6AAC1963757F47FF
1 changed files with 5 additions and 2 deletions

View File

@ -16073,7 +16073,7 @@ structures.")
(define-public wfetch
(let ((commit "e1cfa37814aebc9eb56ce994ebe877b6a6f9a715")
(revision "1"))
(revision "2"))
(package
(name "wfetch")
(version (git-version "0.1-pre" revision commit))
@ -16101,7 +16101,10 @@ structures.")
(mkdir-p share)
(substitute* "wfetch/wfetch.py"
(("os.sep, 'opt', 'wfetch'") (string-append "'" share "'")))
(install-file "wfetch/wfetch.py" bin)
; 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)))))))
(inputs (list python-pyowm python-fire python-termcolor python-requests))
(synopsis "Command-line tool to display weather info")