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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

66 lines
1.5 KiB
Nix
Raw Normal View History

{ lib, stdenv, pkgs, python3, fetchpatch, glibcLocales }:
2015-01-30 16:57:29 +01:00
with python3.pkgs; buildPythonApplication rec {
2017-09-21 13:50:32 +02:00
pname = "khal";
2021-08-15 02:19:09 +02:00
version = "0.10.4";
2015-01-30 16:57:29 +01:00
2017-09-21 13:50:32 +02:00
src = fetchPypi {
inherit pname version;
2021-08-15 02:19:09 +02:00
sha256 = "3fdb980a9a61c0206d7a82b16f77b408a4f341a2b866b9c9fcf6a641850d129f";
2015-01-30 16:57:29 +01:00
};
propagatedBuildInputs = [
2015-01-30 16:57:29 +01:00
atomicwrites
click
click-log
2015-01-30 16:57:29 +01:00
configobj
python-dateutil
2015-01-30 16:57:29 +01:00
icalendar
lxml
pkgs.vdirsyncer
pytz
pyxdg
requests-toolbelt
2015-01-30 16:57:29 +01:00
tzlocal
urwid
2015-07-21 19:00:03 +02:00
pkginfo
freezegun
2015-01-30 16:57:29 +01:00
];
nativeBuildInputs = [ setuptools-scm sphinx sphinxcontrib_newsfeed ];
checkInputs = [
glibcLocales
pytestCheckHook
];
LC_ALL = "en_US.UTF-8";
2018-09-04 12:27:19 +02:00
postInstall = ''
2019-08-19 20:26:08 +02:00
# zsh completion
2018-09-04 12:27:19 +02:00
install -D misc/__khal $out/share/zsh/site-functions/__khal
2019-08-19 20:26:08 +02:00
# man page
PATH="${python3.withPackages (ps: with ps; [ sphinx sphinxcontrib_newsfeed ])}/bin:$PATH" \
2019-08-19 20:26:08 +02:00
make -C doc man
install -Dm755 doc/build/man/khal.1 -t $out/share/man/man1
2019-08-20 07:31:50 +02:00
# desktop
install -Dm755 misc/khal.desktop -t $out/share/applications
2018-09-04 12:27:19 +02:00
'';
2019-03-31 19:08:46 +02:00
doCheck = !stdenv.isAarch64;
disabledTests = [
# This test is failing due to https://github.com/pimutils/khal/issues/1065
"test_print_ics_command"
# Mocking breaks in this testcase
"test_import_from_stdin"
];
2015-01-30 16:57:29 +01:00
meta = with lib; {
homepage = "http://lostpackets.de/khal/";
2015-01-30 16:57:29 +01:00
description = "CLI calendar application";
license = licenses.mit;
maintainers = with maintainers; [ gebner ];
2015-01-30 16:57:29 +01:00
};
}