2024-09-26 11:04:55 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
python3,
|
2022-06-26 10:26:21 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "graphw00f";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "1.1.18";
|
2022-06-26 10:26:21 +00:00
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dolevf";
|
2024-09-26 11:04:55 +00:00
|
|
|
repo = "graphw00f";
|
2022-09-09 14:08:57 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-gM6I3TLCuVKO1dTHl2jrXtmLOv29pTqrV18nGW5TYFY=";
|
2022-06-26 10:26:21 +00:00
|
|
|
};
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
dependencies = with python3.pkgs; [ requests ];
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -vD main.py $out/bin/graphw00f
|
|
|
|
install -vD {conf,version}.py -t $out/${python3.sitePackages}/
|
|
|
|
install -vD graphw00f/* -t $out/${python3.sitePackages}/graphw00f
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2024-09-26 11:04:55 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "GraphQL Server Engine Fingerprinting utility";
|
|
|
|
homepage = "https://github.com/dolevf/graphw00f";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-09-26 11:04:55 +00:00
|
|
|
mainProgram = "graphw00f";
|
2022-06-26 10:26:21 +00:00
|
|
|
};
|
|
|
|
}
|