depot/third_party/nixpkgs/pkgs/development/python-modules/sshtunnel/default.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

44 lines
802 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
paramiko,
pytestCheckHook,
mock,
setuptools,
}:
buildPythonPackage rec {
pname = "sshtunnel";
version = "0.4.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-58sOp3Tbgb+RhE2yLecqQKro97D5u5ug9mbUdO9r+fw=";
};
build-system = [ setuptools ];
dependencies = [ paramiko ] ++ paramiko.optional-dependencies.ed25519;
nativeCheckInputs = [
pytestCheckHook
mock
];
# disable impure tests
disabledTests = [
"test_get_keys"
"connect_via_proxy"
"read_ssh_config"
];
meta = with lib; {
description = "Pure python SSH tunnels";
mainProgram = "sshtunnel";
homepage = "https://github.com/pahaz/sshtunnel";
license = licenses.mit;
maintainers = [ ];
};
}