bazaar: enable sftp transport (#21132)
SFTP transport needs python paramiko package, which is now an optional input
This commit is contained in:
parent
fa0a63ec13
commit
88f53c989e
@ -1,4 +1,6 @@
|
|||||||
{ stdenv, fetchurl, python2Packages }:
|
{ stdenv, fetchurl, python2Packages
|
||||||
|
, withSFTP ? true
|
||||||
|
}:
|
||||||
|
|
||||||
python2Packages.buildPythonApplication rec {
|
python2Packages.buildPythonApplication rec {
|
||||||
version = "2.7";
|
version = "2.7";
|
||||||
@ -12,6 +14,9 @@ python2Packages.buildPythonApplication rec {
|
|||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
propagatedBuildInputs = []
|
||||||
|
++ stdenv.lib.optionals withSFTP [ python2Packages.paramiko ];
|
||||||
|
|
||||||
# Bazaar can't find the certificates alone
|
# Bazaar can't find the certificates alone
|
||||||
patches = [ ./add_certificates.patch ];
|
patches = [ ./add_certificates.patch ];
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user