nixpkgs/pkgs/applications/misc/khard/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
995 B
Nix
Raw Normal View History

2022-12-12 19:00:55 +00:00
{ lib, python3, khard, testers }:
2015-01-30 16:02:05 +00:00
2019-11-09 15:46:08 +00:00
python3.pkgs.buildPythonApplication rec {
2022-12-12 18:56:41 +00:00
version = "0.18.0";
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;
2022-12-12 18:56:41 +00:00
sha256 = "05860fdayqap128l7i6bcmi9kdyi2gx02g2pmh88d56xgysd927y";
2015-01-30 16:02:05 +00:00
};
2021-04-02 15:09:56 +00:00
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
python3.pkgs.setuptools-scm
];
2019-11-09 15:46:08 +00:00
propagatedBuildInputs = with python3.pkgs; [
atomicwrites
2015-01-30 16:02:05 +00:00
configobj
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
];
postInstall = ''
install -D misc/zsh/_khard $out/share/zsh/site-functions/_khard
'';
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 ];
2015-01-30 16:02:05 +00:00
};
}