Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchPypi,
|
|
khard,
|
|
testers,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "khard";
|
|
version = "0.20.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-F48yzPAcBQtc2ec2KCWD3ppkRf2Y4AOI33kiB2KbvdA=";
|
|
};
|
|
|
|
build-system = with python3.pkgs; [
|
|
setuptools
|
|
setuptools-scm
|
|
sphinxHook
|
|
sphinx-argparse
|
|
sphinx-autoapi
|
|
sphinx-autodoc-typehints
|
|
];
|
|
|
|
sphinxBuilders = [ "man" ];
|
|
|
|
dependencies = with python3.pkgs; [
|
|
configobj
|
|
ruamel-yaml
|
|
unidecode
|
|
vobject
|
|
];
|
|
|
|
postInstall = ''
|
|
install -D misc/zsh/_khard $out/share/zsh/site-functions/_khard
|
|
'';
|
|
|
|
preCheck = ''
|
|
# see https://github.com/scheibler/khard/issues/263
|
|
export COLUMNS=80
|
|
'';
|
|
|
|
pythonImportsCheck = [ "khard" ];
|
|
|
|
passthru.tests.version = testers.testVersion { package = khard; };
|
|
|
|
meta = {
|
|
homepage = "https://github.com/scheibler/khard";
|
|
description = "Console carddav client";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = with lib.maintainers; [ matthiasbeyer ];
|
|
mainProgram = "khard";
|
|
};
|
|
}
|