mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add wfetch.
* gnu/packages/python-xyz.scm (wfetch): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
c9c8d75f97
commit
27c1d58d90
1 changed files with 45 additions and 0 deletions
|
@ -11664,6 +11664,51 @@ Python code formatter \"black\".")
|
||||||
structures.")
|
structures.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
|
(define-public wfetch
|
||||||
|
(let ((commit "e1cfa37814aebc9eb56ce994ebe877b6a6f9a715")
|
||||||
|
(revision "1"))
|
||||||
|
(package
|
||||||
|
(name "wfetch")
|
||||||
|
(version (git-version "0.1-pre" revision commit))
|
||||||
|
(home-page "https://github.com/Gcat101/Wfetch")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference (url home-page)
|
||||||
|
(commit commit)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "1dmr85plx8zr6s14ym3r32g6crwxghkval5a24ah90ijx4dbn5q5"))))
|
||||||
|
(build-system python-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 "'")))
|
||||||
|
(install-file "wfetch/wfetch.py" bin)
|
||||||
|
(copy-recursively "wfetch/icons" share)))))))
|
||||||
|
(inputs (list python-pyowm python-fire python-termcolor python-requests))
|
||||||
|
(synopsis "Command-line tool to display weather info")
|
||||||
|
(description
|
||||||
|
"This package provides a tool similar to Neofetch/pfetch, but for
|
||||||
|
weather: it can display the weather condition, temperature, humidity, etc.
|
||||||
|
|
||||||
|
To use it, you must first run:
|
||||||
|
|
||||||
|
@example
|
||||||
|
export WEATHER_CLI_API=@var{your OpenWeatherMap API key}
|
||||||
|
@end example\n")
|
||||||
|
(license license:gpl3+))))
|
||||||
|
|
||||||
(define-public python-get-version
|
(define-public python-get-version
|
||||||
(package
|
(package
|
||||||
(name "python-get-version")
|
(name "python-get-version")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue