From f49d2e9953c1473fa6e58d2cae043099f57e617d Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 17 May 2015 19:34:16 +0200 Subject: [PATCH 1/5] Fix: khal 0.4.0 does not work with python 3 --- pkgs/top-level/all-packages.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bdc4c643c041..5ed23b48983e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11390,9 +11390,7 @@ let keymon = callPackage ../applications/video/key-mon { }; - khal = callPackage ../applications/misc/khal { - pythonPackages = python3Packages; - }; + khal = callPackage ../applications/misc/khal { }; kid3 = callPackage ../applications/audio/kid3 { qt = qt4; From b5019ffd72b9352c92727e161aa617ddc9480d41 Mon Sep 17 00:00:00 2001 From: Jascha Geerds Date: Sat, 30 May 2015 00:53:22 +0200 Subject: [PATCH 2/5] vdirsyncer: Use python2 instead of python3 --- pkgs/top-level/all-packages.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5ed23b48983e..274a764af552 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12432,9 +12432,7 @@ let vcprompt = callPackage ../applications/version-management/vcprompt { }; - vdirsyncer = callPackage ../tools/misc/vdirsyncer { - pythonPackages = python3Packages; - }; + vdirsyncer = callPackage ../tools/misc/vdirsyncer { }; vdpauinfo = callPackage ../tools/X11/vdpauinfo { }; From 2a0b05a238ad658dfec68d14ce5a55b9b58643cd Mon Sep 17 00:00:00 2001 From: Jascha Geerds Date: Sat, 30 May 2015 01:03:48 +0200 Subject: [PATCH 3/5] vdirsyncer: Propagate dependencies and use requests2 --- pkgs/tools/misc/vdirsyncer/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/tools/misc/vdirsyncer/default.nix b/pkgs/tools/misc/vdirsyncer/default.nix index 5312445563a6..bd3716af2b2e 100644 --- a/pkgs/tools/misc/vdirsyncer/default.nix +++ b/pkgs/tools/misc/vdirsyncer/default.nix @@ -10,10 +10,9 @@ pythonPackages.buildPythonPackage rec { sha256 = "0jrxmq8lq0dvqflmh42hhyvc3jjrg1cg3gzfhdcsskj9zz0m6wai"; }; - pythonPath = with pythonPackages; [ + propagatedBuildInputs = with pythonPackages; [ icalendar click - requests lxml setuptools requests_toolbelt From 446c9fefffd2de6c62c254b249d927d6ad16114f Mon Sep 17 00:00:00 2001 From: Jascha Geerds Date: Sat, 30 May 2015 01:04:56 +0200 Subject: [PATCH 4/5] khal: Add sqlite3 to dependencies --- pkgs/applications/misc/khal/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/misc/khal/default.nix b/pkgs/applications/misc/khal/default.nix index 85720f644831..4d09951060f1 100644 --- a/pkgs/applications/misc/khal/default.nix +++ b/pkgs/applications/misc/khal/default.nix @@ -22,6 +22,7 @@ pythonPackages.buildPythonPackage rec { requests_toolbelt tzlocal urwid + python.modules.sqlite3 ]; meta = { From 2e583a4963f03429ca5984946d1e7cad4326553b Mon Sep 17 00:00:00 2001 From: Jascha Geerds Date: Sat, 30 May 2015 01:26:29 +0200 Subject: [PATCH 5/5] Add jgeerds to maintainers of khal and vdirsyncer --- pkgs/applications/misc/khal/default.nix | 7 +++---- pkgs/tools/misc/vdirsyncer/default.nix | 11 +++++------ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/pkgs/applications/misc/khal/default.nix b/pkgs/applications/misc/khal/default.nix index 4d09951060f1..7f7f1308eb13 100644 --- a/pkgs/applications/misc/khal/default.nix +++ b/pkgs/applications/misc/khal/default.nix @@ -25,11 +25,10 @@ pythonPackages.buildPythonPackage rec { python.modules.sqlite3 ]; - meta = { + meta = with stdenv.lib; { homepage = http://lostpackets.de/khal/; description = "CLI calendar application"; - license = stdenv.lib.licenses.mit; - maintainers = with stdenv.lib.maintainers; [ matthiasbeyer ]; + license = licenses.mit; + maintainers = with maintainers; [ matthiasbeyer jgeerds ]; }; } - diff --git a/pkgs/tools/misc/vdirsyncer/default.nix b/pkgs/tools/misc/vdirsyncer/default.nix index bd3716af2b2e..86e424ad08be 100644 --- a/pkgs/tools/misc/vdirsyncer/default.nix +++ b/pkgs/tools/misc/vdirsyncer/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchurl, pythonPackages }: +{ stdenv, fetchurl, pythonPackages }: pythonPackages.buildPythonPackage rec { version = "0.4.3"; @@ -20,12 +20,11 @@ pythonPackages.buildPythonPackage rec { atomicwrites ]; - meta = { + meta = with stdenv.lib; { homepage = https://github.com/untitaker/vdirsyncer; description = "Synchronize calendars and contacts"; - maintainers = [ lib.maintainers.matthiasbeyer ]; - platforms = lib.platforms.all; - license = lib.licenses.mit; + maintainers = with maintainers; [ matthiasbeyer jgeerds ]; + platforms = platforms.all; + license = licenses.mit; }; } -