2024-02-25 14:57:58 +01:00
|
|
|
{ lib
|
|
|
|
, beautifulsoup4
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, llama-index-core
|
|
|
|
, poetry-core
|
|
|
|
, pymupdf
|
|
|
|
, pypdf
|
2024-03-05 23:48:12 +01:00
|
|
|
, pytestCheckHook
|
2024-02-25 14:57:58 +01:00
|
|
|
, pythonRelaxDepsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "llama-index-readers-file";
|
2024-03-05 23:48:12 +01:00
|
|
|
version = "0.1.7";
|
2024-02-25 14:57:58 +01:00
|
|
|
|
2024-03-05 23:48:12 +01:00
|
|
|
inherit (llama-index-core) src meta;
|
2024-02-25 14:57:58 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2024-03-05 23:48:12 +01:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-02-25 14:57:58 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"llama_index.readers.file"
|
|
|
|
];
|
|
|
|
}
|