biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / misc / khard / default.nix
blob6bd9b2089f18e45dc9d5cf7773f15c55ece91483
1 { lib, python3, fetchPypi, khard, testers }:
3 python3.pkgs.buildPythonApplication rec {
4   version = "0.19.1";
5   pname = "khard";
7   src = fetchPypi {
8     inherit pname version;
9     sha256 = "sha256-WfMKDaPD2j6wT02+GO5HY5E7aF2Z7IQY/VdKiMSRxJA=";
10   };
12   nativeBuildInputs = with python3.pkgs; [
13     setuptools-scm
14     sphinxHook
15     sphinx-autoapi
16     sphinx-autodoc-typehints
17   ];
19   sphinxBuilders = [ "man" ];
21   propagatedBuildInputs = with python3.pkgs; [
22     atomicwrites
23     configobj
24     ruamel-yaml
25     unidecode
26     vobject
27   ];
29   postInstall = ''
30     install -D misc/zsh/_khard $out/share/zsh/site-functions/_khard
31   '';
33   preCheck = ''
34     # see https://github.com/scheibler/khard/issues/263
35     export COLUMNS=80
36   '';
38   pythonImportsCheck = [ "khard" ];
40   passthru.tests.version = testers.testVersion { package = khard; };
42   meta = {
43     homepage = "https://github.com/scheibler/khard";
44     description = "Console carddav client";
45     license = lib.licenses.gpl3;
46     maintainers = with lib.maintainers; [ matthiasbeyer ];
47     mainProgram = "khard";
48   };