depot/third_party/nixpkgs/pkgs/development/python-modules/sshtunnel/default.nix
Default email 510ba8c3d9 Project import generated by Copybara.
GitOrigin-RevId: 069f183f16c3ea5d4b6e7625433b92eba77534f7
2020-11-15 05:44:38 -08:00

31 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 ];
};
}