48 lines
903 B
Nix
48 lines
903 B
Nix
{ stdenv, pkgs, python3 }:
|
|
|
|
with python3.pkgs; buildPythonApplication rec {
|
|
pname = "khal";
|
|
version = "0.10.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1r8bkgjwkh7i8ygvsv51h1cnax50sb183vafg66x5snxf3dgjl6l";
|
|
};
|
|
|
|
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 = !stdenv.isAarch64;
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://lostpackets.de/khal/;
|
|
description = "CLI calendar application";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ gebner ];
|
|
};
|
|
}
|