Skip to content

Commit

Permalink
python312Packages.wfuzz: modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed Aug 23, 2024
1 parent d3353b0 commit a0ad43a
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions pkgs/development/python-modules/wfuzz/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
buildPythonPackage,
chardet,
colorama,
distutils,
fetchFromGitHub,
netaddr,
pycurl,
pyparsing,
pytest,
pytestCheckHook,
pythonOlder,
setuptools,
Expand All @@ -19,14 +19,14 @@
buildPythonPackage rec {
pname = "wfuzz";
version = "3.1.0";
format = "setuptools";
pyproject = true;

disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "xmendez";
repo = pname;
rev = "v${version}";
repo = "wfuzz";
rev = "refs/tags/v${version}";
hash = "sha256-RM6QM/iR00ymg0FBUtaWAtxPHIX4u9U/t5N/UT/T6sc=";
};

Expand All @@ -41,15 +41,14 @@ buildPythonPackage rec {

postPatch = ''
substituteInPlace setup.py \
--replace "pyparsing>=2.4*" "pyparsing>=2.4"
# fix distutils use for Python 3.12
substituteInPlace src/wfuzz/plugin_api/base.py \
--replace-fail "from distutils import util" "from setuptools._distutils import util"
--replace-fail "pyparsing>=2.4*" "pyparsing>=2.4"
'';

propagatedBuildInputs = [
build-system = [ setuptools ];

dependencies = [
chardet
distutils # src/wfuzz/plugin_api/base.py
pycurl
six
setuptools
Expand All @@ -58,7 +57,6 @@ buildPythonPackage rec {

nativeCheckInputs = [
netaddr
pytest
pytestCheckHook
];

Expand All @@ -82,6 +80,7 @@ buildPythonPackage rec {
'';

meta = with lib; {
changelog = "https://github.com/xmendez/wfuzz/releases/tag/v${version}";
description = "Web content fuzzer to facilitate web applications assessments";
longDescription = ''
Wfuzz provides a framework to automate web applications security assessments
Expand Down

0 comments on commit a0ad43a

Please sign in to comment.