mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
36 lines
758 B
Nix
36 lines
758 B
Nix
{ 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
|
|
];
|
|
|
|
checkInputs = 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 ];
|
|
};
|
|
}
|