Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 846 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 python3, 5}: 6 7python3.pkgs.buildPythonApplication rec { 8 pname = "regexploit"; 9 version = "1.0.0"; 10 pyproject = true; 11 12 disabled = python3.pythonOlder "3.8"; 13 14 src = fetchFromGitHub { 15 owner = "doyensec"; 16 repo = "regexploit"; 17 rev = "v${version}"; 18 sha256 = "0z3fghsyw0ll36in7ihc0qi3gy7mqi6cw1mi8m8c8xb1nlwpfr0y"; 19 }; 20 21 build-system = with python3.pkgs; [ 22 setuptools 23 ]; 24 25 dependencies = with python3.pkgs; [ 26 pyyaml 27 ]; 28 29 nativeCheckInputs = with python3.pkgs; [ 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ "regexploit" ]; 34 35 meta = with lib; { 36 description = "Tool to find regular expressions which are vulnerable to ReDoS"; 37 homepage = "https://github.com/doyensec/regexploit"; 38 license = with licenses; [ asl20 ]; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}