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}:
9
10buildPythonPackage rec {
11 pname = "llama-index-llms-ollama";
12 version = "0.9.1";
13 pyproject = true;
14
15 src = fetchPypi {
16 pname = "llama_index_llms_ollama";
17 inherit version;
18 hash = "sha256-1Yhe1lri4rx0up4//TpbzXxTQe8GcOPZ/iAIgPwZ+aY=";
19 };
20
21 build-system = [ hatchling ];
22
23 dependencies = [
24 llama-index-core
25 ollama
26 ];
27
28 # Tests are only available in the mono repo
29 doCheck = false;
30
31 pythonImportsCheck = [ "llama_index.llms.ollama" ];
32
33 meta = {
34 description = "LlamaIndex LLMS Integration for ollama";
35 homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/llms/llama-index-llms-ollama";
36 license = lib.licenses.mit;
37 maintainers = with lib.maintainers; [ fab ];
38 };
39}