From 20ecd968c8b0183e76a2daae0fc8da6994285462 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 13 May 2022 10:24:45 +0200 Subject: [PATCH] python310Packages.ssh-mitm: init at 2.0.0 --- .../python-modules/ssh-mitm/default.nix | 58 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + pkgs/top-level/python-packages.nix | 2 + 3 files changed, 62 insertions(+) create mode 100644 pkgs/development/python-modules/ssh-mitm/default.nix diff --git a/pkgs/development/python-modules/ssh-mitm/default.nix b/pkgs/development/python-modules/ssh-mitm/default.nix new file mode 100644 index 000000000000..6973db343f61 --- /dev/null +++ b/pkgs/development/python-modules/ssh-mitm/default.nix @@ -0,0 +1,58 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, colored +, enhancements +, packaging +, paramiko +, pytz +, pyyaml +, requests +, rich +, sshpubkeys +, typeguard +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "ssh-mitm"; + version = "2.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = pname; + repo = pname; + rev = version; + hash = "sha256-1Vx68ISsT2Vrzy3YBqDqcGEHXHzdKR8jTtBH9SNXT2s="; + }; + + propagatedBuildInputs = [ + colored + enhancements + packaging + paramiko + pytz + pyyaml + requests + rich + sshpubkeys + typeguard + ]; + + # 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"; + license = licenses.lgpl3Only; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8fe1c79cf7eb..bd2b01b3d421 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2469,6 +2469,8 @@ with pkgs; ssh-key-confirmer = callPackage ../tools/networking/ssh-key-confirmer { }; + ssh-mitm = with python3Packages; toPythonApplication ssh-mitm; + sshchecker = callPackage ../tools/security/sshchecker { }; titaniumenv = callPackage ../development/mobile/titaniumenv { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6be2f1f1f8ce..bbb79198bc56 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9885,6 +9885,8 @@ in { sseclient-py = callPackage ../development/python-modules/sseclient-py { }; + ssh-mitm = callPackage ../development/python-modules/ssh-mitm { }; + sshpubkeys = callPackage ../development/python-modules/sshpubkeys { }; sshtunnel = callPackage ../development/python-modules/sshtunnel { };