Merge pull request #300555 from Tochiaha/dhcpig

dhcpig: init at 1.6

authored by Aleksana and committed by GitHub 249a78b2 179fb342

+37
+37
pkgs/by-name/dh/dhcpig/package.nix
···
··· 1 + { lib 2 + , python3 3 + , fetchFromGitHub 4 + }: 5 + 6 + python3.pkgs.buildPythonApplication rec { 7 + pname = "dhcpig"; 8 + version = "1.6"; 9 + pyproject = true; 10 + 11 + src = fetchFromGitHub { 12 + owner = "kamorin"; 13 + repo = "DHCPig"; 14 + rev = "refs/tags/${version}"; 15 + hash = "sha256-MquLChDuJe3DdkxxKV4W0o49IIt7Am+yuhdOqUqexS8="; 16 + }; 17 + 18 + build-system = with python3.pkgs; [ 19 + setuptools 20 + ]; 21 + 22 + dependencies = with python3.pkgs; [ 23 + scapy 24 + ]; 25 + 26 + installPhase = '' 27 + install -Dm755 pig.py $out/bin/dhcpig 28 + ''; 29 + 30 + meta = with lib; { 31 + description = "Tool to perform advanced DHCP exhaustion attack"; 32 + homepage = "https://github.com/kamorin/DHCPig"; 33 + license = licenses.gpl2Plus; 34 + maintainers = with maintainers; [ tochiaha ]; 35 + mainProgram = "dhcpig"; 36 + }; 37 + }