about summary refs log tree commit diff
path: root/pkgs/tools/misc/ical2orgpy/default.nix
blob: ac5607b4a819fede32b1d3163e87c0d1201d6043 (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
40
41
42
43
{ lib
, python3
, fetchFromGitHub
}:

python3.pkgs.buildPythonApplication rec {
  pname = "ical2orgpy";
  version = "0.5";

  format = "setuptools";

  src = fetchFromGitHub {
    owner = "ical2org-py";
    repo = "ical2org.py";
    rev = version;
    hash = "sha256-vBi1WYXMuDFS/PnwFQ/fqN5+gIvtylXidfZklyd6LcI=";
  };

  propagatedBuildInputs = with python3.pkgs; [
    click
    future
    icalendar
    pytz
    tzlocal
    recurring-ical-events
  ];

  nativeCheckInputs = with python3.pkgs; [
    freezegun
    pytestCheckHook
    pyyaml
  ];

  meta = with lib; {
    changelog = "https://github.com/ical2org-py/ical2org.py/blob/${src.rev}/CHANGELOG.rst";
    description = "Converting ICAL file into org-mode format";
    homepage = "https://github.com/ical2org-py/ical2org.py";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ StillerHarpo ];
    mainProgram = "ical2orgpy";
  };

}