2023-05-25 14:07:31 +00:00
|
|
|
{ lib, python3, fetchPypi, khard, testers }:
|
2015-01-30 16:02:05 +00:00
|
|
|
|
2019-11-09 15:46:08 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2023-12-02 13:48:12 +00:00
|
|
|
version = "0.19.1";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "khard";
|
2015-01-30 16:02:05 +00:00
|
|
|
|
2023-05-25 14:07:31 +00:00
|
|
|
src = fetchPypi {
|
2019-11-09 15:46:08 +00:00
|
|
|
inherit pname version;
|
2023-12-02 13:48:12 +00:00
|
|
|
sha256 = "sha256-WfMKDaPD2j6wT02+GO5HY5E7aF2Z7IQY/VdKiMSRxJA=";
|
2015-01-30 16:02:05 +00:00
|
|
|
};
|
|
|
|
|
2023-08-31 12:27:24 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
setuptools-scm
|
|
|
|
sphinxHook
|
|
|
|
sphinx-autoapi
|
|
|
|
sphinx-autodoc-typehints
|
2021-04-02 15:09:56 +00:00
|
|
|
];
|
|
|
|
|
2023-08-31 12:27:24 +00:00
|
|
|
sphinxBuilders = [ "man" ];
|
|
|
|
|
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
|
2021-11-03 10:10:50 +00:00
|
|
|
ruamel-yaml
|
2018-02-21 13:08:51 +00:00
|
|
|
unidecode
|
2021-11-05 20:04:52 +00:00
|
|
|
vobject
|
2015-01-30 16:02:05 +00:00
|
|
|
];
|
|
|
|
|
2018-09-11 08:29:27 +00:00
|
|
|
postInstall = ''
|
2018-10-04 06:34:04 +00:00
|
|
|
install -D misc/zsh/_khard $out/share/zsh/site-functions/_khard
|
2018-09-11 08:29:27 +00:00
|
|
|
'';
|
|
|
|
|
2020-06-21 18:10:14 +00:00
|
|
|
preCheck = ''
|
|
|
|
# see https://github.com/scheibler/khard/issues/263
|
|
|
|
export COLUMNS=80
|
|
|
|
'';
|
|
|
|
|
2021-11-05 20:04:52 +00:00
|
|
|
pythonImportsCheck = [ "khard" ];
|
|
|
|
|
2022-12-12 19:00:55 +00:00
|
|
|
passthru.tests.version = testers.testVersion { package = khard; };
|
|
|
|
|
2015-01-30 16:02:05 +00:00
|
|
|
meta = {
|
2020-04-05 22:44:43 +00: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 ];
|
2023-08-31 12:27:24 +00:00
|
|
|
mainProgram = "khard";
|
2015-01-30 16:02:05 +00:00
|
|
|
};
|
|
|
|
}
|