nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 python3,
5}:
6
7python3.pkgs.buildPythonApplication (finalAttrs: {
8 pname = "regexploit";
9 version = "1.0.0";
10 pyproject = true;
11
12 src = fetchFromGitHub {
13 owner = "doyensec";
14 repo = "regexploit";
15 tag = "v${finalAttrs.version}";
16 hash = "sha256-HmR3ObVhdcRQRbEGzkzE9fg3IgYMxmOjGZQC7jV8bnw=";
17 };
18
19 build-system = with python3.pkgs; [ setuptools ];
20
21 dependencies = with python3.pkgs; [ pyyaml ];
22
23 nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "regexploit" ];
26
27 meta = {
28 description = "Tool to find regular expressions which are vulnerable to ReDoS";
29 homepage = "https://github.com/doyensec/regexploit";
30 changelog = "https://github.com/doyensec/regexploit/releases/tag/v${finalAttrs.src.tag}";
31 license = lib.licenses.asl20;
32 maintainers = with lib.maintainers; [ fab ];
33 };
34})