2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, pkgs, python3, fetchpatch, glibcLocales }:
|
2015-01-30 15:57:29 +00:00
|
|
|
|
2018-10-30 17:27:52 +00:00
|
|
|
with python3.pkgs; buildPythonApplication rec {
|
2017-09-21 11:50:32 +00:00
|
|
|
pname = "khal";
|
2021-04-27 19:06:06 +00:00
|
|
|
version = "0.10.3";
|
2015-01-30 15:57:29 +00:00
|
|
|
|
2017-09-21 11:50:32 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-27 19:06:06 +00:00
|
|
|
sha256 = "sha256-L92PwU/ll+Wn1unGPHho2WC07QIbVjxoSnHwcJDtpDI=";
|
2015-01-30 15:57:29 +00:00
|
|
|
};
|
|
|
|
|
2016-05-22 16:34:14 +00:00
|
|
|
propagatedBuildInputs = [
|
2015-01-30 15:57:29 +00:00
|
|
|
atomicwrites
|
|
|
|
click
|
2019-03-26 00:14:30 +00:00
|
|
|
click-log
|
2015-01-30 15:57:29 +00:00
|
|
|
configobj
|
2021-07-03 11:37:24 +00:00
|
|
|
python-dateutil
|
2015-01-30 15:57:29 +00:00
|
|
|
icalendar
|
|
|
|
lxml
|
|
|
|
pkgs.vdirsyncer
|
|
|
|
pytz
|
|
|
|
pyxdg
|
|
|
|
requests_toolbelt
|
|
|
|
tzlocal
|
|
|
|
urwid
|
2015-07-21 17:00:03 +00:00
|
|
|
pkginfo
|
2016-05-22 16:34:14 +00:00
|
|
|
freezegun
|
2015-01-30 15:57:29 +00:00
|
|
|
];
|
2021-06-03 10:09:11 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm sphinx sphinxcontrib_newsfeed ];
|
2021-07-02 06:34:26 +00:00
|
|
|
checkInputs = [
|
|
|
|
glibcLocales
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-01-06 16:28:46 +00:00
|
|
|
LC_ALL = "en_US.UTF-8";
|
2016-05-22 16:34:14 +00:00
|
|
|
|
2018-09-04 10:27:19 +00:00
|
|
|
postInstall = ''
|
2019-08-19 18:26:08 +00:00
|
|
|
# zsh completion
|
2018-09-04 10:27:19 +00:00
|
|
|
install -D misc/__khal $out/share/zsh/site-functions/__khal
|
2019-08-19 18:26:08 +00:00
|
|
|
|
|
|
|
# man page
|
2019-10-23 17:07:53 +00:00
|
|
|
PATH="${python3.withPackages (ps: with ps; [ sphinx sphinxcontrib_newsfeed ])}/bin:$PATH" \
|
2019-08-19 18:26:08 +00:00
|
|
|
make -C doc man
|
|
|
|
install -Dm755 doc/build/man/khal.1 -t $out/share/man/man1
|
2019-08-20 05:31:50 +00:00
|
|
|
|
|
|
|
# desktop
|
|
|
|
install -Dm755 misc/khal.desktop -t $out/share/applications
|
2018-09-04 10:27:19 +00:00
|
|
|
'';
|
|
|
|
|
2019-03-31 17:08:46 +00:00
|
|
|
doCheck = !stdenv.isAarch64;
|
2018-10-30 17:27:52 +00:00
|
|
|
|
2021-07-02 06:34:26 +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"
|
|
|
|
];
|
2015-01-30 15:57:29 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://lostpackets.de/khal/";
|
2015-01-30 15:57:29 +00:00
|
|
|
description = "CLI calendar application";
|
2015-05-29 23:26:29 +00:00
|
|
|
license = licenses.mit;
|
2019-03-12 22:45:33 +00:00
|
|
|
maintainers = with maintainers; [ gebner ];
|
2015-01-30 15:57:29 +00:00
|
|
|
};
|
|
|
|
}
|