2021-04-02 16:09:56 +01:00
|
|
|
{ lib, python3 }:
|
2015-01-30 16:02:05 +00:00
|
|
|
|
2019-11-09 15:46:08 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-08-16 16:42:23 +01:00
|
|
|
version = "0.17.0";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "khard";
|
2015-01-30 16:02:05 +00:00
|
|
|
|
2019-11-09 15:46:08 +00:00
|
|
|
src = python3.pkgs.fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 16:42:23 +01:00
|
|
|
sha256 = "062nv4xkfsjc11k9m52dh6xjn9z68a4a6x1s8z05wwv4jbp1lkhn";
|
2015-01-30 16:02:05 +00:00
|
|
|
};
|
|
|
|
|
2021-04-02 16:09:56 +01:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
|
|
python3.pkgs.setuptools-scm
|
|
|
|
];
|
|
|
|
|
2019-11-09 15:46:08 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2016-02-19 15:22:39 +00:00
|
|
|
atomicwrites
|
2015-01-30 16:02:05 +00:00
|
|
|
configobj
|
|
|
|
vobject
|
2018-02-21 13:08:51 +00:00
|
|
|
ruamel_yaml
|
|
|
|
ruamel_base
|
|
|
|
unidecode
|
2015-01-30 16:02:05 +00:00
|
|
|
];
|
|
|
|
|
2018-09-11 09:29:27 +01:00
|
|
|
postInstall = ''
|
2018-10-04 07:34:04 +01:00
|
|
|
install -D misc/zsh/_khard $out/share/zsh/site-functions/_khard
|
2018-09-11 09:29:27 +01:00
|
|
|
'';
|
|
|
|
|
2020-06-21 19:10:14 +01:00
|
|
|
preCheck = ''
|
|
|
|
# see https://github.com/scheibler/khard/issues/263
|
|
|
|
export COLUMNS=80
|
|
|
|
'';
|
|
|
|
|
2015-01-30 16:02:05 +00:00
|
|
|
meta = {
|
2020-04-05 23:44:43 +01:00
|
|
|
homepage = "https://github.com/scheibler/khard";
|
2015-01-30 16:02:05 +00:00
|
|
|
description = "Console carddav client";
|
2021-01-15 05:42:41 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = with lib.maintainers; [ matthiasbeyer ];
|
2015-01-30 16:02:05 +00:00
|
|
|
};
|
|
|
|
}
|