From b3506a44ebc482d94eb541afdebc995dff22a1fb Mon Sep 17 00:00:00 2001 From: GraysonTinker Date: Sat, 14 Mar 2026 12:21:01 -0700 Subject: [PATCH] python3Packages.llama-index-core: convert to finalAttrs --- .../python-modules/llama-index-core/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/llama-index-core/default.nix b/pkgs/development/python-modules/llama-index-core/default.nix index 3abc057181ab..f05ecd885a29 100644 --- a/pkgs/development/python-modules/llama-index-core/default.nix +++ b/pkgs/development/python-modules/llama-index-core/default.nix @@ -36,7 +36,7 @@ typing-inspect, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "llama-index-core"; version = "0.14.12"; pyproject = true; @@ -44,11 +44,11 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "run-llama"; repo = "llama_index"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-grF9IToAMc3x5/40+u3lHU9RyjROWu1e3M6N1owq0f4="; }; - sourceRoot = "${src.name}/${pname}"; + sourceRoot = "${finalAttrs.src.name}/${finalAttrs.pname}"; # When `llama-index` is imported, it uses `nltk` to look for the following files and tries to # download them if they aren't present. @@ -160,8 +160,8 @@ buildPythonPackage rec { meta = { description = "Data framework for your LLM applications"; homepage = "https://github.com/run-llama/llama_index/"; - changelog = "https://github.com/run-llama/llama_index/blob/${src.tag}/CHANGELOG.md"; + changelog = "https://github.com/run-llama/llama_index/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})