Commit b3506a44 authored by GraysonTinker's avatar GraysonTinker
Browse files

python3Packages.llama-index-core: convert to finalAttrs

parent cfeb5cee
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -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 ];
  };
}
})