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