Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 llama-index-core, 6 llama-parse, 7 poetry-core, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "llama-index-readers-llama-parse"; 13 version = "0.4.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchPypi { 19 pname = "llama_index_readers_llama_parse"; 20 inherit version; 21 hash = "sha256-6Z7Fb0+FRtf9oafBriYWL7mst+vKw0O1q9tCNLRkTg8="; 22 }; 23 24 pythonRelaxDeps = [ "llama-parse" ]; 25 26 nativeBuildInputs = [ 27 poetry-core 28 ]; 29 30 propagatedBuildInputs = [ 31 llama-parse 32 llama-index-core 33 ]; 34 35 # Tests are only available in the mono repo 36 doCheck = false; 37 38 pythonImportsCheck = [ "llama_index.readers.llama_parse" ]; 39 40 meta = with lib; { 41 description = "LlamaIndex Readers Integration for files"; 42 homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/readers/llama-index-readers-llama-parse"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}