10 python3.pkgs.buildPythonApplication rec {
14 src = fetchFromGitHub {
18 hash = "sha256-FneJmoAOb7WjSgluCwlspf27IU3MsQZFKryL9OSSsUw=";
21 SETUPTOOLS_SCM_PRETEND_VERSION = version;
26 ] ++ (with python3.pkgs; [
29 sphinxcontrib_newsfeed
32 propagatedBuildInputs = with python3.pkgs;[
50 checkInputs = with python3.pkgs;[
59 # Tests working with latest pytz version, https://github.com/pimutils/khal/pull/1183
61 name = "support-later-pytz.patch";
62 url = "https://github.com/pimutils/khal/commit/53eb8a7426d5c09478c78d809c4df4391438e246.patch";
63 sha256 = "sha256-drGtvJlQ3qFUdeukRWCFycPSZGWG/FSRqnbwJzFKITc=";
72 installShellCompletion --cmd khal \
73 --bash <(_KHAL_COMPLETE=bash_source $out/bin/khal) \
74 --zsh <(_KHAL_COMPLETE=zsh_source $out/bin/khal) \
75 --fish <(_KHAL_COMPLETE=fish_source $out/bin/khal)
78 PATH="${python3.withPackages (ps: with ps; [ sphinx sphinxcontrib_newsfeed ])}/bin:$PATH" \
80 installManPage doc/build/man/khal.1
83 install -Dm755 misc/khal.desktop -t $out/share/applications
86 doCheck = !stdenv.isAarch64;
88 LC_ALL = "en_US.UTF-8";
96 description = "CLI calendar application";
97 homepage = "http://lostpackets.de/khal/";
98 license = licenses.mit;
99 maintainers = with maintainers; [ gebner ];
100 broken = stdenv.isDarwin;