nixpkgs/pkgs/applications/misc/khal/default.nix
Will Dietz ad91dca851 khal: 0.9.10 -> 0.10.0
https://github.com/pimutils/khal/releases/tag/v0.10.0

* new dep, click-log
* enable tests (pass!)

Release notes mention 'only dateutil < 2.7 is supported',
which may be a problem as ours is currently 2.8.

There's a history of python-dateutil version particularity
in previous releases (such as 0.9.10 upgrading from),
unsure if should override to older or if it's just a suggestion.
2019-03-25 22:36:42 -05:00

51 lines
913 B
Nix

{ stdenv, pkgs, python3 }:
with python3.pkgs; buildPythonApplication rec {
pname = "khal";
version = "0.10.0";
src = fetchPypi {
inherit pname version;
sha256 = "1p49f3g25x900vk32spjbr2aipj12kcbhayny2vwhdpkjlv6k396";
};
LC_ALL = "C.UTF-8";
propagatedBuildInputs = [
atomicwrites
click
click-log
configobj
dateutil
icalendar
lxml
pkgs.vdirsyncer
pytz
pyxdg
requests_toolbelt
tzlocal
urwid
pkginfo
freezegun
];
nativeBuildInputs = [ setuptools_scm ];
checkInputs = [ pytest ];
postInstall = ''
install -D misc/__khal $out/share/zsh/site-functions/__khal
'';
doCheck = true;
checkPhase = ''
py.test
'';
meta = with stdenv.lib; {
homepage = http://lostpackets.de/khal/;
description = "CLI calendar application";
license = licenses.mit;
maintainers = with maintainers; [ gebner ];
};
}