about summary refs log tree commit diff
path: root/pkgs/applications/misc/calcure/default.nix
blob: f9a2fc9d8a38841354567de1b336976acc905052 (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
, python3
, fetchFromGitHub
}:

python3.pkgs.buildPythonApplication rec {
  pname = "calcure";
  version = "3.0.1";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "anufrievroman";
    repo = "calcure";
    rev = version;
    hash = "sha256-rs3TCZjMndeh2N7e+U62baLs+XqWK1Mk7KVnypSnWPg=";
  };

  nativeBuildInputs = [
    python3.pkgs.setuptools
    python3.pkgs.wheel
  ];

  propagatedBuildInputs = with python3.pkgs; [
    jdatetime
    holidays
    icalendar
    ics
    attrs
  ];

  pythonImportsCheck = [ "calcure" ];

  meta = with lib; {
    description = "Modern TUI calendar and task manager with minimal and customizable UI";
    homepage = "https://github.com/anufrievroman/calcure";
    license = licenses.mit;
    maintainers = with maintainers; [ dit7ya ];
  };
}