diff --git a/pkgs/tools/security/websploit/default.nix b/pkgs/by-name/we/websploit/package.nix similarity index 51% rename from pkgs/tools/security/websploit/default.nix rename to pkgs/by-name/we/websploit/package.nix index b8db06427f86..71bde35175b2 100644 --- a/pkgs/tools/security/websploit/default.nix +++ b/pkgs/by-name/we/websploit/package.nix @@ -1,18 +1,25 @@ -{ lib, buildPythonApplication, fetchFromGitHub -, requests, scapy }: +{ lib +, fetchFromGitHub +, python3 +}: -buildPythonApplication rec { +python3.pkgs.buildPythonApplication rec { pname = "websploit"; version = "4.0.4"; + pyproject = true; src = fetchFromGitHub { owner = "f4rih"; - repo = pname; - rev = version; + repo = "websploit"; + rev = "refs/tags/${version}"; sha256 = "LpDfJmH2FbL37Fk86CAC/bxFqM035DBN6c6FPfGpaIw="; }; - propagatedBuildInputs = [ + nativeBuildInputs = with python3.pkgs; [ + setuptools + ]; + + propagatedBuildInputs = with python3.pkgs; [ requests scapy ]; @@ -20,10 +27,16 @@ buildPythonApplication rec { # 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"; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 960a7f60cb82..ccc43ee737be 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -36363,8 +36363,6 @@ with pkgs; stdenv = if stdenv.cc.isClang then gccStdenv else stdenv; }; - websploit = python3Packages.callPackage ../tools/security/websploit { }; - webssh = with python3Packages; toPythonApplication webssh; webtorrent_desktop = callPackage ../applications/video/webtorrent_desktop {