mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-23 00:50:59 +00:00
jwtcat: init at 0-unstable-2022-10-15
This commit is contained in:
44
pkgs/by-name/jw/jwtcat/package.nix
Normal file
44
pkgs/by-name/jw/jwtcat/package.nix
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
lib,
|
||||
python3Packages,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication {
|
||||
pname = "jwtcat";
|
||||
version = "0-unstable-2022-10-15";
|
||||
pyproject = false;
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aress31";
|
||||
repo = "jwtcat";
|
||||
rev = "f80f3d9352b82f0e7da504b2ee11f4a61f23c385";
|
||||
hash = "sha256-pk0/Lzw4yUIXfLBX/0Xwaecio42MjLYUzECQ8xaH3vY=";
|
||||
};
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
pyjwt
|
||||
coloredlogs
|
||||
tqdm
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dm755 jwtcat.py $out/bin/jwtcat
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "CPU-based JSON Web Token cracker and scanner";
|
||||
homepage = "https://github.com/aress31/jwtcat";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ _0x2B ];
|
||||
mainProgram = "jwtcat";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user