duplicity: 0.7.07.1 -> 0.7.12

This commit is contained in:
Peter Hoeg 2017-03-24 17:48:00 +08:00
parent 4e57e7f7c6
commit f38c4ee775

View File

@ -1,37 +1,43 @@
{ stdenv, fetchurl, python2Packages, librsync, ncftp, gnupg, rsync, makeWrapper { stdenv, fetchurl, python2Packages, librsync, ncftp, gnupg, rsync, makeWrapper }:
}:
let python2Packages.buildPythonApplication rec {
version = "0.7.07.1";
in python2Packages.buildPythonApplication {
name = "duplicity-${version}"; name = "duplicity-${version}";
version = "0.7.12";
src = fetchurl { src = fetchurl {
url = "http://code.launchpad.net/duplicity/0.7-series/${version}/+download/duplicity-${version}.tar.gz"; url = "http://code.launchpad.net/duplicity/0.7-series/${version}/+download/${name}.tar.gz";
sha256 = "594c6d0e723e56f8a7114d57811c613622d535cafdef4a3643a4d4c89c1904f8"; 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 = '' postInstall = ''
wrapProgram $out/bin/duplicity \ wrapProgram $out/bin/duplicity \
--prefix PATH : "${stdenv.lib.makeBinPath [ gnupg ncftp rsync ]}" --prefix PATH : "${stdenv.lib.makeBinPath [ gnupg ncftp rsync ]}"
wrapPythonPrograms
''; '';
buildInputs = [ librsync makeWrapper ]; preCheck = ''
patchShebangs testing
# Inputs for tests. These are added to buildInputs when doCheck = true substituteInPlace testing/__init__.py \
checkInputs = with python2Packages; [ lockfile mock pexpect ]; --replace 'mkdir testfiles' 'mkdir -p testfiles'
'';
# Many problematic tests meta = with stdenv.lib; {
doCheck = false;
propagatedBuildInputs = with python2Packages; [ boto cffi cryptography ecdsa enum idna
ipaddress lockfile paramiko pyasn1 pycrypto six ];
meta = {
description = "Encrypted bandwidth-efficient backup using the rsync algorithm"; description = "Encrypted bandwidth-efficient backup using the rsync algorithm";
homepage = "http://www.nongnu.org/duplicity"; homepage = http://www.nongnu.org/duplicity;
license = stdenv.lib.licenses.gpl2Plus; license = licenses.gpl2Plus;
maintainers = with stdenv.lib.maintainers; [viric peti]; maintainers = with maintainers; [ viric peti ];
platforms = stdenv.lib.platforms.unix; platforms = platforms.unix;
}; };
} }