about summary refs log tree commit diff
path: root/pkgs/applications/misc/termdown/default.nix
blob: 631fc08e95eeb8ac6b720976db4bc7614df66f7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchFromGitHub, buildPythonApplication,
click, pyfiglet, dateutil}:

with stdenv.lib;

buildPythonApplication rec {

  name    = "termdown-${version}";
  version = "1.11.0";

  src = fetchFromGitHub {
    rev    = "d1e3504e02ad49013595112cb03fbf175822e58d";
    sha256 = "1i6fxymg52q95n0cbm4imdxh6yvpj3q57yf7w9z5d9pr35cf1iq5";
    repo   = "termdown";
    owner  = "trehn";
  };

  propagatedBuildInputs = [ dateutil click pyfiglet ];

  meta = with stdenv.lib; {
    description     = "Starts a countdown to or from TIMESPEC";
    longDescription = "Countdown timer and stopwatch in your terminal";
    homepage        = https://github.com/trehn/termdown;
    license         = licenses.gpl3;
    platforms       = platforms.all;
  };
}