2016-10-19 02:09:40 -07:00
|
|
|
{ stdenv, fetchurl, python2Packages, librsync, ncftp, gnupg, rsync, makeWrapper
|
2015-10-10 12:19:30 -07:00
|
|
|
}:
|
2010-02-10 08:51:01 -08:00
|
|
|
|
2014-01-13 07:48:04 -08:00
|
|
|
let
|
2016-05-28 11:54:47 -07:00
|
|
|
version = "0.7.07.1";
|
2016-10-27 08:15:18 -07:00
|
|
|
in python2Packages.buildPythonApplication {
|
2014-01-13 07:48:04 -08:00
|
|
|
name = "duplicity-${version}";
|
2010-02-04 05:42:41 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-03-29 19:45:12 -07:00
|
|
|
url = "http://code.launchpad.net/duplicity/0.7-series/${version}/+download/duplicity-${version}.tar.gz";
|
2016-05-28 11:54:47 -07:00
|
|
|
sha256 = "594c6d0e723e56f8a7114d57811c613622d535cafdef4a3643a4d4c89c1904f8";
|
2010-02-04 05:42:41 -08:00
|
|
|
};
|
|
|
|
|
2016-10-27 08:15:18 -07:00
|
|
|
postInstall = ''
|
2010-02-10 08:51:01 -08:00
|
|
|
wrapProgram $out/bin/duplicity \
|
2016-09-09 09:10:19 -07:00
|
|
|
--prefix PATH : "${stdenv.lib.makeBinPath [ gnupg ncftp rsync ]}"
|
2010-02-04 05:42:41 -08:00
|
|
|
'';
|
|
|
|
|
2016-10-27 08:15:18 -07:00
|
|
|
buildInputs = [ librsync makeWrapper ];
|
|
|
|
|
|
|
|
# Inputs for tests. These are added to buildInputs when doCheck = true
|
|
|
|
checkInputs = with python2Packages; [ lockfile mock pexpect ];
|
|
|
|
|
|
|
|
# Many problematic tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python2Packages; [ boto cffi cryptography ecdsa enum idna
|
|
|
|
ipaddress lockfile paramiko pyasn1 pycrypto six ];
|
2010-02-04 05:42:41 -08:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Encrypted bandwidth-efficient backup using the rsync algorithm";
|
2012-02-06 11:45:18 -08:00
|
|
|
homepage = "http://www.nongnu.org/duplicity";
|
2014-06-18 21:19:00 -07:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-05-16 13:30:20 -07:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric peti];
|
2016-12-26 12:55:54 -08:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2010-02-04 05:42:41 -08:00
|
|
|
};
|
|
|
|
}
|