summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorlethalman <lucabru@src.gnome.org>2015-03-11 15:41:20 +0100
committerlethalman <lucabru@src.gnome.org>2015-03-11 15:41:20 +0100
commit622533577b904b9c4bfbc4d8ac860900df17de72 (patch)
tree86be7b28972b11bb891ba1a30d2c55f30a9f75e4 /pkgs
parent9b699bc9a98e191827cb00698cd354ab26611bcf (diff)
parentff42e0ae7f2c30c6afbcbf3d85888f95d9456636 (diff)
downloadnixpkgs-622533577b904b9c4bfbc4d8ac860900df17de72.tar
nixpkgs-622533577b904b9c4bfbc4d8ac860900df17de72.tar.gz
nixpkgs-622533577b904b9c4bfbc4d8ac860900df17de72.tar.bz2
nixpkgs-622533577b904b9c4bfbc4d8ac860900df17de72.tar.lz
nixpkgs-622533577b904b9c4bfbc4d8ac860900df17de72.tar.xz
nixpkgs-622533577b904b9c4bfbc4d8ac860900df17de72.tar.zst
nixpkgs-622533577b904b9c4bfbc4d8ac860900df17de72.zip
Merge pull request #6685 from pjones/pkg/asynk
asynk: 2.0.0-rc2 -> 2.0.0, add CalDAV support
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/networking/asynk/default.nix20
-rw-r--r--pkgs/top-level/python-packages.nix35
2 files changed, 45 insertions, 10 deletions
diff --git a/pkgs/tools/networking/asynk/default.nix b/pkgs/tools/networking/asynk/default.nix
index cb3e1445aa3..38514a5604b 100644
--- a/pkgs/tools/networking/asynk/default.nix
+++ b/pkgs/tools/networking/asynk/default.nix
@@ -1,28 +1,38 @@
 { stdenv, fetchurl, python2, python2Packages, makeWrapper }:
 
 stdenv.mkDerivation rec {
-  version = "2.0.0-rc2";
+  version = "2.0.0";
   name = "ASynK-${version}";
 
   src = fetchurl {
     name = "${name}.tar.gz";
     url = "https://github.com/skarra/ASynK/archive/v${version}.tar.gz";
-    sha256 = "14s53ijn9fpxr490ypnn92zk6h5rdadf7j3z98rah1h7l659qi1b";
+    sha256 = "1bp30437mnls0kzm0525p3bg5nw9alpqrqhw186f6zp9i4y5znp1";
   };
 
-  propagatedBuildInputs = with python2Packages; [ python2 makeWrapper tornado requests dateutil ];
+  propagatedBuildInputs = with python2Packages;
+    [ python2 makeWrapper tornado requests dateutil
+      vobject gdata caldavclientlibrary-asynk ];
 
   installPhase = ''
-    mkdir -p $out/bin
+    mkdir -p $out/bin $out/lib
     cp asynk.py $out/bin/
     cp state.init.json $out/
     cp -R config $out/
-    cp -R lib $out/
+    cp lib/*.py $out/lib # */
+    cp -R lib/s $out/lib/
     cp -R asynk $out/
 
     substituteInPlace $out/bin/asynk.py \
       --replace "ASYNK_BASE_DIR    = os.path.dirname(os.path.abspath(__file__))" "ASYNK_BASE_DIR    = \"$out\""
 
+    for file in `find $out/asynk -type f`; do
+      # Oh yeah, tab characters!
+      substituteInPlace $file \
+        --replace 'from   vobject        import vobject' 'from vobject import *' \
+        --replace 'from   vobject    import vobject' 'from vobject import *'
+    done
+
     wrapProgram "$out/bin/asynk.py" \
       --prefix PYTHONPATH : "$PYTHONPATH"
   '';
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index f926fc877dc..c9eb9078f62 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -809,6 +809,31 @@ let
     };
   };
 
+  caldavclientlibrary-asynk = buildPythonPackage rec {
+    version = "asynkdev";
+    name = "caldavclientlibrary-asynk-${version}";
+
+    src = pkgs.fetchgit {
+      url = "https://github.com/skarra/CalDAVClientLibrary.git";
+      rev = "06699b08190d50cc2636b921a654d67db0a967d1";
+      sha256 = "1i6is7lv4v9by4panrd9w63m4xsmhwlp3rq4jjj3azwg5jm10940";
+    };
+
+    meta = {
+      description = "CalDAVCLientLibrary is a Python library and tool for CalDAV";
+
+      longDescription = ''
+        CalDAVCLientLibrary is a Python library and tool for CalDAV.
+
+        This package is the unofficial CalDAVCLientLibrary Python
+        library maintained by the author of Asynk and is needed for
+        that package.
+      '';
+
+      homepage = https://github.com/skarra/CalDAVClientLibrary/tree/asynkdev/;
+      maintainers = with maintainers; [ pjones ];
+    };
+  };
 
   bedup = buildPythonPackage rec {
     name = "bedup-20140413";
@@ -3057,15 +3082,15 @@ let
     src = pkgs.fetchurl {
       url = "https://pypi.python.org/packages/source/m/mailchimp/mailchimp-${version}.tar.gz";
       sha256 = "0351ai0jqv3dzx0xxm1138sa7mb42si6xfygl5ak8wnfc95ff770";
-    };  
-  
+    };
+
     # Test fails because specific version of docopt is searched
     # (Possible fix: Needs upstream patching in the library)
     doCheck = false;
 
     buildInputs = with self; [ docopt ];
 
-    propagatedBuildInputs = with self; [ requests ];                                       
+    propagatedBuildInputs = with self; [ requests ];
 
     meta = {
       description = "A CLI client and Python API library for the MailChimp email platform";
@@ -13494,7 +13519,7 @@ let
       url = "https://github.com/erikrose/more-itertools/archive/2.2.tar.gz";
       sha256 = "4606417182e0a1289e23fb7f964a64ca9fdaafb7c1999034dc4fa0cc5850c478";
     };
-   
+
     propagatedBuildInputs = with self; [ nose ];
 
     meta = {
@@ -13513,7 +13538,7 @@ let
     };
 
     buildInputs = with self; [ nose numpy ];
-   
+
     meta = {
       homepage = "http://pythonhosted.org/uncertainties/";
       description = "Transparent calculations with uncertainties on the quantities involved (aka error propagation)";