summary refs log tree commit diff
path: root/pkgs/tools/backup/duplicity
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2017-03-24 17:48:00 +0800
committerPeter Hoeg <peter@hoeg.com>2017-03-24 18:08:05 +0800
commitf38c4ee775c7a485db3b3bcd86a59af84269f32b (patch)
treeed6eea8f95f73e2d155c096c80b33ebf7bd0af54 /pkgs/tools/backup/duplicity
parent4e57e7f7c6db9a9c00f527eff80cb37890ba516d (diff)
downloadnixpkgs-f38c4ee775c7a485db3b3bcd86a59af84269f32b.tar
nixpkgs-f38c4ee775c7a485db3b3bcd86a59af84269f32b.tar.gz
nixpkgs-f38c4ee775c7a485db3b3bcd86a59af84269f32b.tar.bz2
nixpkgs-f38c4ee775c7a485db3b3bcd86a59af84269f32b.tar.lz
nixpkgs-f38c4ee775c7a485db3b3bcd86a59af84269f32b.tar.xz
nixpkgs-f38c4ee775c7a485db3b3bcd86a59af84269f32b.tar.zst
nixpkgs-f38c4ee775c7a485db3b3bcd86a59af84269f32b.zip
duplicity: 0.7.07.1 -> 0.7.12
Diffstat (limited to 'pkgs/tools/backup/duplicity')
-rw-r--r--pkgs/tools/backup/duplicity/default.nix48
1 files changed, 27 insertions, 21 deletions
diff --git a/pkgs/tools/backup/duplicity/default.nix b/pkgs/tools/backup/duplicity/default.nix
index b08bb0768f2..313167b1ae2 100644
--- a/pkgs/tools/backup/duplicity/default.nix
+++ b/pkgs/tools/backup/duplicity/default.nix
@@ -1,37 +1,43 @@
-{ stdenv, fetchurl, python2Packages, librsync, ncftp, gnupg, rsync, makeWrapper
-}:
+{ stdenv, fetchurl, python2Packages, librsync, ncftp, gnupg, rsync, makeWrapper }:
 
-let
-  version = "0.7.07.1";
-in python2Packages.buildPythonApplication {
+python2Packages.buildPythonApplication rec {
   name = "duplicity-${version}";
+  version = "0.7.12";
 
   src = fetchurl {
-    url = "http://code.launchpad.net/duplicity/0.7-series/${version}/+download/duplicity-${version}.tar.gz";
-    sha256 = "594c6d0e723e56f8a7114d57811c613622d535cafdef4a3643a4d4c89c1904f8";
+    url = "http://code.launchpad.net/duplicity/0.7-series/${version}/+download/${name}.tar.gz";
+    sha256 = "1rhgrz2lm9vbfdp2raykrih1c6n2lw5jd572z4dsz488m52avjqi";
   };
 
+  buildInputs = [ librsync makeWrapper python2Packages.wrapPython ];
+  propagatedBuildInputs = with python2Packages; [
+    boto cffi cryptography ecdsa enum idna
+    ipaddress lockfile paramiko pyasn1 pycrypto six
+  ];
+  checkInputs = with python2Packages; [ lockfile mock pexpect ];
+
+  # lots of tests are failing, although we get a little further now with the bits in preCheck
+  doCheck = false;
+
   postInstall = ''
     wrapProgram $out/bin/duplicity \
       --prefix PATH : "${stdenv.lib.makeBinPath [ gnupg ncftp rsync ]}"
-  '';
 
-  buildInputs = [ librsync makeWrapper ];
+    wrapPythonPrograms
+  '';
 
-  # Inputs for tests. These are added to buildInputs when doCheck = true
-  checkInputs = with python2Packages; [ lockfile mock pexpect ];
+  preCheck = ''
+    patchShebangs testing
 
-  # Many problematic tests
-  doCheck = false;
-
-  propagatedBuildInputs = with python2Packages; [ boto cffi cryptography ecdsa enum idna
-    ipaddress lockfile paramiko pyasn1 pycrypto six ];
+    substituteInPlace testing/__init__.py \
+      --replace 'mkdir testfiles' 'mkdir -p testfiles'
+  '';
 
-  meta = {
+  meta = with stdenv.lib; {
     description = "Encrypted bandwidth-efficient backup using the rsync algorithm";
-    homepage = "http://www.nongnu.org/duplicity";
-    license = stdenv.lib.licenses.gpl2Plus;
-    maintainers = with stdenv.lib.maintainers; [viric peti];
-    platforms = stdenv.lib.platforms.unix;
+    homepage = http://www.nongnu.org/duplicity;
+    license = licenses.gpl2Plus;
+    maintainers = with maintainers; [ viric peti ];
+    platforms = platforms.unix;
   };
 }