1{
2 lib,
3 python3,
4 fetchFromGitHub,
5 nixosTests,
6}:
7
8python3.pkgs.buildPythonApplication rec {
9 pname = "calendar-cli";
10 version = "1.0.1";
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "tobixen";
15 repo = "calendar-cli";
16 rev = "v${version}";
17 hash = "sha256-w35ySLnfxXZR/a7BrPLYqXs2kqkuYhh5PcgNxJqjDtE=";
18 };
19
20 build-system = with python3.pkgs; [
21 setuptools
22 ];
23
24 dependencies = with python3.pkgs; [
25 icalendar
26 caldav
27 pytz
28 pyyaml
29 tzlocal
30 click
31 six
32 ];
33
34 # tests require networking
35 doCheck = false;
36
37 passthru.tests = {
38 inherit (nixosTests) radicale;
39 };
40
41 meta = with lib; {
42 description = "Simple command-line CalDav client";
43 homepage = "https://github.com/tobixen/calendar-cli";
44 license = licenses.gpl3Plus;
45 mainProgram = "calendar-cli";
46 maintainers = with maintainers; [ dotlambda ];
47 };
48}