python311Packages.llama-index-core: init at 0.10.12
This commit is contained in:
parent
51ecaa3f46
commit
2d67ca9db4
115
pkgs/development/python-modules/llama-index-core/default.nix
Normal file
115
pkgs/development/python-modules/llama-index-core/default.nix
Normal file
@ -0,0 +1,115 @@
|
||||
{ lib
|
||||
, aiohttp
|
||||
, buildPythonPackage
|
||||
, dataclasses-json
|
||||
, deprecated
|
||||
, dirtyjson
|
||||
, fetchFromGitHub
|
||||
, fsspec
|
||||
, llamaindex-py-client
|
||||
, nest-asyncio
|
||||
, networkx
|
||||
, nltk
|
||||
, numpy
|
||||
, openai
|
||||
, pandas
|
||||
, pillow
|
||||
, poetry-core
|
||||
, pytest-asyncio
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
, requests
|
||||
, tree-sitter
|
||||
, sqlalchemy
|
||||
, tenacity
|
||||
, tiktoken
|
||||
, typing-inspect
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "llama-index-core";
|
||||
version = "0.10.12";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "run-llama";
|
||||
repo = "llama_index";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-Xn4Gqr5zjZGAEHg5duqkS9GLWWlC83puDHNktNYzvDw=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/${pname}";
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
dataclasses-json
|
||||
deprecated
|
||||
dirtyjson
|
||||
fsspec
|
||||
llamaindex-py-client
|
||||
nest-asyncio
|
||||
networkx
|
||||
nltk
|
||||
numpy
|
||||
openai
|
||||
pandas
|
||||
pillow
|
||||
pyyaml
|
||||
requests
|
||||
sqlalchemy
|
||||
tenacity
|
||||
tiktoken
|
||||
typing-inspect
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
tree-sitter
|
||||
pytest-asyncio
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"llama_index"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Tests require network access
|
||||
"tests/agent/"
|
||||
"tests/callbacks/"
|
||||
"tests/chat_engine/"
|
||||
"tests/evaluation/"
|
||||
"tests/indices/"
|
||||
"tests/ingestion/"
|
||||
"tests/memory/"
|
||||
"tests/node_parser/"
|
||||
"tests/objects/"
|
||||
"tests/playground/"
|
||||
"tests/postprocessor/"
|
||||
"tests/query_engine/"
|
||||
"tests/question_gen/"
|
||||
"tests/response_synthesizers/"
|
||||
"tests/retrievers/"
|
||||
"tests/selectors/"
|
||||
"tests/test_utils.py"
|
||||
"tests/text_splitter/"
|
||||
"tests/token_predictor/"
|
||||
"tests/tools/"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Data framework for your LLM applications";
|
||||
homepage = "https://github.com/run-llama/llama_index/";
|
||||
changelog = "https://github.com/run-llama/llama_index/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -6670,6 +6670,8 @@ self: super: with self; {
|
||||
|
||||
lizard = callPackage ../development/python-modules/lizard { };
|
||||
|
||||
llama-index-core = callPackage ../development/python-modules/llama-index-core { };
|
||||
|
||||
llamaindex-py-client = callPackage ../development/python-modules/llamaindex-py-client { };
|
||||
|
||||
llfuse = callPackage ../development/python-modules/llfuse {
|
||||
|
Loading…
Reference in New Issue
Block a user