fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
37 lines
869 B
Nix
37 lines
869 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
paramiko,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mock-ssh-server";
|
|
version = "0.9.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "carletes";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-yJd+WDidW5ouofytAKTlSiZhIQg2cLs8BvEp15qwtjo=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ paramiko ];
|
|
|
|
# Tests are running into a timeout on Hydra, they work locally
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "mockssh" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python mock SSH server for testing purposes";
|
|
homepage = "https://github.com/carletes/mock-ssh-server";
|
|
changelog = "https://github.com/carletes/mock-ssh-server/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|