1{ lib, buildPythonPackage, fetchPypi
2, paramiko
3, pytest
4, mock
5}:
6
7buildPythonPackage rec {
8 version = "0.1.5";
9 pname = "sshtunnel";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "0jcjppp6mdfsqrbfc3ddfxg1ybgvkjv7ri7azwv3j778m36zs4y8";
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}