mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
52 lines
988 B
Nix
52 lines
988 B
Nix
{ buildPythonPackage
|
|
, chardet
|
|
, configparser
|
|
, fetchFromGitHub
|
|
, future
|
|
, isPy27
|
|
, lib
|
|
, mock
|
|
, netaddr
|
|
, pkgs
|
|
, pyparsing
|
|
, pycurl
|
|
, pytest
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "wfuzz";
|
|
version = "2.4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xmendez";
|
|
repo = pname;
|
|
rev = "v.${version}";
|
|
sha256 = "15dihrc7jsvpxcmb4fp254s633mkjm7ksjfkr9pqaai49qmnddyf";
|
|
};
|
|
|
|
buildInputs = [ pyparsing configparser ];
|
|
|
|
propagatedBuildInputs = [
|
|
chardet
|
|
future
|
|
pycurl
|
|
six
|
|
];
|
|
|
|
checkInputs = [ netaddr pytest ] ++ lib.optionals isPy27 [ mock ];
|
|
|
|
# Skip tests requiring a local web server.
|
|
checkPhase = ''
|
|
HOME=$TMPDIR pytest \
|
|
tests/test_{moduleman,filterintro,reqresp,api,clparser,dotdict}.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Web content fuzzer, to facilitate web applications assessments";
|
|
homepage = "https://wfuzz.readthedocs.io";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ pamplemousse ];
|
|
};
|
|
}
|