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

56 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, glibcLocales, python3 }:
2015-01-30 16:02:05 +00:00
let
python = python3.override {
packageOverrides = self: super: {
# https://github.com/pimutils/khal/issues/780
python-dateutil = super.python-dateutil.overridePythonAttrs (oldAttrs: rec {
version = "2.6.1";
src = oldAttrs.src.override {
inherit version;
sha256 = "891c38b2a02f5bb1be3e4793866c8df49c7d19baabf9c1bad62547e0b4866aca";
};
});
};
};
in with python.pkgs; buildPythonApplication rec {
version = "0.13.0";
2015-01-30 16:02:05 +00:00
name = "khard-${version}";
namePrefix = "";
src = fetchurl {
url = "https://github.com/scheibler/khard/archive/v${version}.tar.gz";
sha256 = "06b9xcdg1na6mxa2pnlh0wfsk02k2h6hlki089aaikbg8k8ykj8f";
2015-01-30 16:02:05 +00:00
};
2016-07-31 08:14:13 +00:00
# setup.py reads the UTF-8 encoded readme.
LC_ALL = "en_US.UTF-8";
buildInputs = [ glibcLocales ];
propagatedBuildInputs = [
atomicwrites
2015-01-30 16:02:05 +00:00
configobj
vobject
2018-02-21 13:08:51 +00:00
ruamel_yaml
ruamel_base
unidecode
2015-01-30 16:02:05 +00:00
];
postInstall = ''
install -D misc/zsh/_khard $out/share/zsh/site-functions/_khard
'';
2016-07-31 08:14:13 +00:00
# Fails; but there are no tests anyway.
doCheck = false;
2015-01-30 16:02:05 +00:00
meta = {
homepage = https://github.com/scheibler/khard;
description = "Console carddav client";
license = stdenv.lib.licenses.gpl3;
maintainers = with stdenv.lib.maintainers; [ ];
2015-01-30 16:02:05 +00:00
};
}