python3Packages.sshtunnel: fix tests

This commit is contained in:
Jonathan Ringer 2022-01-17 21:44:22 -08:00 committed by Martin Weinelt
parent c7e34c25b9
commit c1b2d3771a

View file

@ -1,6 +1,6 @@
{ lib, buildPythonPackage, fetchPypi
, paramiko
, pytest
, pytestCheckHook
, mock
}:
@ -15,12 +15,14 @@ buildPythonPackage rec {
propagatedBuildInputs = [ paramiko ];
checkInputs = [ pytest mock ];
checkInputs = [ pytestCheckHook mock ];
# disable impure tests
checkPhase = ''
pytest -k 'not connect_via_proxy and not read_ssh_config'
'';
disabledTests = [
"test_get_keys"
"connect_via_proxy"
"read_ssh_config"
];
meta = with lib; {
description = "Pure python SSH tunnels";