3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/backup/duplicity/default.nix

44 lines
1.3 KiB
Nix
Raw Normal View History

2017-03-24 09:48:00 +00:00
{ stdenv, fetchurl, python2Packages, librsync, ncftp, gnupg, rsync, makeWrapper }:
2017-03-24 09:48:00 +00:00
python2Packages.buildPythonApplication rec {
2014-01-13 15:48:04 +00:00
name = "duplicity-${version}";
2017-03-24 09:48:00 +00:00
version = "0.7.12";
src = fetchurl {
2017-03-24 09:48:00 +00:00
url = "http://code.launchpad.net/duplicity/0.7-series/${version}/+download/${name}.tar.gz";
sha256 = "1rhgrz2lm9vbfdp2raykrih1c6n2lw5jd572z4dsz488m52avjqi";
};
2017-03-24 09:48:00 +00:00
buildInputs = [ librsync makeWrapper python2Packages.wrapPython ];
propagatedBuildInputs = with python2Packages; [
2017-10-04 17:22:22 +01:00
boto cffi cryptography ecdsa enum idna pygobject3
2017-03-24 09:48:00 +00:00
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;
2016-10-27 16:15:18 +01:00
postInstall = ''
wrapProgram $out/bin/duplicity \
--prefix PATH : "${stdenv.lib.makeBinPath [ gnupg ncftp rsync ]}"
2017-03-24 09:48:00 +00:00
wrapPythonPrograms
'';
2016-10-27 16:15:18 +01:00
2017-03-24 09:48:00 +00:00
preCheck = ''
patchShebangs testing
2016-10-27 16:15:18 +01:00
2017-03-24 09:48:00 +00:00
substituteInPlace testing/__init__.py \
--replace 'mkdir testfiles' 'mkdir -p testfiles'
'';
2017-03-24 09:48:00 +00:00
meta = with stdenv.lib; {
description = "Encrypted bandwidth-efficient backup using the rsync algorithm";
2017-03-24 09:48:00 +00:00
homepage = http://www.nongnu.org/duplicity;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ viric peti ];
platforms = platforms.unix;
};
}