diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/we/websploit/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/we/websploit/package.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/we/websploit/package.nix b/nixpkgs/pkgs/by-name/we/websploit/package.nix new file mode 100644 index 000000000000..71bde35175b2 --- /dev/null +++ b/nixpkgs/pkgs/by-name/we/websploit/package.nix @@ -0,0 +1,42 @@ +{ lib +, fetchFromGitHub +, python3 +}: + +python3.pkgs.buildPythonApplication rec { + pname = "websploit"; + version = "4.0.4"; + pyproject = true; + + src = fetchFromGitHub { + owner = "f4rih"; + repo = "websploit"; + rev = "refs/tags/${version}"; + sha256 = "LpDfJmH2FbL37Fk86CAC/bxFqM035DBN6c6FPfGpaIw="; + }; + + nativeBuildInputs = with python3.pkgs; [ + setuptools + ]; + + propagatedBuildInputs = with python3.pkgs; [ + requests + scapy + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ + "websploit" + ]; + + meta = with lib; { + description = "A high level MITM framework"; + homepage = "https://github.com/f4rih/websploit"; + changelog = "https://github.com/f4rih/websploit/releases/tag/${version}"; + license = licenses.mit; + maintainers = with maintainers; [ emilytrau ]; + mainProgram = "websploit"; + }; +} |