From f969f27fa5980f4406b66d52987953cf1e9cf60e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 19 May 2025 20:39:16 +0200 Subject: [PATCH] routersploit: unstable-2021-02-06 -> 3.4.1-unstable-2025-04-24 --- pkgs/by-name/ro/routersploit/package.nix | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/ro/routersploit/package.nix b/pkgs/by-name/ro/routersploit/package.nix index 0ff779a6de1d..1bb8da28873a 100644 --- a/pkgs/by-name/ro/routersploit/package.nix +++ b/pkgs/by-name/ro/routersploit/package.nix @@ -6,25 +6,31 @@ python3.pkgs.buildPythonApplication rec { pname = "routersploit"; - version = "unstable-2021-02-06"; - format = "setuptools"; + version = "3.4.1-unstable-2025-04-24"; + pyproject = true; src = fetchFromGitHub { owner = "threat9"; - repo = pname; - rev = "3fd394637f5566c4cf6369eecae08c4d27f93cda"; + repo = "routersploit"; + rev = "0bf837f67ed2131077c4192c21909104aab9f13d"; hash = "sha256-IET0vL0VVP9ZNn75hKdTCiEmOZRHHYICykhzW2g3LEg="; }; - propagatedBuildInputs = with python3.pkgs; [ + build-system = with python3.pkgs; [ setuptools ]; + + dependencies = with python3.pkgs; [ future paramiko pycryptodome pysnmp requests setuptools + standard-telnetlib ]; + # Tests are out-dated and support for newer pysnmp is not implemented yet + doCheck = false; + nativeCheckInputs = with python3.pkgs; [ pytest-xdist pytestCheckHook @@ -35,9 +41,7 @@ python3.pkgs.buildPythonApplication rec { mv $out/bin/rsf.py $out/bin/rsf ''; - pythonImportsCheck = [ - "routersploit" - ]; + pythonImportsCheck = [ "routersploit" ]; pytestFlagsArray = [ # Run the same tests as upstream does in the first round @@ -49,7 +53,7 @@ python3.pkgs.buildPythonApplication rec { meta = with lib; { description = "Exploitation Framework for Embedded Devices"; homepage = "https://github.com/threat9/routersploit"; - license = with licenses; [ bsd3 ]; + license = licenses.bsd3; maintainers = with maintainers; [ fab ]; mainProgram = "rsf"; };