about summary refs log tree commit diff
path: root/pkgs/tools/misc/past-time/default.nix
blob: 3604e4ddcb4a7e7a053ba91fbaaa2af7f4b90e52 (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
28
29
30
31
32
33
34
35
36
37
38
39
{ lib
, buildPythonApplication
, click
, fetchFromGitHub
, freezegun
, pytestCheckHook
, tqdm
}:

buildPythonApplication rec {
  pname = "past-time";
  version = "0.2.1";

  src = fetchFromGitHub {
    owner = "fabaff";
    repo = pname;
    rev = version;
    sha256 = "0yhc0630rmcx4ia9y6klpx002mavfmqf1s3jb2gz54jlccwqbfgl";
  };

  propagatedBuildInputs = [
    click
    tqdm
  ];

  checkInputs = [
    freezegun
    pytestCheckHook
  ];

  pythonImportsCheck = [ "past_time" ];

  meta = with lib; {
    description = "Tool to visualize the progress of the year based on the past days";
    homepage = "https://github.com/fabaff/past-time";
    license = with licenses; [ asl20 ];
    maintainers = with maintainers; [ fab ];
  };
}