2017-09-21 12:50:32 +01:00
|
|
|
{ stdenv, pkgs, python3Packages }:
|
2015-01-30 15:57:29 +00:00
|
|
|
|
2016-05-22 17:34:14 +01:00
|
|
|
with python3Packages;
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2017-09-21 12:50:32 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "khal";
|
2017-09-20 12:03:19 +01:00
|
|
|
version = "0.9.7";
|
2015-01-30 15:57:29 +00:00
|
|
|
|
2017-09-21 12:50:32 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-09-20 12:03:19 +01:00
|
|
|
sha256 = "0x1p62ff7ggb172rjr6sbdrjh1gl3ck3bwxsqlsix8i5wycwvnmv";
|
2015-01-30 15:57:29 +00:00
|
|
|
};
|
|
|
|
|
2016-05-22 17:34:14 +01: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 18:00:03 +01:00
|
|
|
pkginfo
|
2016-05-22 17:34:14 +01:00
|
|
|
freezegun
|
2015-01-30 15:57:29 +00:00
|
|
|
];
|
2016-05-22 17:34:14 +01:00
|
|
|
buildInputs = [ setuptools_scm pytest pkgs.glibcLocales ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2016-06-18 07:19:57 +01:00
|
|
|
# py.test
|
2016-05-22 17:34:14 +01:00
|
|
|
'';
|
2015-01-30 15:57:29 +00:00
|
|
|
|
2015-05-30 00:26:29 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-01-30 15:57:29 +00:00
|
|
|
homepage = http://lostpackets.de/khal/;
|
|
|
|
description = "CLI calendar application";
|
2015-05-30 00:26:29 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ matthiasbeyer jgeerds ];
|
2015-01-30 15:57:29 +00:00
|
|
|
};
|
|
|
|
}
|