From 1cb1ea2208e1575b3cdf5539644c9e4e435c0fab Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Tue, 11 Jan 2022 11:29:23 +0100 Subject: [PATCH 3/3] gnu: Add wfetch. * gnu/packages/admin.scm (wfetch): New variable. diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 918a07f014..f64e9f6530 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -1859,6 +1859,45 @@ (define-public opendoas (license (list license:bsd-3 ; libbsd/* license:isc)))) ; everything else +(define-public wfetch + (let ((commit "e1cfa37814aebc9eb56ce994ebe877b6a6f9a715") + (revision "1")) + (package + (name "wfetch") + (version (git-version "0.1-pre" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Gcat101/Wfetch") + (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)) + (home-page "https://github.com/zJairO/wfetch") + (synopsis "Neofetch/pfetch, but for weather") + (description "This package provides Neofetch/pfetch, but for weather. +In order to use you must export WEATHER_CLI_API=.") + (license license:gpl3+)))) + (define-public wpa-supplicant-minimal (package (name "wpa-supplicant-minimal") -- 2.34.0