about summary refs log tree commit diff
path: root/pkgs/tools/security/regexploit/default.nix
blob: b921cbcc3b3c09a9229c0c824d766a311445ad32 (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
{ lib
, fetchFromGitHub
, python3
}:

python3.pkgs.buildPythonApplication rec {
  pname = "regexploit";
  version = "1.0.0";

  disabled = python3.pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "doyensec";
    repo = pname;
    rev = "v${version}";
    sha256 = "0z3fghsyw0ll36in7ihc0qi3gy7mqi6cw1mi8m8c8xb1nlwpfr0y";
  };

  propagatedBuildInputs = with python3.pkgs; [
    pyyaml
  ];

  nativeCheckInputs = with python3.pkgs; [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "regexploit" ];

  meta = with lib; {
    description = "Tool to find regular expressions which are vulnerable to ReDoS";
    homepage = "https://github.com/doyensec/regexploit";
    license = with licenses; [ asl20 ];
    maintainers = with maintainers; [ fab ];
  };
}