2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
2022-12-28 21:21:41 +00:00
|
|
|
, argcomplete
|
2022-05-18 14:49:53 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, colored
|
|
|
|
, packaging
|
|
|
|
, paramiko
|
|
|
|
, pytz
|
|
|
|
, pyyaml
|
|
|
|
, rich
|
|
|
|
, sshpubkeys
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ssh-mitm";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "3.0.1";
|
2022-05-18 14:49:53 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-12-28 21:21:41 +00:00
|
|
|
hash = "sha256-bFxpgzomtcFGf0LfLUR05y3+/8DNhND6EKAmCZcYb5E=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-12-28 21:21:41 +00:00
|
|
|
argcomplete
|
2022-05-18 14:49:53 +00:00
|
|
|
colored
|
|
|
|
packaging
|
|
|
|
paramiko
|
|
|
|
pytz
|
|
|
|
pyyaml
|
|
|
|
rich
|
|
|
|
sshpubkeys
|
|
|
|
];
|
|
|
|
|
|
|
|
# Module has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"sshmitm"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool for SSH security audits";
|
|
|
|
homepage = "https://github.com/ssh-mitm/ssh-mitm";
|
2022-12-28 21:21:41 +00:00
|
|
|
changelog = "https://github.com/ssh-mitm/ssh-mitm/blob/${version}/CHANGELOG.md";
|
|
|
|
license = licenses.gpl3Only;
|
2022-05-18 14:49:53 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|