2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchurl, glibcLocales, python3 }:
|
2015-01-30 17:02:05 +01:00
|
|
|
|
2018-07-03 17:08:47 +02:00
|
|
|
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 {
|
2018-02-21 14:08:51 +01:00
|
|
|
version = "0.12.2";
|
2015-01-30 17:02:05 +01:00
|
|
|
name = "khard-${version}";
|
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/scheibler/khard/archive/v${version}.tar.gz";
|
2018-02-21 14:08:51 +01:00
|
|
|
sha256 = "0lxcvzmafpvqcifgq2xjh1ca07z0vhihn5jnw8zrpmsqdc9p6b4j";
|
2015-01-30 17:02:05 +01:00
|
|
|
};
|
|
|
|
|
2016-07-31 10:14:13 +02:00
|
|
|
# setup.py reads the UTF-8 encoded readme.
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
buildInputs = [ glibcLocales ];
|
|
|
|
|
2018-07-03 17:08:47 +02:00
|
|
|
propagatedBuildInputs = [
|
2016-02-19 16:22:39 +01:00
|
|
|
atomicwrites
|
2015-01-30 17:02:05 +01:00
|
|
|
configobj
|
|
|
|
vobject
|
|
|
|
argparse
|
2018-02-21 14:08:51 +01:00
|
|
|
ruamel_yaml
|
|
|
|
ruamel_base
|
|
|
|
unidecode
|
2015-01-30 17:02:05 +01:00
|
|
|
];
|
|
|
|
|
2018-09-11 10:29:27 +02:00
|
|
|
postInstall = ''
|
2018-10-04 08:34:04 +02:00
|
|
|
install -D misc/zsh/_khard $out/share/zsh/site-functions/_khard
|
2018-09-11 10:29:27 +02:00
|
|
|
'';
|
|
|
|
|
2016-07-31 10:14:13 +02:00
|
|
|
# Fails; but there are no tests anyway.
|
|
|
|
doCheck = false;
|
|
|
|
|
2015-01-30 17:02:05 +01:00
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/scheibler/khard;
|
|
|
|
description = "Console carddav client";
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2018-04-06 10:57:19 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ ];
|
2015-01-30 17:02:05 +01:00
|
|
|
};
|
|
|
|
}
|