From ea4730307f92d1e2f35861dd70a09bc39b35aa64 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Sun, 15 Feb 2026 10:32:58 +0100 Subject: [PATCH] gawd: refactor, use `finalAttrs` pattern, update repo URL --- .../python-modules/gawd/default.nix | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/gawd/default.nix b/pkgs/development/python-modules/gawd/default.nix index c61eb13f7ecb..227a5faef656 100644 --- a/pkgs/development/python-modules/gawd/default.nix +++ b/pkgs/development/python-modules/gawd/default.nix @@ -3,40 +3,38 @@ buildPythonPackage, fetchFromGitHub, setuptools, - wheel, ruamel-yaml, pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "gawd"; version = "1.1.1"; pyproject = true; src = fetchFromGitHub { - owner = "pooya-rostami"; + owner = "sgl-umons"; repo = "gawd"; - rev = version; + tag = finalAttrs.version; hash = "sha256-DCcU7vO5VApRsO+ljVs827TrHIfe3R+1/2wgBEcp1+c="; }; - nativeBuildInputs = [ + build-system = [ setuptools - wheel ]; - propagatedBuildInputs = [ ruamel-yaml ]; + dependencies = [ ruamel-yaml ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "gawd" ]; meta = { - changelog = "https://github.com/pooya-rostami/gawd/releases/tag/${version}"; + changelog = "https://github.com/sgl-umons/gawd/releases/tag/${finalAttrs.version}"; description = "Python library and command-line tool for computing syntactic differences between two GitHub Actions workflow files"; mainProgram = "gawd"; - homepage = "https://github.com/pooya-rostami/gawd"; + homepage = "https://github.com/sgl-umons/gawd"; license = lib.licenses.lgpl3Only; - maintainers = [ ]; + maintainers = with lib.maintainers; [ drupol ]; }; -} +})