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

python3.pkgs.buildPythonApplication rec {
  pname = "crackql";
  version = "unstable-20230818";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "nicholasaleks";
    repo = "CrackQL";
    # rev = "refs/tags/${version}";
    # Switch to tag with the next update
    rev = "ac26a44c2dd201f65da0d1c3f95eaf776ed1b2dd";
    hash = "sha256-XlHbGkwdOV1nobjtQP/M3IIEuzXHBuwf52EsXf3MWoM=";
  };

  pythonRelaxDeps = [
    "graphql-core"
  ];

  nativeBuildInputs = with python3.pkgs; [
    poetry-core
    pythonRelaxDepsHook
  ];

  propagatedBuildInputs = with python3.pkgs; [
    requests
    graphql-core
    jinja2
    typing-extensions
  ];

  meta = with lib; {
    description = "GraphQL password brute-force and fuzzing utility";
    homepage = "https://github.com/nicholasaleks/CrackQL";
    license = with licenses; [ bsd3 ];
    maintainers = with maintainers; [ fab ];
  };
}