forked from mirrors/nixpkgs
60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{ stdenv, pkgs, python3 }:
|
|
|
|
let
|
|
python = python3.override {
|
|
packageOverrides = self: super: {
|
|
|
|
# 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 {
|
|
pname = "khal";
|
|
version = "0.9.9";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0dq9aqb9pqjfqrnfg43mhpb7m0szmychxy1ydb3lwzf3500c9rsh";
|
|
};
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
propagatedBuildInputs = [
|
|
atomicwrites
|
|
click
|
|
configobj
|
|
dateutil
|
|
icalendar
|
|
lxml
|
|
pkgs.vdirsyncer
|
|
pytz
|
|
pyxdg
|
|
requests_toolbelt
|
|
tzlocal
|
|
urwid
|
|
pkginfo
|
|
freezegun
|
|
];
|
|
nativeBuildInputs = [ setuptools_scm pkgs.glibcLocales ];
|
|
checkInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://lostpackets.de/khal/;
|
|
description = "CLI calendar application";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jgeerds ];
|
|
};
|
|
}
|