acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / dh / dhcpig / package.nix
blob679a91e4b0c9564ae1c155dcf38989555b4ea453
1 { lib
2 , python3
3 , fetchFromGitHub
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "dhcpig";
8   version = "1.6";
9   pyproject = true;
11   src = fetchFromGitHub {
12     owner = "kamorin";
13     repo = "DHCPig";
14     rev = "refs/tags/${version}";
15     hash = "sha256-MquLChDuJe3DdkxxKV4W0o49IIt7Am+yuhdOqUqexS8=";
16   };
18   build-system = with python3.pkgs; [
19     setuptools
20   ];
22   dependencies = with python3.pkgs; [
23     scapy
24   ];
26   installPhase = ''
27     install -Dm755 pig.py $out/bin/dhcpig
28   '';
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   };