python311Packages.llama-index-cli: 0.10.20 -> 0.1.11

No longer use the mono repo for the source as the release
cylcle don't match
This commit is contained in:
Fabian Affolter 2024-03-25 08:29:24 +01:00
parent b0c93fc5a3
commit 30f62e7478

View File

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