5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
47 lines
882 B
Nix
47 lines
882 B
Nix
{ lib
|
|
, python3
|
|
, fetchFromGitHub
|
|
, nixosTests
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "calendar-cli";
|
|
version = "1.0.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tobixen";
|
|
repo = "calendar-cli";
|
|
rev = "v${version}";
|
|
hash = "sha256-w35ySLnfxXZR/a7BrPLYqXs2kqkuYhh5PcgNxJqjDtE=";
|
|
};
|
|
|
|
build-system = with python3.pkgs; [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = with python3.pkgs; [
|
|
icalendar
|
|
caldav
|
|
pytz
|
|
pyyaml
|
|
tzlocal
|
|
click
|
|
six
|
|
];
|
|
|
|
# tests require networking
|
|
doCheck = false;
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) radicale;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Simple command-line CalDav client";
|
|
homepage = "https://github.com/tobixen/calendar-cli";
|
|
license = licenses.gpl3Plus;
|
|
mainProgram = "calendar-cli";
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|