From f0159ae36cddab2bc4bc851faec64dbe10615dae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 24 May 2026 13:12:49 -0700 Subject: [PATCH] python3Packages.leidenalg: use finalAttrs --- pkgs/development/python-modules/leidenalg/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/leidenalg/default.nix b/pkgs/development/python-modules/leidenalg/default.nix index 1d8063d8fed5..edbe61a65fd2 100644 --- a/pkgs/development/python-modules/leidenalg/default.nix +++ b/pkgs/development/python-modules/leidenalg/default.nix @@ -10,7 +10,7 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "leidenalg"; version = "0.12.0"; pyproject = true; @@ -18,7 +18,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "vtraag"; repo = "leidenalg"; - tag = version; + tag = finalAttrs.version; hash = "sha256-E8mFzEVzff3BEt5sPDXy8/ofZgVfzgiUyIqT59/Trd0="; }; @@ -39,10 +39,10 @@ buildPythonPackage rec { pythonImportsCheck = [ "leidenalg" ]; meta = { - changelog = "https://github.com/vtraag/leidenalg/blob/${src.tag}/CHANGELOG"; + changelog = "https://github.com/vtraag/leidenalg/blob/${finalAttrs.src.tag}/CHANGELOG"; description = "Implementation of the Leiden algorithm for various quality functions to be used with igraph in Python"; homepage = "https://github.com/vtraag/leidenalg"; license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ jboy ]; }; -} +})