summary refs log tree commit diff
path: root/pkgs/development/python-modules/wfuzz/default.nix
blob: a43aa915ea0ba24e1b4120a5dc05e00fe62c8b26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{ 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 ];
  };
}