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