blob: 8ad7578adebb2ac2181c4a45ae6057f85cd29573 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{ lib, stdenv, pkgs, python3, fetchpatch, glibcLocales }:
with python3.pkgs; buildPythonApplication rec {
pname = "khal";
version = "0.10.3";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-L92PwU/ll+Wn1unGPHho2WC07QIbVjxoSnHwcJDtpDI=";
};
propagatedBuildInputs = [
atomicwrites
click
click-log
configobj
python-dateutil
icalendar
lxml
pkgs.vdirsyncer
pytz
pyxdg
requests-toolbelt
tzlocal
urwid
pkginfo
freezegun
];
nativeBuildInputs = [ setuptools-scm sphinx sphinxcontrib_newsfeed ];
checkInputs = [
glibcLocales
pytestCheckHook
];
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;
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"
];
meta = with lib; {
homepage = "http://lostpackets.de/khal/";
description = "CLI calendar application";
license = licenses.mit;
maintainers = with maintainers; [ gebner ];
};
}
|