Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 llama-index-core, 6 ollama, 7 poetry-core, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "llama-index-embeddings-ollama"; 13 version = "0.6.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-7GL6vymKzrNNIFpQmKLcK9eSTT2bVmwkyh69ZLw9/pA="; 22 }; 23 24 pythonRelaxDeps = [ "ollama" ]; 25 26 build-system = [ poetry-core ]; 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}