about summary refs log tree commit diff
path: root/pkgs/by-name/we
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2024-01-17 10:58:02 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2024-01-17 10:58:02 +0100
commit0b44e534a38f6ef294740ae6d925f320ef4e6dc7 (patch)
tree8ab44dbb17b26a52ce06e94aabdb66c957c972de /pkgs/by-name/we
parent185db04300fad7188e574880feddd954cd691d4a (diff)
downloadnixlib-0b44e534a38f6ef294740ae6d925f320ef4e6dc7.tar
nixlib-0b44e534a38f6ef294740ae6d925f320ef4e6dc7.tar.gz
nixlib-0b44e534a38f6ef294740ae6d925f320ef4e6dc7.tar.bz2
nixlib-0b44e534a38f6ef294740ae6d925f320ef4e6dc7.tar.lz
nixlib-0b44e534a38f6ef294740ae6d925f320ef4e6dc7.tar.xz
nixlib-0b44e534a38f6ef294740ae6d925f320ef4e6dc7.tar.zst
nixlib-0b44e534a38f6ef294740ae6d925f320ef4e6dc7.zip
websploit: move to pkgs/by-name
Diffstat (limited to 'pkgs/by-name/we')
-rw-r--r--pkgs/by-name/we/websploit/package.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/by-name/we/websploit/package.nix b/pkgs/by-name/we/websploit/package.nix
new file mode 100644
index 000000000000..71bde35175b2
--- /dev/null
+++ b/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";
+  };
+}