depot/third_party/nixpkgs/pkgs/development/python-modules/sshtunnel/default.nix
Default email a4fd2de975 Project import generated by Copybara.
GitOrigin-RevId: 34ad166a830d3ac1541dcce571c52231f2f0865a
2020-11-02 21:18:15 -05:00

31 lines
664 B
Nix

{ lib, buildPythonPackage, fetchPypi
, paramiko
, pytest
, mock
}:
buildPythonPackage rec {
version = "0.2.1";
pname = "sshtunnel";
src = fetchPypi {
inherit pname version;
sha256 = "ce28bf9abe6c6b00c5d10343a68c1325f8409ebfb9bf1c1d863a31afa3983cd7";
};
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 ];
};
}