From 46ee0092aef4d84e28f28d7d964a5d0423e1fbf0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 24 Aug 2025 09:48:01 +0200 Subject: [PATCH] graphinder: modernize --- pkgs/by-name/gr/graphinder/package.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/gr/graphinder/package.nix b/pkgs/by-name/gr/graphinder/package.nix index a770ed13a6ae..ccd8c52df735 100644 --- a/pkgs/by-name/gr/graphinder/package.nix +++ b/pkgs/by-name/gr/graphinder/package.nix @@ -7,7 +7,7 @@ python3.pkgs.buildPythonApplication rec { pname = "graphinder"; version = "2.0.0b4"; - format = "pyproject"; + pyproject = true; src = fetchFromGitHub { owner = "Escape-Technologies"; @@ -16,11 +16,9 @@ python3.pkgs.buildPythonApplication rec { hash = "sha256-emBWhEJxYRAw3WTd8t+lurnHX8SeCcLBHGH9B+Owuag="; }; - nativeBuildInputs = with python3.pkgs; [ - poetry-core - ]; + build-system = with python3.pkgs; [ poetry-core ]; - propagatedBuildInputs = with python3.pkgs; [ + dependencies = with python3.pkgs; [ aiohttp beautifulsoup4 requests @@ -49,10 +47,10 @@ python3.pkgs.buildPythonApplication rec { meta = { description = "Tool to find GraphQL endpoints using subdomain enumeration"; - mainProgram = "graphinder"; homepage = "https://github.com/Escape-Technologies/graphinder"; - changelog = "https://github.com/Escape-Technologies/graphinder/releases/tag/v${version}"; - license = with lib.licenses; [ mit ]; + changelog = "https://github.com/Escape-Technologies/graphinder/releases/tag/${src.tag}"; + license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; + mainProgram = "graphinder"; }; }