2018-06-29 16:57:30 +00:00
|
|
|
{ stdenv, pkgs, python3 }:
|
2015-01-30 15:57:29 +00:00
|
|
|
|
2018-06-29 16:57:30 +00:00
|
|
|
let
|
|
|
|
python = python3.override {
|
|
|
|
packageOverrides = self: super: {
|
2016-05-22 16:34:14 +00:00
|
|
|
|
2018-06-29 16:57:30 +00:00
|
|
|
# https://github.com/pimutils/khal/issues/780
|
|
|
|
python-dateutil = super.python-dateutil.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "2.6.1";
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "891c38b2a02f5bb1be3e4793866c8df49c7d19baabf9c1bad62547e0b4866aca";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in with python.pkgs; buildPythonApplication rec {
|
2017-09-21 11:50:32 +00:00
|
|
|
pname = "khal";
|
2018-05-30 23:18:24 +00:00
|
|
|
version = "0.9.9";
|
2015-01-30 15:57:29 +00:00
|
|
|
|
2017-09-21 11:50:32 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-05-30 23:18:24 +00:00
|
|
|
sha256 = "0dq9aqb9pqjfqrnfg43mhpb7m0szmychxy1ydb3lwzf3500c9rsh";
|
2015-01-30 15:57:29 +00:00
|
|
|
};
|
|
|
|
|
2016-05-22 16:34:14 +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
|
2016-05-22 16:34:14 +00:00
|
|
|
freezegun
|
2015-01-30 15:57:29 +00:00
|
|
|
];
|
2018-06-29 16:57:30 +00:00
|
|
|
nativeBuildInputs = [ setuptools_scm pkgs.glibcLocales ];
|
|
|
|
checkInputs = [ pytest ];
|
2016-05-22 16:34:14 +00:00
|
|
|
|
2018-09-04 10:27:19 +00:00
|
|
|
postInstall = ''
|
|
|
|
install -D misc/__khal $out/share/zsh/site-functions/__khal
|
|
|
|
'';
|
|
|
|
|
2016-05-22 16:34:14 +00:00
|
|
|
checkPhase = ''
|
2018-06-29 16:57:30 +00:00
|
|
|
py.test
|
2016-05-22 16:34:14 +00:00
|
|
|
'';
|
2015-01-30 15:57:29 +00:00
|
|
|
|
2015-05-29 23:26:29 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-01-30 15:57:29 +00:00
|
|
|
homepage = http://lostpackets.de/khal/;
|
|
|
|
description = "CLI calendar application";
|
2015-05-29 23:26:29 +00:00
|
|
|
license = licenses.mit;
|
2018-04-06 08:57:19 +00:00
|
|
|
maintainers = with maintainers; [ jgeerds ];
|
2015-01-30 15:57:29 +00:00
|
|
|
};
|
|
|
|
}
|