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

python3.pkgs.buildPythonApplication rec {
  pname = "crackql";
  version = "unstable-20220821";
  format = "pyproject";

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

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

  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 ];
  };
}