wifite2: migrate to pyproject (#543335)
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
python3,
|
||||
python3Packages,
|
||||
wirelesstools,
|
||||
aircrack-ng,
|
||||
@@ -20,16 +19,10 @@
|
||||
macchanger,
|
||||
}:
|
||||
|
||||
let
|
||||
pythonDependencies = with python3Packages; [
|
||||
chardet
|
||||
scapy
|
||||
];
|
||||
in
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "wifite2";
|
||||
version = "2.7.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kimocoder";
|
||||
@@ -38,6 +31,8 @@ python3.pkgs.buildPythonApplication rec {
|
||||
hash = "sha256-G2AKKZUDS2UQm95TEhGJIucyMRcm7oL0d3J8uduEQhw=";
|
||||
};
|
||||
|
||||
build-system = with python3Packages; [ setuptools ];
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://salsa.debian.org/pkg-security-team/wifite/raw/debian/2.7.0-1/debian/patches/Disable-aircrack-failing-test.patch";
|
||||
@@ -53,6 +48,13 @@ python3.pkgs.buildPythonApplication rec {
|
||||
})
|
||||
];
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
chardet
|
||||
scapy
|
||||
];
|
||||
|
||||
pythonRemoveDeps = [ "argparse" ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aircrack-ng
|
||||
wireshark-cli
|
||||
@@ -68,10 +70,9 @@ python3.pkgs.buildPythonApplication rec {
|
||||
john
|
||||
iw
|
||||
macchanger
|
||||
]
|
||||
++ pythonDependencies;
|
||||
];
|
||||
|
||||
nativeCheckInputs = propagatedBuildInputs ++ [ python3.pkgs.unittestCheckHook ];
|
||||
nativeCheckInputs = propagatedBuildInputs ++ [ python3Packages.pytestCheckHook ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/kimocoder/wifite2";
|
||||
|
||||
Reference in New Issue
Block a user