2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
2023-10-09 19:29:22 +00:00
|
|
|
, nixosTests
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "calendar-cli";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.0.1";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tobixen";
|
|
|
|
repo = "calendar-cli";
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-w35ySLnfxXZR/a7BrPLYqXs2kqkuYhh5PcgNxJqjDtE=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
icalendar
|
|
|
|
caldav
|
|
|
|
pytz
|
2023-10-09 19:29:22 +00:00
|
|
|
pyyaml
|
2021-05-20 23:08:51 +00:00
|
|
|
tzlocal
|
2022-12-02 08:20:57 +00:00
|
|
|
click
|
2021-05-20 23:08:51 +00:00
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
# tests require networking
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) radicale;
|
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple command-line CalDav client";
|
|
|
|
homepage = "https://github.com/tobixen/calendar-cli";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|