nixpkgs/pkgs/by-name/we/websploit/package.nix
2024-01-17 10:58:02 +01:00

42 lines
867 B
Nix

{ 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";
};
}