Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitHub, 4 python3, 5}: 6 7python3.pkgs.buildPythonApplication rec { 8 pname = "websploit"; 9 version = "4.0.4"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "f4rih"; 14 repo = "websploit"; 15 tag = version; 16 hash = "sha256-LpDfJmH2FbL37Fk86CAC/bxFqM035DBN6c6FPfGpaIw="; 17 }; 18 19 nativeBuildInputs = with python3.pkgs; [ 20 setuptools 21 ]; 22 23 propagatedBuildInputs = with python3.pkgs; [ 24 requests 25 scapy 26 ]; 27 28 # Project has no tests 29 doCheck = false; 30 31 pythonImportsCheck = [ 32 "websploit" 33 ]; 34 35 meta = { 36 description = "High level MITM framework"; 37 homepage = "https://github.com/f4rih/websploit"; 38 changelog = "https://github.com/f4rih/websploit/releases/tag/${version}"; 39 license = lib.licenses.mit; 40 maintainers = with lib.maintainers; [ emilytrau ]; 41 mainProgram = "websploit"; 42 }; 43}