Merge pull request #107789 from fabaff/bump-wfuzz

This commit is contained in:
Sandro 2021-01-12 16:03:07 +01:00 committed by GitHub
commit 5e6a233429
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
{ buildPythonPackage { buildPythonPackage
, chardet , chardet
, colorama
, configparser , configparser
, fetchFromGitHub , fetchFromGitHub
, future , future
@ -8,44 +9,61 @@
, mock , mock
, netaddr , netaddr
, pkgs , pkgs
, pyparsing
, pycurl , pycurl
, pyparsing
, pytest , pytest
, pytestCheckHook
, setuptools
, six , six
, stdenv
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "wfuzz"; pname = "wfuzz";
version = "2.4.2"; version = "3.1.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "xmendez"; owner = "xmendez";
repo = pname; repo = pname;
rev = "v.${version}"; rev = "v${version}";
sha256 = "15dihrc7jsvpxcmb4fp254s633mkjm7ksjfkr9pqaai49qmnddyf"; sha256 = "1izasczm2zwknwzxbfzqhlf4zp02jvb54ha1hfk4rlwiz0rr1kj4";
}; };
buildInputs = [ pyparsing configparser ];
propagatedBuildInputs = [ propagatedBuildInputs = [
chardet chardet
future
pycurl pycurl
six six
setuptools
pyparsing
] ++ lib.optionals isPy27 [
mock
future
] ++ lib.optionals stdenv.hostPlatform.isWindows [
colorama
]; ];
checkInputs = [ netaddr pytest ] ++ lib.optionals isPy27 [ mock ]; checkInputs = [
netaddr
pytest
pytestCheckHook
] ++ lib.optionals isPy27 [
mock
];
# Skip tests requiring a local web server. preCheck = "export HOME=$(mktemp -d)";
checkPhase = '' # The skipped tests are requiring a local web server
HOME=$TMPDIR pytest \ pytestFlagsArray = [ "tests/test_{moduleman,filterintro,reqresp,api,clparser}.py" ];
tests/test_{moduleman,filterintro,reqresp,api,clparser,dotdict}.py pythonImportsCheck = [ "wfuzz" ];
'';
meta = with lib; { meta = with lib; {
description = "Web content fuzzer, to facilitate web applications assessments"; 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.
'';
homepage = "https://wfuzz.readthedocs.io"; homepage = "https://wfuzz.readthedocs.io";
license = licenses.gpl2; license = with licenses; [ gpl2Only ];
maintainers = with maintainers; [ pamplemousse ]; maintainers = with maintainers; [ pamplemousse ];
}; };
} }