1{ lib, buildPythonPackage, fetchPypi 2, paramiko 3, pytest 4, mock 5}: 6 7buildPythonPackage rec { 8 version = "0.4.0"; 9 pname = "sshtunnel"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "sha256-58sOp3Tbgb+RhE2yLecqQKro97D5u5ug9mbUdO9r+fw="; 14 }; 15 16 propagatedBuildInputs = [ paramiko ]; 17 18 checkInputs = [ pytest mock ]; 19 20 # disable impure tests 21 checkPhase = '' 22 pytest -k 'not connect_via_proxy and not read_ssh_config' 23 ''; 24 25 meta = with lib; { 26 description = "Pure python SSH tunnels"; 27 homepage = "https://github.com/pahaz/sshtunnel"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ jonringer ]; 30 }; 31}