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

49 lines
903 B
Nix
Raw Normal View History

2018-06-29 09:57:30 -07:00
{ stdenv, pkgs, python3 }:
2015-01-30 07:57:29 -08:00
with python3.pkgs; buildPythonApplication rec {
2017-09-21 04:50:32 -07:00
pname = "khal";
2019-03-30 10:58:32 -07:00
version = "0.10.1";
2015-01-30 07:57:29 -08:00
2017-09-21 04:50:32 -07:00
src = fetchPypi {
inherit pname version;
2019-03-30 10:58:32 -07:00
sha256 = "1r8bkgjwkh7i8ygvsv51h1cnax50sb183vafg66x5snxf3dgjl6l";
2015-01-30 07:57:29 -08:00
};
propagatedBuildInputs = [
2015-01-30 07:57:29 -08:00
atomicwrites
click
click-log
2015-01-30 07:57:29 -08:00
configobj
dateutil
icalendar
lxml
pkgs.vdirsyncer
pytz
pyxdg
requests_toolbelt
tzlocal
urwid
2015-07-21 10:00:03 -07:00
pkginfo
freezegun
2015-01-30 07:57:29 -08:00
];
nativeBuildInputs = [ setuptools_scm ];
2018-06-29 09:57:30 -07:00
checkInputs = [ pytest ];
2018-09-04 03:27:19 -07:00
postInstall = ''
install -D misc/__khal $out/share/zsh/site-functions/__khal
'';
2019-03-31 10:08:46 -07:00
doCheck = !stdenv.isAarch64;
checkPhase = ''
2018-06-29 09:57:30 -07:00
py.test
'';
2015-01-30 07:57:29 -08:00
meta = with stdenv.lib; {
2015-01-30 07:57:29 -08:00
homepage = http://lostpackets.de/khal/;
description = "CLI calendar application";
license = licenses.mit;
maintainers = with maintainers; [ gebner ];
2015-01-30 07:57:29 -08:00
};
}