From 1cde09675eeb835b85fed4d80723a8e208fe0ecb Mon Sep 17 00:00:00 2001 From: Abhishek Cherath Date: Thu, 27 Feb 2025 15:44:33 +0100 Subject: [PATCH] gnu: Add termdown. * gnu/packages/time.scm (termdown): New variable. Change-Id: I1532cb6828437bb6a4a6416237454529e4de1e07 Signed-off-by: Nicolas Goaziou --- gnu/packages/time.scm | 39 +++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm index 46e78c7ab7..56053da501 100644 --- a/gnu/packages/time.scm +++ b/gnu/packages/time.scm @@ -70,18 +70,45 @@ #:use-module (guix licenses) #:use-module (guix packages)) +(define-public termdown + (package + (name "termdown") + (version "1.18.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "termdown" version)) + (sha256 + (base32 + "07nxsqpwnpr9jkvif2ngjlcq05z0ldnmqxd15d1l593lzmxdyrci")))) + (build-system pyproject-build-system) + (native-inputs + (list python-setuptools python-wheel)) + (propagated-inputs + (list python-click + python-pyfiglet + python-dateutil)) + (home-page "https://github.com/trehn/termdown") + (synopsis "Countdown timer for your terminal") + (description + "Termdown provides a fancy text display while it counts down to zero from +a starting point you provide. The user can pause and resume the countdown +from the text user interface. It can also be used in stop watch mode which +counts forward or for just showing the current time.") + (license gpl3))) + (define-public time (package (name "time") (version "1.9") (source (origin - (method url-fetch) - (uri (string-append "mirror://gnu/time/time-" - version ".tar.gz")) - (sha256 - (base32 - "07jj7cz6lc13iqrpgn81ivqh8rkm73p4rnivwgrrshk23v4g1b7v")))) + (method url-fetch) + (uri (string-append "mirror://gnu/time/time-" + version ".tar.gz")) + (sha256 + (base32 + "07jj7cz6lc13iqrpgn81ivqh8rkm73p4rnivwgrrshk23v4g1b7v")))) (build-system gnu-build-system) (home-page "https://www.gnu.org/software/time/") (synopsis "Run a command, then display its resource usage")