From d2550caf8ecd2eacdf3c0824a0f1388dc4da9c81 Mon Sep 17 00:00:00 2001 From: Ghislain Vaillant Date: Tue, 28 Oct 2025 09:25:41 +0100 Subject: gnu: Add python-mock-ssh-server. * gnu/packages/python-xyz.scm (python-mock-ssh-server): New variable. Change-Id: Id5ab44d812fb6e0d8758961e81e4659e7c215823 Modified-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/ssh.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'gnu/packages/ssh.scm') diff --git a/gnu/packages/ssh.scm b/gnu/packages/ssh.scm index 975eace5ac4..28f2955cd73 100644 --- a/gnu/packages/ssh.scm +++ b/gnu/packages/ssh.scm @@ -876,6 +876,35 @@ server implementation of the SSHv2 protocol on top of the Python 3.6+ asyncio framework.") (license license:epl2.0))) +(define-public python-mock-ssh-server + (package + (name "python-mock-ssh-server") + (version "0.9.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/carletes/mock-ssh-server") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0fmnn2ddfagi0qybnw1n10hn29jawnj01bgwl4p9lnwx71c7x5y8")))) + (build-system pyproject-build-system) + (native-inputs + (list inetutils + openssh + python-pytest + python-setuptools)) + (propagated-inputs + (list python-paramiko)) + (home-page "https://github.com/carletes/mock-ssh-server") + (synopsis "Mock SSH server for testing purposes") + (description + "@code{mock-ssh-server} packs a Python context manager that implements an +SSH server for testing purposes. It is built on top of paramiko, so it does not +need OpenSSH binaries to be installed.") + (license license:expat))) + (define-public clustershell (package (name "clustershell") -- cgit v1.3