summary refs log tree commit diff
path: root/pkgs/applications/misc/khard
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-02-15 13:55:27 +0100
committerMatthias Beyer <mail@beyermatthias.de>2017-02-15 13:55:27 +0100
commit3de22bb760e5ac3d5e93fb648e56fea25e809b59 (patch)
treed4e84222d3f135733d4538076bc814669255c07a /pkgs/applications/misc/khard
parent7620ea63b9eacf865271b5842560ec871f84c316 (diff)
downloadnixlib-3de22bb760e5ac3d5e93fb648e56fea25e809b59.tar
nixlib-3de22bb760e5ac3d5e93fb648e56fea25e809b59.tar.gz
nixlib-3de22bb760e5ac3d5e93fb648e56fea25e809b59.tar.bz2
nixlib-3de22bb760e5ac3d5e93fb648e56fea25e809b59.tar.lz
nixlib-3de22bb760e5ac3d5e93fb648e56fea25e809b59.tar.xz
nixlib-3de22bb760e5ac3d5e93fb648e56fea25e809b59.tar.zst
nixlib-3de22bb760e5ac3d5e93fb648e56fea25e809b59.zip
khard: 0.11.1 -> 0.11.3
From the README of khard:

    # vobject version is pinned to 0.9.2 for now because of bug
    # https://github.com/eventable/vobject/issues/39

This is why we explicitely pin the dependency "vobject" via a new python
package in the expression here.
Diffstat (limited to 'pkgs/applications/misc/khard')
-rw-r--r--pkgs/applications/misc/khard/default.nix32
1 files changed, 29 insertions, 3 deletions
diff --git a/pkgs/applications/misc/khard/default.nix b/pkgs/applications/misc/khard/default.nix
index 2a6329b48d76..da6dece237ed 100644
--- a/pkgs/applications/misc/khard/default.nix
+++ b/pkgs/applications/misc/khard/default.nix
@@ -1,13 +1,39 @@
-{ stdenv, fetchurl, glibcLocales, python3Packages }:
+{ stdenv, fetchurl, fetchFromGitHub, glibcLocales, python3Packages }:
 
+let
+  vobject = python3Packages.buildPythonPackage rec {
+    version = "0.9.2";
+    name = "vobject-${version}";
+
+    src = fetchFromGitHub {
+      owner = "eventable";
+      repo = "vobject";
+      sha256 = "0zj0wplj8pry98x3g551wdhh12ric7rl6rsd6li23lzdxik82s3g";
+      rev = version;
+    };
+
+    disabled = python3Packages.isPyPy;
+
+    propagatedBuildInputs = with python3Packages; [ dateutil ];
+
+    checkPhase = "${python3Packages.python.interpreter} tests.py";
+
+    meta = with stdenv.lib; {
+      description = "Module for reading vCard and vCalendar files";
+      homepage = http://eventable.github.io/vobject/;
+      license = licenses.asl20;
+      maintainers = [ maintainers.matthiasbeyer ];
+    };
+  };
+in
 python3Packages.buildPythonApplication rec {
-  version = "0.11.1";
+  version = "0.11.3";
   name = "khard-${version}";
   namePrefix = "";
 
   src = fetchurl {
     url = "https://github.com/scheibler/khard/archive/v${version}.tar.gz";
-    sha256 = "0055xx9icmsr6l7v0iqrndmygygdpdv10550w6pyrb96svzhry27";
+    sha256 = "0brnwg7f1qnz83q5d6bl2260wykgjhhrpcxxhr2r9gj66q5hdd69";
   };
 
   # setup.py reads the UTF-8 encoded readme.