python312Packages.llama-index-readers-llama-parse: 0.10.20 -> 0.1.4

Switch to PyPI as source. The release cycle doesn't match with the
mono repo.
This commit is contained in:
Fabian Affolter 2024-03-25 23:33:36 +01:00
parent d3f8923899
commit b357ca71c3

View File

@ -1,22 +1,33 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchPypi
, llama-index-core , llama-index-core
, llama-parse , llama-parse
, poetry-core , poetry-core
, pythonOlder
, pythonRelaxDepsHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "llama-index-readers-llama-parse"; pname = "llama-index-readers-llama-parse";
version = "0.1.4";
inherit (llama-index-core) version src meta;
pyproject = true; pyproject = true;
sourceRoot = "${src.name}/llama-index-integrations/readers/${pname}"; disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "llama_index_readers_llama_parse";
inherit version;
hash = "sha256-eGCLGTyBiJSu/u4KowPwK3+A8uTK8Thmwv07CxAj4sA=";
};
pythonRelaxDeps = [
"llama-parse"
];
nativeBuildInputs = [ nativeBuildInputs = [
poetry-core poetry-core
pythonRelaxDepsHook
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -24,7 +35,17 @@ buildPythonPackage rec {
llama-index-core llama-index-core
]; ];
# Tests are only available in the mono repo
doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [
"llama_index.readers.llama_parse" "llama_index.readers.llama_parse"
]; ];
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-llama-parse";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
} }