python311Packages.llama-index-readers-file: 0.1.7 -> 0.1.12

This commit is contained in:
Fabian Affolter 2024-03-25 20:03:58 +01:00
parent 0325eb70a9
commit c321c6c859

View File

@ -1,27 +1,30 @@
{ lib
, beautifulsoup4
, buildPythonPackage
, fetchFromGitHub
, fetchPypi
, llama-index-core
, poetry-core
, pymupdf
, pypdf
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, striprtf
}:
buildPythonPackage rec {
pname = "llama-index-readers-file";
version = "0.1.7";
inherit (llama-index-core) src meta;
version = "0.1.12";
pyproject = true;
sourceRoot = "${src.name}/llama-index-integrations/readers/${pname}";
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "llama_index_readers_file";
inherit version;
hash = "sha256-YGXL+AsPtdGJVYuLkK273JKsuGFH/KGS2I/MJwStKvM=";
};
pythonRelaxDeps = [
"beautifulsoup4"
"pymupdf"
"pypdf"
];
@ -30,23 +33,30 @@ buildPythonPackage rec {
"bs4"
];
nativeBuildInputs = [
build-system = [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = [
dependencies = [
beautifulsoup4
llama-index-core
pymupdf
pypdf
striprtf
];
nativeCheckInputs = [
pytestCheckHook
];
# Tests are only available in the mono repo
doCheck = false;
pythonImportsCheck = [
"llama_index.readers.file"
];
meta = with lib; {
description = "LlamaIndex Readers Integration for files";
homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/readers/llama-index-readers-file";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}