diff options
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/llama-index/default.nix | 17 |
1 files 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 800143b8277ab..575c61c89f41f 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 ]; + + nativeBuildInputs = [ + pythonRelaxDepsHook + ]; + + pythonRelaxDeps = [ + "llama-index-core" + ]; - propagatedBuildInputs = [ + dependencies = [ llama-index-agent-openai llama-index-cli llama-index-core |