nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 buildPythonApplication,
5 click,
6 pyfiglet,
7 python-dateutil,
8 setuptools,
9}:
10
11buildPythonApplication rec {
12 pname = "termdown";
13 version = "1.18.0";
14 format = "setuptools";
15
16 src = fetchFromGitHub {
17 owner = "trehn";
18 repo = "termdown";
19 tag = version;
20 hash = "sha256-Hnk/MOYdbOl14fI0EFbIq7Hmc7TyhcZWGEg2/jmNJ5Y=";
21 };
22
23 dependencies = [
24 python-dateutil
25 click
26 pyfiglet
27 setuptools
28 ];
29
30 meta = {
31 description = "Starts a countdown to or from TIMESPEC";
32 mainProgram = "termdown";
33 longDescription = "Countdown timer and stopwatch in your terminal";
34 homepage = "https://github.com/trehn/termdown";
35 license = lib.licenses.gpl3;
36 };
37}