nixpkgs/pkgs/development/python-modules/sshtunnel/default.nix
2020-11-14 10:14:45 +00:00

32 lines
664 B
Nix

{ lib, buildPythonPackage, fetchPypi
, paramiko
, pytest
, mock
}:
buildPythonPackage rec {
version = "0.2.2";
pname = "sshtunnel";
src = fetchPypi {
inherit pname version;
sha256 = "1801b144b42b9bdb2f931923e85837f9193b877f3d490cd5776e1d4062c62fb4";
};
propagatedBuildInputs = [ paramiko ];
checkInputs = [ pytest mock ];
# disable impure tests
checkPhase = ''
pytest -k 'not connect_via_proxy and not read_ssh_config'
'';
meta = with lib; {
description = "Pure python SSH tunnels";
homepage = "https://github.com/pahaz/sshtunnel";
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};
}