9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
44 lines
993 B
Nix
44 lines
993 B
Nix
{ lib, python3, fetchPypi, khard, testers }:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
version = "0.18.0";
|
|
pname = "khard";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "05860fdayqap128l7i6bcmi9kdyi2gx02g2pmh88d56xgysd927y";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
nativeBuildInputs = [
|
|
python3.pkgs.setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
atomicwrites
|
|
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 ];
|
|
};
|
|
}
|