forked from mirrors/nixpkgs
44 lines
1.4 KiB
Nix
44 lines
1.4 KiB
Nix
{ stdenv, fetchurl, python2Packages, librsync, ncftp, gnupg, rsync, makeWrapper }:
|
|
|
|
python2Packages.buildPythonApplication rec {
|
|
name = "duplicity-${version}";
|
|
version = "0.7.19";
|
|
|
|
src = fetchurl {
|
|
url = "https://code.launchpad.net/duplicity/${stdenv.lib.versions.majorMinor version}-series/${version}/+download/${name}.tar.gz";
|
|
sha256 = "0ag9dknslxlasslwfjhqgcqbkb1mvzzx93ry7lch2lfzcdd91am6";
|
|
};
|
|
|
|
buildInputs = [ librsync makeWrapper python2Packages.wrapPython ];
|
|
propagatedBuildInputs = with python2Packages; [
|
|
boto cffi cryptography ecdsa enum idna pygobject3 fasteners
|
|
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 ]}"
|
|
|
|
wrapPythonPrograms
|
|
'';
|
|
|
|
preCheck = ''
|
|
patchShebangs testing
|
|
|
|
substituteInPlace testing/__init__.py \
|
|
--replace 'mkdir testfiles' 'mkdir -p testfiles'
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Encrypted bandwidth-efficient backup using the rsync algorithm";
|
|
homepage = https://www.nongnu.org/duplicity;
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ peti ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|