2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, pkgs, python3, fetchpatch, glibcLocales }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
with python3.pkgs; buildPythonApplication rec {
|
|
|
|
pname = "khal";
|
2021-08-18 13:19:15 +00:00
|
|
|
version = "0.10.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-18 13:19:15 +00:00
|
|
|
sha256 = "3fdb980a9a61c0206d7a82b16f77b408a4f341a2b866b9c9fcf6a641850d129f";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
atomicwrites
|
|
|
|
click
|
|
|
|
click-log
|
|
|
|
configobj
|
2021-07-04 02:40:35 +00:00
|
|
|
python-dateutil
|
2020-04-24 23:36:52 +00:00
|
|
|
icalendar
|
|
|
|
lxml
|
|
|
|
pkgs.vdirsyncer
|
|
|
|
pytz
|
|
|
|
pyxdg
|
2021-07-24 12:14:16 +00:00
|
|
|
requests-toolbelt
|
2020-04-24 23:36:52 +00:00
|
|
|
tzlocal
|
|
|
|
urwid
|
|
|
|
pkginfo
|
|
|
|
freezegun
|
|
|
|
];
|
2021-06-04 09:07:49 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm sphinx sphinxcontrib_newsfeed ];
|
2021-07-14 22:03:04 +00:00
|
|
|
checkInputs = [
|
|
|
|
glibcLocales
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# zsh completion
|
|
|
|
install -D misc/__khal $out/share/zsh/site-functions/__khal
|
|
|
|
|
|
|
|
# man page
|
|
|
|
PATH="${python3.withPackages (ps: with ps; [ sphinx sphinxcontrib_newsfeed ])}/bin:$PATH" \
|
|
|
|
make -C doc man
|
|
|
|
install -Dm755 doc/build/man/khal.1 -t $out/share/man/man1
|
|
|
|
|
|
|
|
# desktop
|
|
|
|
install -Dm755 misc/khal.desktop -t $out/share/applications
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = !stdenv.isAarch64;
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
disabledTests = [
|
|
|
|
# This test is failing due to https://github.com/pimutils/khal/issues/1065
|
|
|
|
"test_print_ics_command"
|
|
|
|
|
|
|
|
# Mocking breaks in this testcase
|
|
|
|
"test_import_from_stdin"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://lostpackets.de/khal/";
|
|
|
|
description = "CLI calendar application";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
|
|
|
}
|