mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
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:
commit
11669455b8
|
@ -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 ];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue