sshtunnel: init at 0.1.5

This commit is contained in:
Jonathan Ringer 2019-10-23 00:24:10 -07:00 committed by Jon
parent c8971590f7
commit d414e213f2
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ lib, buildPythonPackage, fetchPypi
, paramiko
, pytest
, mock
}:
buildPythonPackage rec {
version = "0.1.5";
pname = "sshtunnel";
src = fetchPypi {
inherit pname version;
sha256 = "0jcjppp6mdfsqrbfc3ddfxg1ybgvkjv7ri7azwv3j778m36zs4y8";
};
propagatedBuildInputs = [ paramiko ];
checkInputs = [ pytest mock ];
# disable impure tests
checkPhase = ''
pytest -k 'not connect_via_proxy and not read_ssh_config'
'';
meta = with lib; {
description = "Pure python SSH tunnels";
homepage = "https://github.com/pahaz/sshtunnel";
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};
}

View File

@ -1301,6 +1301,8 @@ in {
sshpubkeys = callPackage ../development/python-modules/sshpubkeys { };
sshtunnel = callPackage ../development/python-modules/sshtunnel { };
sslib = callPackage ../development/python-modules/sslib { };
statistics = callPackage ../development/python-modules/statistics { };