blob: dbeff29624f91d9d43346f3f50bdb551c6b3cbd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{
lib,
buildPythonPackage,
fetchPypi,
paramiko,
pytestCheckHook,
mock,
setuptools,
}:
buildPythonPackage rec {
pname = "sshtunnel";
version = "0.4.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-58sOp3Tbgb+RhE2yLecqQKro97D5u5ug9mbUdO9r+fw=";
};
# https://github.com/pahaz/sshtunnel/pull/301
patches = [ ./paramiko-4.0-compat.patch ];
build-system = [ setuptools ];
dependencies = [ paramiko ];
nativeCheckInputs = [
pytestCheckHook
mock
];
# disable impure tests
disabledTests = [
"test_get_keys"
"connect_via_proxy"
"read_ssh_config"
# Test doesn't work with paramiko < 4.0.0 and the patch above
"test_read_private_key_file"
];
meta = {
description = "Pure python SSH tunnels";
mainProgram = "sshtunnel";
homepage = "https://github.com/pahaz/sshtunnel";
license = lib.licenses.mit;
maintainers = [ ];
};
}
|