From 926d62deca61e490803ce74fc3143883455c8d56 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 21 Sep 2024 05:41:32 +0000 Subject: [PATCH 1/2] graphw00f: 1.1.17 -> 1.1.18 --- pkgs/tools/security/graphw00f/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/graphw00f/default.nix b/pkgs/tools/security/graphw00f/default.nix index da0bd6b2a3ad..0cbe774695b4 100644 --- a/pkgs/tools/security/graphw00f/default.nix +++ b/pkgs/tools/security/graphw00f/default.nix @@ -5,14 +5,14 @@ python3.pkgs.buildPythonApplication rec { pname = "graphw00f"; - version = "1.1.17"; + version = "1.1.18"; format = "other"; src = fetchFromGitHub { owner = "dolevf"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-VeTFwn4PANGoW2Cb/IJ1KJb4YkjjDpaU7DLv0YwRwDU="; + hash = "sha256-gM6I3TLCuVKO1dTHl2jrXtmLOv29pTqrV18nGW5TYFY="; }; propagatedBuildInputs = with python3.pkgs; [ From 48991cb789c49641d985153d73f89d3995789783 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 21 Sep 2024 10:57:40 +0200 Subject: [PATCH 2/2] graphw00f: refactor --- pkgs/tools/security/graphw00f/default.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/tools/security/graphw00f/default.nix b/pkgs/tools/security/graphw00f/default.nix index 0cbe774695b4..bb5b3a36d56d 100644 --- a/pkgs/tools/security/graphw00f/default.nix +++ b/pkgs/tools/security/graphw00f/default.nix @@ -1,6 +1,7 @@ -{ lib -, fetchFromGitHub -, python3 +{ + lib, + fetchFromGitHub, + python3, }: python3.pkgs.buildPythonApplication rec { @@ -10,14 +11,12 @@ python3.pkgs.buildPythonApplication rec { src = fetchFromGitHub { owner = "dolevf"; - repo = pname; + repo = "graphw00f"; rev = "refs/tags/${version}"; hash = "sha256-gM6I3TLCuVKO1dTHl2jrXtmLOv29pTqrV18nGW5TYFY="; }; - propagatedBuildInputs = with python3.pkgs; [ - requests - ]; + dependencies = with python3.pkgs; [ requests ]; installPhase = '' runHook preInstall @@ -28,11 +27,12 @@ python3.pkgs.buildPythonApplication rec { runHook postInstall ''; + meta = with lib; { description = "GraphQL Server Engine Fingerprinting utility"; - mainProgram = "graphw00f"; homepage = "https://github.com/dolevf/graphw00f"; license = licenses.bsd3; maintainers = with maintainers; [ fab ]; + mainProgram = "graphw00f"; }; }