Merge pull request #298711 from fabaff/llama-index-cli-bump

python311Packages.llama-index-cli: 0.10.20 -> 0.1.11
This commit is contained in:
Fabian Affolter 2024-03-25 23:16:50 +01:00 committed by GitHub
commit 11669455b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 23 additions and 7 deletions

View File

@ -1,34 +1,50 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchPypi
, llama-index-core
, llama-index-embeddings-openai
, llama-index-llms-openai
, llama-index-vector-stores-chroma
, poetry-core
, pythonOlder
}:
buildPythonPackage rec {
pname = "llama-index-cli";
inherit (llama-index-core) version src meta;
version = "0.1.11";
pyproject = true;
sourceRoot = "${src.name}/${pname}";
disabled = pythonOlder "3.8";
nativeBuildInputs = [
src = fetchPypi {
pname = "llama_index_cli";
inherit version;
hash = "sha256-XecH4SWqh31wxh2nDMRP6nKp9623f0E7Ufc7He/911A=";
};
build-system = [
poetry-core
];
propagatedBuildInputs = [
dependencies = [
llama-index-core
llama-index-embeddings-openai
llama-index-llms-openai
llama-index-vector-stores-chroma
];
# Tests are only available in the mono repo
doCheck = false;
pythonImportsCheck = [
"llama_index.cli"
];
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 ];
};
}