mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
routersploit: unstable-2021-02-06 -> 3.4.1-unstable-2025-04-24
(cherry picked from commit f969f27fa5)
This commit is contained in:
committed by
github-actions[bot]
parent
3e1e848be4
commit
b135ab7cda
@@ -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";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user