11 python = python3.override {
12 packageOverrides = self: super: {
13 # https://github.com/pimutils/khal/issues/1361
14 icalendar = super.icalendar.overridePythonAttrs (old: rec {
16 src = fetchFromGitHub {
19 rev = "refs/tags/v${version}";
20 hash = "sha256-2gpWfLXR4HThw23AWxY2rY9oiK6CF3Qiad8DWHCs4Qk=";
23 build-system = with self; [ setuptools ];
24 dependencies = with self; [
32 python.pkgs.buildPythonApplication rec {
37 src = fetchFromGitHub {
40 rev = "refs/tags/v${version}";
41 hash = "sha256-YP2kQ/qXPDwvFvlHf+A2Ymvk49dmt5tAnTaOhrOV92M=";
44 build-system = with python.pkgs; [
54 dependencies = with python.pkgs; [
72 nativeCheckInputs = with python.pkgs; [
82 installShellCompletion --cmd khal \
83 --bash <(_KHAL_COMPLETE=bash_source $out/bin/khal) \
84 --zsh <(_KHAL_COMPLETE=zsh_source $out/bin/khal) \
85 --fish <(_KHAL_COMPLETE=fish_source $out/bin/khal)
89 python3.withPackages (
92 sphinxcontrib-newsfeed
97 installManPage doc/build/man/khal.1
100 install -Dm755 misc/khal.desktop -t $out/share/applications
103 doCheck = !stdenv.hostPlatform.isAarch64;
105 env.LC_ALL = "en_US.UTF-8";
115 description = "CLI calendar application";
116 homepage = "http://lostpackets.de/khal/";
117 changelog = "https://github.com/pimutils/khal/releases/tag/v${version}";
118 license = licenses.mit;
119 maintainers = with maintainers; [ gebner ];