nixpkgs/pkgs/development/python-modules/wfuzz/default.nix

70 lines
1.4 KiB
Nix
Raw Normal View History

2019-12-19 19:25:29 +00:00
{ buildPythonPackage
, chardet
2021-01-03 21:50:18 +00:00
, colorama
2019-12-19 19:25:29 +00:00
, configparser
, fetchFromGitHub
, future
, isPy27
, lib
, mock
, netaddr
, pkgs
, pycurl
2021-01-03 21:50:18 +00:00
, pyparsing
2019-12-19 19:25:29 +00:00
, pytest
2021-01-03 21:53:04 +00:00
, pytestCheckHook
2021-01-03 21:50:18 +00:00
, setuptools
2019-12-19 19:25:29 +00:00
, six
2021-01-03 21:50:18 +00:00
, stdenv
2019-12-19 19:25:29 +00:00
}:
buildPythonPackage rec {
pname = "wfuzz";
2021-01-03 21:50:18 +00:00
version = "3.1.0";
2019-12-19 19:25:29 +00:00
src = fetchFromGitHub {
owner = "xmendez";
repo = pname;
2021-01-03 21:50:18 +00:00
rev = "v${version}";
sha256 = "1izasczm2zwknwzxbfzqhlf4zp02jvb54ha1hfk4rlwiz0rr1kj4";
2019-12-19 19:25:29 +00:00
};
propagatedBuildInputs = [
chardet
pycurl
six
2021-01-03 21:50:18 +00:00
setuptools
pyparsing
] ++ lib.optionals isPy27 [
mock
future
] ++ lib.optionals stdenv.hostPlatform.isWindows [
colorama
2019-12-19 19:25:29 +00:00
];
2021-01-03 21:50:18 +00:00
checkInputs = [
netaddr
pytest
2021-01-03 21:53:04 +00:00
pytestCheckHook
2021-01-03 21:50:18 +00:00
] ++ lib.optionals isPy27 [
mock
];
2019-12-19 19:25:29 +00:00
2021-01-03 21:53:04 +00:00
preCheck = "export HOME=$(mktemp -d)";
2021-01-03 21:50:18 +00:00
# The skipped tests are requiring a local web server
2021-01-03 21:53:04 +00:00
pytestFlagsArray = [ "tests/test_{moduleman,filterintro,reqresp,api,clparser}.py" ];
pythonImportsCheck = [ "wfuzz" ];
2019-12-19 19:25:29 +00:00
meta = with lib; {
2021-01-03 21:51:26 +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.
'';
2019-12-19 19:25:29 +00:00
homepage = "https://wfuzz.readthedocs.io";
2021-01-03 21:51:26 +00:00
license = with licenses; [ gpl2Only ];
2019-12-19 19:25:29 +00:00
maintainers = with maintainers; [ pamplemousse ];
};
}