Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / sshtunnel / default.nix
blob90e4962d3e8f6eeee645316bc53a8aeac7bec1b5
1 { lib, buildPythonPackage, fetchPypi
2 , paramiko
3 , pytest
4 , mock
5 }:
7 buildPythonPackage rec {
8   version = "0.4.0";
9   pname = "sshtunnel";
11   src = fetchPypi {
12     inherit pname version;
13     sha256 = "sha256-58sOp3Tbgb+RhE2yLecqQKro97D5u5ug9mbUdO9r+fw=";
14   };
16   propagatedBuildInputs = [ paramiko ];
18   checkInputs = [ pytest mock ];
20   # disable impure tests
21   checkPhase = ''
22     pytest -k 'not connect_via_proxy and not read_ssh_config'
23   '';
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   };