@@ -3,8 +3,7 @@
5 version = "0.7.07.1";
5 version = "0.7.07.1";
6− inherit (python2Packages) boto cffi cryptography ecdsa enum idna ipaddress lockfile paramiko pyasn1 pycrypto python setuptools six;
6+in python2Packages.buildPythonApplication {
7−in stdenv.mkDerivation {
8 name = "duplicity-${version}";
7 name = "duplicity-${version}";
10 src = fetchurl {
9 src = fetchurl {
@@ -12,16 +11,21 @@ in stdenv.mkDerivation {
12 sha256 = "594c6d0e723e56f8a7114d57811c613622d535cafdef4a3643a4d4c89c1904f8";
11 sha256 = "594c6d0e723e56f8a7114d57811c613622d535cafdef4a3643a4d4c89c1904f8";
15− installPhase = ''
14+ postInstall = ''
16− python setup.py install --prefix=$out
17 wrapProgram $out/bin/duplicity \
15 wrapProgram $out/bin/duplicity \
18− --prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${idna}):$(toPythonPath ${cffi}):$(toPythonPath ${ipaddress}):$(toPythonPath ${pyasn1}):$(toPythonPath ${six}):$(toPythonPath ${enum}):$(toPythonPath ${setuptools}):$(toPythonPath ${cryptography}):$(toPythonPath ${pycrypto}):$(toPythonPath ${ecdsa}):$(toPythonPath ${paramiko}):$(toPythonPath ${boto}):$(toPythonPath ${lockfile})" \
19 --prefix PATH : "${stdenv.lib.makeBinPath [ gnupg ncftp rsync ]}"
16 --prefix PATH : "${stdenv.lib.makeBinPath [ gnupg ncftp rsync ]}"
20− wrapProgram $out/bin/rdiffdir \
21− --prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${idna}):$(toPythonPath ${cffi}):$(toPythonPath ${ipaddress}):$(toPythonPath ${pyasn1}):$(toPythonPath ${six}):$(toPythonPath ${enum}):$(toPythonPath ${setuptools}):$(toPythonPath ${cryptography}):$(toPythonPath ${pycrypto}):$(toPythonPath ${ecdsa}):$(toPythonPath ${paramiko}):$(toPythonPath ${boto}):$(toPythonPath ${lockfile})"
24− buildInputs = [ python librsync makeWrapper setuptools ];
19+ buildInputs = [ librsync makeWrapper ];
21+ # Inputs for tests. These are added to buildInputs when doCheck = true
22+ checkInputs = with python2Packages; [ lockfile mock pexpect ];
24+ # Many problematic tests
27+ propagatedBuildInputs = with python2Packages; [ boto cffi cryptography ecdsa enum idna
28+ ipaddress lockfile paramiko pyasn1 pycrypto six ];
27 description = "Encrypted bandwidth-efficient backup using the rsync algorithm";
31 description = "Encrypted bandwidth-efficient backup using the rsync algorithm";