python311Packages.llama-index-agent-openai: 0.10.22 -> 0.2.0
No longer use mono repo for the source as the release cycles don't match
This commit is contained in:
parent
381fbde3ef
commit
92ebcf7d4d
|
@ -1,25 +1,36 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchPypi
|
||||||
, llama-index-core
|
, llama-index-core
|
||||||
, llama-index-llms-openai
|
, llama-index-llms-openai
|
||||||
, poetry-core
|
, poetry-core
|
||||||
|
, pythonOlder
|
||||||
|
, pythonRelaxDepsHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "llama-index-agent-openai";
|
pname = "llama-index-agent-openai";
|
||||||
|
version = "0.2.0";
|
||||||
inherit (llama-index-core) version src meta;
|
|
||||||
|
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
sourceRoot = "${src.name}/llama-index-integrations/agent/${pname}";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
src = fetchPypi {
|
||||||
poetry-core
|
pname = "llama_index_agent_openai";
|
||||||
|
inherit version;
|
||||||
|
hash = "sha256-iDHuNk1TeBNAG6LK38JnAdPRrVODhQ9+fdytL1aNlO8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
pythonRelaxDeps = [
|
||||||
|
"llama-index-llms-openai"
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [
|
||||||
|
poetry-core
|
||||||
|
pythonRelaxDepsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
llama-index-core
|
llama-index-core
|
||||||
llama-index-llms-openai
|
llama-index-llms-openai
|
||||||
];
|
];
|
||||||
|
@ -27,4 +38,11 @@ buildPythonPackage rec {
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"llama_index.agent.openai"
|
"llama_index.agent.openai"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "LlamaIndex Agent Integration for OpenAI";
|
||||||
|
homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/agent/llama-index-agent-openai";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user