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