1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 llama-index-core, 6 ollama, 7 hatchling, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "llama-index-embeddings-ollama"; 13 version = "0.7.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.9"; 17 18 src = fetchPypi { 19 pname = "llama_index_embeddings_ollama"; 20 inherit version; 21 hash = "sha256-StV3rCFInL4oi/YEytu9s1a9rx9qdC7MG6uN855pOvQ="; 22 }; 23 24 pythonRelaxDeps = [ "ollama" ]; 25 26 build-system = [ hatchling ]; 27 28 dependencies = [ 29 llama-index-core 30 ollama 31 ]; 32 33 # Tests are only available in the mono repo 34 doCheck = false; 35 36 pythonImportsCheck = [ "llama_index.embeddings.ollama" ]; 37 38 meta = with lib; { 39 description = "LlamaIndex Llms Integration for Ollama"; 40 homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/embeddings/llama-index-embeddings-ollama"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}