depot/third_party/nixpkgs/pkgs/development/python-modules/ssh-mitm/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

55 lines
978 B
Nix

{ lib
, argcomplete
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, colored
, packaging
, paramiko
, pytz
, pyyaml
, rich
, sshpubkeys
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "ssh-mitm";
version = "3.0.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-bFxpgzomtcFGf0LfLUR05y3+/8DNhND6EKAmCZcYb5E=";
};
propagatedBuildInputs = [
argcomplete
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";
changelog = "https://github.com/ssh-mitm/ssh-mitm/blob/${version}/CHANGELOG.md";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
};
}