python3Packages.leidenalg: use finalAttrs

This commit is contained in:
Robert Schütz
2026-05-24 13:12:49 -07:00
parent 64f2ef6bd0
commit f0159ae36c
@@ -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 ];
};
}
})