Files
nixpkgs/pkgs/development/python-modules/llama-index-readers-file/default.nix
T

55 lines
1.0 KiB
Nix

{
lib,
beautifulsoup4,
buildPythonPackage,
defusedxml,
fetchPypi,
hatchling,
llama-index-core,
pymupdf,
pypdf,
striprtf,
}:
buildPythonPackage rec {
pname = "llama-index-readers-file";
version = "0.5.6";
pyproject = true;
src = fetchPypi {
pname = "llama_index_readers_file";
inherit version;
hash = "sha256-HAixT6zC3+kzYiqqJtx9KnpgI8QtPbiWoslIeJ7a8eo=";
};
pythonRelaxDeps = [
"pymupdf"
"pypdf"
"striprtf"
"pandas"
];
build-system = [ hatchling ];
dependencies = [
beautifulsoup4
defusedxml
llama-index-core
pymupdf
pypdf
striprtf
];
# Tests are only available in the mono repo
doCheck = false;
pythonImportsCheck = [ "llama_index.readers.file" ];
meta = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}