websploit: refactor
This commit is contained in:
parent
7081bd488c
commit
185db04300
pkgs
@ -1,18 +1,25 @@
|
|||||||
{ lib, buildPythonApplication, fetchFromGitHub
|
{ lib
|
||||||
, requests, scapy }:
|
, fetchFromGitHub
|
||||||
|
, python3
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "websploit";
|
pname = "websploit";
|
||||||
version = "4.0.4";
|
version = "4.0.4";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "f4rih";
|
owner = "f4rih";
|
||||||
repo = pname;
|
repo = "websploit";
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
sha256 = "LpDfJmH2FbL37Fk86CAC/bxFqM035DBN6c6FPfGpaIw=";
|
sha256 = "LpDfJmH2FbL37Fk86CAC/bxFqM035DBN6c6FPfGpaIw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
nativeBuildInputs = with python3.pkgs; [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
requests
|
requests
|
||||||
scapy
|
scapy
|
||||||
];
|
];
|
||||||
@ -20,10 +27,16 @@ buildPythonApplication rec {
|
|||||||
# Project has no tests
|
# Project has no tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"websploit"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A high level MITM framework";
|
description = "A high level MITM framework";
|
||||||
homepage = "https://github.com/f4rih/websploit";
|
homepage = "https://github.com/f4rih/websploit";
|
||||||
|
changelog = "https://github.com/f4rih/websploit/releases/tag/${version}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ emilytrau ];
|
maintainers = with maintainers; [ emilytrau ];
|
||||||
|
mainProgram = "websploit";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -36362,7 +36362,7 @@ with pkgs;
|
|||||||
stdenv = if stdenv.cc.isClang then gccStdenv else stdenv;
|
stdenv = if stdenv.cc.isClang then gccStdenv else stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
websploit = python3Packages.callPackage ../tools/security/websploit { };
|
websploit = callPackage ../tools/security/websploit { };
|
||||||
|
|
||||||
webssh = with python3Packages; toPythonApplication webssh;
|
webssh = with python3Packages; toPythonApplication webssh;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user