bazaar: enable sftp transport (#21132)

SFTP transport needs python paramiko package, which is now an optional
input
This commit is contained in:
bnikolic 2016-12-14 14:03:54 +00:00 committed by Robin Gloster
parent fa0a63ec13
commit 88f53c989e

View File

@ -1,4 +1,6 @@
{ stdenv, fetchurl, python2Packages }:
{ stdenv, fetchurl, python2Packages
, withSFTP ? true
}:
python2Packages.buildPythonApplication rec {
version = "2.7";
@ -12,6 +14,9 @@ python2Packages.buildPythonApplication rec {
doCheck = false;
propagatedBuildInputs = []
++ stdenv.lib.optionals withSFTP [ python2Packages.paramiko ];
# Bazaar can't find the certificates alone
patches = [ ./add_certificates.patch ];
postPatch = ''