2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, chardet
|
2021-01-15 22:18:51 +00:00
|
|
|
, colorama
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, netaddr
|
|
|
|
, pycurl
|
2021-01-15 22:18:51 +00:00
|
|
|
, pyparsing
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest
|
2021-01-15 22:18:51 +00:00
|
|
|
, pytestCheckHook
|
2022-06-16 17:23:12 +00:00
|
|
|
, pythonOlder
|
2021-01-15 22:18:51 +00:00
|
|
|
, setuptools
|
2020-04-24 23:36:52 +00:00
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wfuzz";
|
2021-01-15 22:18:51 +00:00
|
|
|
version = "3.1.0";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xmendez";
|
|
|
|
repo = pname;
|
2021-01-15 22:18:51 +00:00
|
|
|
rev = "v${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-RM6QM/iR00ymg0FBUtaWAtxPHIX4u9U/t5N/UT/T6sc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
chardet
|
|
|
|
pycurl
|
|
|
|
six
|
2021-01-15 22:18:51 +00:00
|
|
|
setuptools
|
|
|
|
pyparsing
|
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isWindows [
|
|
|
|
colorama
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
checkInputs = [
|
|
|
|
netaddr
|
|
|
|
pytest
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# The tests are requiring a local web server
|
|
|
|
"tests/test_acceptance.py"
|
|
|
|
"tests/acceptance/test_saved_filter.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"wfuzz"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-01-15 22:18:51 +00:00
|
|
|
description = "Web content fuzzer to facilitate web applications assessments";
|
|
|
|
longDescription = ''
|
|
|
|
Wfuzz provides a framework to automate web applications security assessments
|
|
|
|
and could help you to secure your web applications by finding and exploiting
|
|
|
|
web application vulnerabilities.
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://wfuzz.readthedocs.io";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = with licenses; [ gpl2Only ];
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ pamplemousse ];
|
|
|
|
};
|
|
|
|
}
|