2022-05-13 10:24:45 +02:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2023-05-16 14:27:07 +02:00
|
|
|
, python3
|
2022-05-13 10:24:45 +02:00
|
|
|
}:
|
|
|
|
|
2023-05-16 14:27:07 +02:00
|
|
|
let
|
|
|
|
py = python3.override {
|
|
|
|
packageOverrides = self: super: {
|
|
|
|
paramiko = super.paramiko.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "3.1.0";
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-aVD6ymgZrNMhnUrmlKI8eofuONCE9wwXJLDA27i3V2k=";
|
|
|
|
};
|
|
|
|
patches = [ ];
|
|
|
|
propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [ python3.pkgs.icecream ];
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
with py.pkgs;
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2022-05-13 10:24:45 +02:00
|
|
|
pname = "ssh-mitm";
|
2023-02-27 02:14:52 +01:00
|
|
|
version = "3.0.2";
|
2022-05-13 10:24:45 +02:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2022-06-13 04:46:10 +02:00
|
|
|
rev = "refs/tags/${version}";
|
2023-02-27 02:14:52 +01:00
|
|
|
hash = "sha256-koV7g6ZmrrXk60rrDP8BwrDZk3shiyJigQgNcb4BASE=";
|
2022-05-13 10:24:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-12-25 19:48:17 +01:00
|
|
|
argcomplete
|
2022-05-13 10:24:45 +02:00
|
|
|
colored
|
|
|
|
packaging
|
|
|
|
paramiko
|
|
|
|
pytz
|
|
|
|
pyyaml
|
|
|
|
rich
|
2023-05-16 14:27:07 +02:00
|
|
|
setuptools
|
2022-05-13 10:24:45 +02:00
|
|
|
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-25 19:48:17 +01:00
|
|
|
changelog = "https://github.com/ssh-mitm/ssh-mitm/blob/${version}/CHANGELOG.md";
|
|
|
|
license = licenses.gpl3Only;
|
2022-05-13 10:24:45 +02:00
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|