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