summary refs log tree commit diff
path: root/pkgs/tools/networking/wifite2
diff options
context:
space:
mode:
authorDaniel Fullmer <danielrf12@gmail.com>2022-02-06 14:34:48 -0800
committerDaniel Fullmer <danielrf12@gmail.com>2022-02-06 14:34:48 -0800
commitb8654c7cd2afde041d1d84f69e75cc0e7bb61efc (patch)
tree3bad64df48b4c9abfebd0ae020fb0f6b7fb0780b /pkgs/tools/networking/wifite2
parentb17c1821d1c21632606fdea8165b6114a5404a42 (diff)
downloadnixpkgs-b8654c7cd2afde041d1d84f69e75cc0e7bb61efc.tar
nixpkgs-b8654c7cd2afde041d1d84f69e75cc0e7bb61efc.tar.gz
nixpkgs-b8654c7cd2afde041d1d84f69e75cc0e7bb61efc.tar.bz2
nixpkgs-b8654c7cd2afde041d1d84f69e75cc0e7bb61efc.tar.lz
nixpkgs-b8654c7cd2afde041d1d84f69e75cc0e7bb61efc.tar.xz
nixpkgs-b8654c7cd2afde041d1d84f69e75cc0e7bb61efc.tar.zst
nixpkgs-b8654c7cd2afde041d1d84f69e75cc0e7bb61efc.zip
wifite: 2.5.7 -> 2.6.0
Diffstat (limited to 'pkgs/tools/networking/wifite2')
-rw-r--r--pkgs/tools/networking/wifite2/default.nix25
1 files changed, 7 insertions, 18 deletions
diff --git a/pkgs/tools/networking/wifite2/default.nix b/pkgs/tools/networking/wifite2/default.nix
index 4069e378a29..98ca976fd3e 100644
--- a/pkgs/tools/networking/wifite2/default.nix
+++ b/pkgs/tools/networking/wifite2/default.nix
@@ -3,29 +3,24 @@
 , hcxdumptool, which, bully, pixiewps }:
 
 python3.pkgs.buildPythonApplication rec {
-  version = "2.5.7";
+  version = "2.6.0";
   pname = "wifite2";
 
   src = fetchFromGitHub {
     owner = "kimocoder";
     repo = "wifite2";
     rev = version;
-    sha256 = "sha256-dJ+UOSIR48m8nGoci/6iblLsX296ZGL1hZ74RUsa9lw=";
+    sha256 = "sha256-q8aECegyIoAtYFsm8QEr8OnX+GTqjEeWfYQyESk27SA=";
   };
 
   patches = [
-    # Fix issue when missing optional pyrit dependency: https://github.com/kimocoder/wifite2/pull/76
     (fetchpatch {
-      url = "https://github.com/kimocoder/wifite2/commit/2e5d76c794f2e5493cf5048384d6564727ae2c19.patch";
-      sha256 = "0lawk8s1md98g061xg6ma37wqyqc4j2ag0gmf7insf4kvlgg3l9z";
+      url = "https://salsa.debian.org/pkg-security-team/wifite/raw/debian/2.5.8-2/debian/patches/Disable-aircrack-failing-test.patch";
+      sha256 = "1kj2m973l067fdg9dj61vbjf4ym9x1m9kn0q8ci9r6bb30yg6sv2";
     })
     (fetchpatch {
-      url = "https://salsa.debian.org/pkg-security-team/wifite/raw/debian/${version}-1/debian/patches/Disable-aircrack-failing-test.patch";
-      sha256 = "04qql8w27c1lqk59ghkr1n6r08jwdrb1dcam5k88szkk2bxv8yx1";
-    })
-    (fetchpatch {
-      url = "https://salsa.debian.org/pkg-security-team/wifite/raw/debian/${version}-1/debian/patches/Disable-two-failing-tests.patch";
-      sha256 = "1sixcqz1kbkhxf38yq55pwycm54adjx22bq46dfnl44mg69nx356";
+      url = "https://salsa.debian.org/pkg-security-team/wifite/raw/debian/2.5.8-2/debian/patches/Disable-two-failing-tests.patch";
+      sha256 = "15vas7zvpdk2lr1pzv8hli6jhdib0dibp7cmikiai53idjxay56z";
     })
     (fetchpatch {
       url = "https://salsa.debian.org/pkg-security-team/wifite/raw/debian/2.5.8-2/debian/patches/fix-for-new-which.patch";
@@ -47,17 +42,11 @@ python3.pkgs.buildPythonApplication rec {
     pixiewps
   ];
 
-  postFixup = let
-    sitePackagesDir = "$out/lib/python3.${lib.versions.minor python3.version}/site-packages";
-  in ''
-    mv ${sitePackagesDir}/wifite/__main__.py ${sitePackagesDir}/wifite/wifite.py
-  '';
-
   checkInputs = propagatedBuildInputs;
   checkPhase = "python -m unittest discover tests -v";
 
   meta = with lib; {
-    homepage = "https://github.com/derv82/wifite2";
+    homepage = "https://github.com/kimocoder/wifite2";
     description = "Rewrite of the popular wireless network auditor, wifite";
     license = licenses.gpl2;
     platforms = platforms.linux;