python311Packages.llama-index-readers-file: init at 0.10.12

This commit is contained in:
Fabian Affolter 2024-02-25 14:57:58 +01:00
parent f983edcf38
commit 1ab2a11854
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{ lib
, beautifulsoup4
, buildPythonPackage
, fetchFromGitHub
, llama-index-core
, poetry-core
, pymupdf
, pypdf
, pythonRelaxDepsHook
}:
buildPythonPackage rec {
pname = "llama-index-readers-file";
inherit (llama-index-core) version src meta;
pyproject = true;
sourceRoot = "${src.name}/llama-index-integrations/readers/${pname}";
pythonRelaxDeps = [
"beautifulsoup4"
"pymupdf"
"pypdf"
];
pythonRemoveDeps = [
"bs4"
];
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = [
beautifulsoup4
llama-index-core
pymupdf
pypdf
];
pythonImportsCheck = [
"llama_index.readers.file"
];
}

View File

@ -6672,6 +6672,8 @@ self: super: with self; {
llama-index-core = callPackage ../development/python-modules/llama-index-core { };
llama-index-readers-file = callPackage ../development/python-modules/llama-index-readers-file { };
llama-index-readers-llama-parse = callPackage ../development/python-modules/llama-index-readers-llama-parse { };
llama-parse = callPackage ../development/python-modules/llama-parse { };