depot/third_party/nixpkgs/pkgs/development/python-modules/sshtunnel/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

31 lines
651 B
Nix

{ lib, buildPythonPackage, fetchPypi
, paramiko
, pytest
, mock
}:
buildPythonPackage rec {
version = "0.4.0";
pname = "sshtunnel";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-58sOp3Tbgb+RhE2yLecqQKro97D5u5ug9mbUdO9r+fw=";
};
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 ];
};
}