btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / cr / crackql / package.nix
blob121ed522afae93bd18a05fed98f8c716fec8938c
1 { lib
2 , fetchFromGitHub
3 , python3
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "crackql";
8   version = "unstable-20230818";
9   pyproject = true;
11   src = fetchFromGitHub {
12     owner = "nicholasaleks";
13     repo = "CrackQL";
14     # rev = "refs/tags/${version}";
15     # Switch to tag with the next update
16     rev = "ac26a44c2dd201f65da0d1c3f95eaf776ed1b2dd";
17     hash = "sha256-XlHbGkwdOV1nobjtQP/M3IIEuzXHBuwf52EsXf3MWoM=";
18   };
20   pythonRelaxDeps = [
21     "graphql-core"
22   ];
24   nativeBuildInputs = with python3.pkgs; [
25     poetry-core
26   ];
28   propagatedBuildInputs = with python3.pkgs; [
29     requests
30     graphql-core
31     jinja2
32     typing-extensions
33   ];
35   meta = with lib; {
36     description = "GraphQL password brute-force and fuzzing utility";
37     mainProgram = "crackql";
38     homepage = "https://github.com/nicholasaleks/CrackQL";
39     license = with licenses; [ bsd3 ];
40     maintainers = with maintainers; [ fab ];
41   };