mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
python311Packages.llama-index-program-openai: 0.10.22 -> 0.1.4
No longer use mono repo for the source as the release cycle don't match.
This commit is contained in:
parent
3e16b87687
commit
a00b075f01
@ -1,26 +1,31 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchPypi
|
||||||
, llama-index-agent-openai
|
, llama-index-agent-openai
|
||||||
, llama-index-core
|
, llama-index-core
|
||||||
, llama-index-llms-openai
|
, llama-index-llms-openai
|
||||||
, poetry-core
|
, poetry-core
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "llama-index-program-openai";
|
pname = "llama-index-program-openai";
|
||||||
|
version = "0.1.4";
|
||||||
inherit (llama-index-core) version src meta;
|
|
||||||
|
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
sourceRoot = "${src.name}/llama-index-integrations/program/${pname}";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
src = fetchPypi {
|
||||||
|
pname = "llama_index_program_openai";
|
||||||
|
inherit version;
|
||||||
|
hash = "sha256-Vz6Zot0WrTyvOCyKso0awQ6yVxvJSB2EptiYBq1qpdQ=";
|
||||||
|
};
|
||||||
|
|
||||||
|
build-system = [
|
||||||
poetry-core
|
poetry-core
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
llama-index-agent-openai
|
llama-index-agent-openai
|
||||||
llama-index-core
|
llama-index-core
|
||||||
llama-index-llms-openai
|
llama-index-llms-openai
|
||||||
@ -29,4 +34,11 @@ buildPythonPackage rec {
|
|||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"llama_index.program.openai"
|
"llama_index.program.openai"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "LlamaIndex Program Integration for OpenAI";
|
||||||
|
homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/program/llama-index-program-openai";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user