2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, paramiko
|
2022-02-10 20:34:41 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "0.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "sshtunnel";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "sha256-58sOp3Tbgb+RhE2yLecqQKro97D5u5ug9mbUdO9r+fw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ paramiko ];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
checkInputs = [ pytestCheckHook mock ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# disable impure tests
|
2022-02-10 20:34:41 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_get_keys"
|
|
|
|
"connect_via_proxy"
|
|
|
|
"read_ssh_config"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pure python SSH tunnels";
|
|
|
|
homepage = "https://github.com/pahaz/sshtunnel";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
|
|
|
};
|
|
|
|
}
|