about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/we/websploit/package.nix
blob: 71bde35175b2016b2af06ecbf6cc4ae00d8b7d4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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";
  };
}