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

46 lines
930 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgs, python3Packages }:
2015-01-30 15:57:29 +00:00
with python3Packages;
buildPythonApplication rec {
# Reenable tests for 0.9.0, they are broken at the moment: #15981
2016-10-29 12:58:30 +00:00
version = "0.8.4";
2015-01-30 15:57:29 +00:00
name = "khal-${version}";
src = fetchurl {
url = "mirror://pypi/k/khal/khal-${version}.tar.gz";
2016-10-29 12:58:30 +00:00
sha256 = "03vy4dp9n43w51mwqjjy08dr5nj7wxqnb085visz3j43vzm42p1f";
2015-01-30 15:57:29 +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
freezegun
2015-01-30 15:57:29 +00:00
];
buildInputs = [ setuptools_scm pytest pkgs.glibcLocales ];
checkPhase = ''
# py.test
'';
2015-01-30 15:57:29 +00:00
meta = with stdenv.lib; {
2015-01-30 15:57:29 +00:00
homepage = http://lostpackets.de/khal/;
description = "CLI calendar application";
license = licenses.mit;
maintainers = with maintainers; [ matthiasbeyer jgeerds ];
2015-01-30 15:57:29 +00:00
};
}