nixpkgs/pkgs/applications/misc/khal/default.nix

51 lines
1000 B
Nix
Raw Normal View History

2018-06-29 16:57:30 +00:00
{ stdenv, pkgs, python3 }:
2015-01-30 15:57:29 +00:00
with python3.pkgs; buildPythonApplication rec {
2017-09-21 11:50:32 +00:00
pname = "khal";
version = "0.9.10";
2015-01-30 15:57:29 +00:00
2017-09-21 11:50:32 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "03h0j0d3xyqh98x5v2gv63wv3g91hip3vsaxvybsn5iz331d23h4";
2015-01-30 15:57:29 +00:00
};
LC_ALL = "en_US.UTF-8";
propagatedBuildInputs = [
2015-01-30 15:57:29 +00:00
atomicwrites
click
configobj
dateutil
icalendar
lxml
pkgs.vdirsyncer
pytz
pyxdg
requests_toolbelt
tzlocal
urwid
2015-07-21 17:00:03 +00:00
pkginfo
freezegun
2015-01-30 15:57:29 +00:00
];
2018-06-29 16:57:30 +00:00
nativeBuildInputs = [ setuptools_scm pkgs.glibcLocales ];
checkInputs = [ pytest ];
2018-09-04 10:27:19 +00:00
postInstall = ''
install -D misc/__khal $out/share/zsh/site-functions/__khal
'';
# One test fails as of 0.9.10 due to the upgrade to icalendar 4.0.3
doCheck = false;
checkPhase = ''
2018-06-29 16:57:30 +00:00
py.test
'';
2015-01-30 15:57:29 +00:00
meta = with stdenv.lib; {
2015-01-30 15:57:29 +00:00
homepage = http://lostpackets.de/khal/;
description = "CLI calendar application";
license = licenses.mit;
maintainers = with maintainers; [ jgeerds gebner ];
2015-01-30 15:57:29 +00:00
};
}