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