btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / wi / wifite2 / package.nix
blob250caa468ba598a5c06beead965d782eb1a7c6c4
1 { lib
2 , fetchFromGitHub
3 , fetchpatch
4 , python3
5 , python3Packages
6 , wirelesstools
7 , aircrack-ng
8 , wireshark-cli
9 , reaverwps-t6x
10 , cowpatty
11 , hashcat
12 , hcxtools
13 , hcxdumptool
14 , which
15 , bully
16 , pixiewps
17 , john
18 , iw
19 , macchanger
22 let
23   pythonDependencies = with python3Packages; [
24     chardet
25     scapy
26   ];
28 python3.pkgs.buildPythonApplication rec {
29   pname = "wifite2";
30   version = "2.7.0";
32   src = fetchFromGitHub {
33     owner = "kimocoder";
34     repo = "wifite2";
35     rev = version;
36     hash = "sha256-G2AKKZUDS2UQm95TEhGJIucyMRcm7oL0d3J8uduEQhw=";
37   };
39   patches = [
40     (fetchpatch {
41       url = "https://salsa.debian.org/pkg-security-team/wifite/raw/debian/2.7.0-1/debian/patches/Disable-aircrack-failing-test.patch";
42       hash = "sha256-BUAowBajfnZ1x6Z3Ce3L0rAERv7v/KrdHcdvKxTxSrM=";
43     })
44     (fetchpatch {
45       url = "https://salsa.debian.org/pkg-security-team/wifite/raw/debian/2.7.0-1/debian/patches/Disable-two-failing-tests.patch";
46       hash = "sha256-wCwfNkF/GvOU5FWPmQ3dJ4Txthz9T9TO2xhSL5vllQc=";
47     })
48     (fetchpatch {
49       url = "https://salsa.debian.org/pkg-security-team/wifite/raw/debian/2.7.0-1/debian/patches/fix-for-new-which.patch";
50       hash = "sha256-8xs+O2ILSRcvsw2pyx2gEBFHdduoI+xmUvDBchKz2Qs=";
51     })
52   ];
54   propagatedBuildInputs = [
55     aircrack-ng
56     wireshark-cli
57     reaverwps-t6x
58     cowpatty
59     hashcat
60     hcxtools
61     hcxdumptool
62     wirelesstools
63     which
64     bully
65     pixiewps
66     john
67     iw
68     macchanger
69   ] ++ pythonDependencies;
71   nativeCheckInputs = propagatedBuildInputs ++ [ python3.pkgs.unittestCheckHook ];
73   meta = with lib; {
74     homepage = "https://github.com/kimocoder/wifite2";
75     description = "Rewrite of the popular wireless network auditor, wifite";
76     mainProgram = "wifite";
77     license = licenses.gpl2Plus;
78     platforms = platforms.linux;
79     maintainers = with maintainers; [ lassulus danielfullmer d3vil0p3r ];
80   };