2024-04-18 09:02:31 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2025-06-18 16:18:52 +02:00
|
|
|
hatchling,
|
2024-04-18 09:02:31 +02:00
|
|
|
llama-index-core,
|
|
|
|
llama-index-embeddings-openai,
|
|
|
|
llama-index-llms-openai,
|
|
|
|
llama-index-vector-stores-chroma,
|
2024-02-25 20:57:07 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "llama-index-cli";
|
2025-07-12 15:57:42 +02:00
|
|
|
version = "0.4.4";
|
2024-02-25 20:57:07 +01:00
|
|
|
pyproject = true;
|
|
|
|
|
2024-03-25 08:29:24 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
pname = "llama_index_cli";
|
|
|
|
inherit version;
|
2025-07-12 15:57:42 +02:00
|
|
|
hash = "sha256-w68M8eKn5e9E0Lrlqo6IcrVMXda3Ma+66fE//rSZe+A=";
|
2024-03-25 08:29:24 +01:00
|
|
|
};
|
2024-02-25 20:57:07 +01:00
|
|
|
|
2025-06-18 16:18:52 +02:00
|
|
|
build-system = [ hatchling ];
|
2024-02-25 20:57:07 +01:00
|
|
|
|
2024-03-25 08:29:24 +01:00
|
|
|
dependencies = [
|
2024-02-25 20:57:07 +01:00
|
|
|
llama-index-core
|
|
|
|
llama-index-embeddings-openai
|
|
|
|
llama-index-llms-openai
|
|
|
|
llama-index-vector-stores-chroma
|
|
|
|
];
|
|
|
|
|
2024-03-25 08:29:24 +01:00
|
|
|
# Tests are only available in the mono repo
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-04-18 09:02:31 +02:00
|
|
|
pythonImportsCheck = [ "llama_index.cli" ];
|
2024-03-25 08:29:24 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "LlamaIndex CLI";
|
|
|
|
homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-cli";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
2024-02-25 20:57:07 +01:00
|
|
|
}
|