From 08bbde2a59cab76e2bf0b7e5a6470bfa263f1ecd Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 17 Jun 2024 11:03:36 +0200 Subject: [PATCH] python311Packages.llama-index: relax dependency llama-index-core --- .../python-modules/llama-index/default.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/llama-index/default.nix b/pkgs/development/python-modules/llama-index/default.nix index 800143b8277a..575c61c89f41 100644 --- a/pkgs/development/python-modules/llama-index/default.nix +++ b/pkgs/development/python-modules/llama-index/default.nix @@ -1,6 +1,8 @@ { lib, buildPythonPackage, + poetry-core, + pythonRelaxDepsHook, llama-index-agent-openai, llama-index-cli, llama-index-core, @@ -13,19 +15,26 @@ llama-index-question-gen-openai, llama-index-readers-file, llama-index-readers-llama-parse, - poetry-core, }: -buildPythonPackage rec { +buildPythonPackage { pname = "llama-index"; inherit (llama-index-core) version src meta; pyproject = true; - nativeBuildInputs = [ poetry-core ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ + nativeBuildInputs = [ + pythonRelaxDepsHook + ]; + + pythonRelaxDeps = [ + "llama-index-core" + ]; + + dependencies = [ llama-index-agent-openai llama-index-cli llama-index-core