nixpkgs/pkgs/by-name/cr/crackql/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

43 lines
933 B
Nix

{ 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
];
propagatedBuildInputs = with python3.pkgs; [
requests
graphql-core
jinja2
typing-extensions
];
meta = with lib; {
description = "GraphQL password brute-force and fuzzing utility";
mainProgram = "crackql";
homepage = "https://github.com/nicholasaleks/CrackQL";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}