nixpkgs-suyu/pkgs/tools/security/ssh-mitm/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
2023-05-16 14:27:07 +02:00
, python3
}:
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 {
pname = "ssh-mitm";
version = "3.0.2";
format = "setuptools";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-koV7g6ZmrrXk60rrDP8BwrDZk3shiyJigQgNcb4BASE=";
};
propagatedBuildInputs = [
argcomplete
colored
packaging
paramiko
pytz
pyyaml
rich
2023-05-16 14:27:07 +02:00
setuptools
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";
changelog = "https://github.com/ssh-mitm/ssh-mitm/blob/${version}/CHANGELOG.md";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
};
}