[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/10: gnu: Add wfetch.
From: |
guix-commits |
Subject: |
10/10: gnu: Add wfetch. |
Date: |
Fri, 28 Jan 2022 17:52:44 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 27c1d58d901dcf48929bcb6f76d861fc21575dbf
Author: Petr Hodina <phodina@protonmail.com>
AuthorDate: Tue Jan 11 11:29:23 2022 +0100
gnu: Add wfetch.
* gnu/packages/python-xyz.scm (wfetch): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/python-xyz.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index fc1ff5c80d..aab8b27eef 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -11664,6 +11664,51 @@ Python code formatter \"black\".")
structures.")
(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
(package
(name "python-get-version")
- branch master updated (10d1125f71 -> 27c1d58d90), guix-commits, 2022/01/28
- 03/10: home: 'reconfigure' checks for potential downgrades., guix-commits, 2022/01/28
- 07/10: gnu: Add texlive-textcase., guix-commits, 2022/01/28
- 09/10: gnu: Add python-pyowm., guix-commits, 2022/01/28
- 05/10: gnu: Add texlive-inputenx., guix-commits, 2022/01/28
- 08/10: gnu: Add python-geojson., guix-commits, 2022/01/28
- 01/10: gnu: aseba: Build sequentially and appease Valgrind., guix-commits, 2022/01/28
- 10/10: gnu: Add wfetch.,
guix-commits <=
- 04/10: gnu: Add texlive-hardwrap., guix-commits, 2022/01/28
- 06/10: gnu: Add texlive-greek-fontenc., guix-commits, 2022/01/28
- 02/10: gnu: valgrind: Add version 3.18.1., guix-commits, 2022/01/28