1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 paramiko,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "mock-ssh-server";
11 version = "0.9.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "carletes";
18 repo = pname;
19 rev = "refs/tags/${version}";
20 hash = "sha256-yJd+WDidW5ouofytAKTlSiZhIQg2cLs8BvEp15qwtjo=";
21 };
22
23 propagatedBuildInputs = [ paramiko ];
24
25 # Tests are running into a timeout on Hydra, they work locally
26 doCheck = false;
27
28 pythonImportsCheck = [ "mockssh" ];
29
30 meta = with lib; {
31 description = "Python mock SSH server for testing purposes";
32 homepage = "https://github.com/carletes/mock-ssh-server";
33 changelog = "https://github.com/carletes/mock-ssh-server/releases/tag/${version}";
34 license = licenses.mit;
35 maintainers = with maintainers; [ fab ];
36 };
37}