3
0
Fork 0
forked from mirrors/nixpkgs

duplicity: add paramiko,pycrypto,ecdsa to deps

paramiko enables sftp://

[Bjørn: clean up expression arguments (coding style)]
This commit is contained in:
makefu 2015-10-10 21:19:30 +02:00 committed by Bjørn Forsman
parent 5b68b8aa17
commit cd1732f58e
2 changed files with 5 additions and 4 deletions

View file

@ -1,5 +1,6 @@
{ stdenv, fetchurl, python, librsync, ncftp, gnupg, boto, makeWrapper
, lockfile, setuptools }:
, lockfile, setuptools, paramiko, pycrypto, ecdsa
}:
let
version = "0.7.02";
@ -15,10 +16,10 @@ stdenv.mkDerivation {
installPhase = ''
python setup.py install --prefix=$out
wrapProgram $out/bin/duplicity \
--prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${boto}):$(toPythonPath ${lockfile})" \
--prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${pycrypto}):$(toPythonPath ${ecdsa}):$(toPythonPath ${paramiko}):$(toPythonPath ${boto}):$(toPythonPath ${lockfile})" \
--prefix PATH : "${gnupg}/bin:${ncftp}/bin"
wrapProgram $out/bin/rdiffdir \
--prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${boto}):$(toPythonPath ${lockfile})" \
--prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${pycrypto}):$(toPythonPath ${ecdsa}):$(toPythonPath ${paramiko}):$(toPythonPath ${boto}):$(toPythonPath ${lockfile})"
'';
buildInputs = [ python librsync makeWrapper setuptools ];

View file

@ -1323,7 +1323,7 @@ let
duo-unix = callPackage ../tools/security/duo-unix { };
duplicity = callPackage ../tools/backup/duplicity {
inherit (pythonPackages) boto lockfile;
inherit (pythonPackages) boto lockfile paramiko ecdsa pycrypto;
gnupg = gnupg1;
};