python3Packages.llama-index-core: convert to finalAttrs

This commit is contained in:
GraysonTinker
2026-03-25 15:44:26 -07:00
parent cfeb5ceec1
commit b3506a44eb
@@ -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 ];
};
}
})