about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/llama-index-vector-stores-chroma/default.nix
blob: 62e89093066d7aea4b76020d35e6eddd4a6a88d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ lib
, buildPythonPackage
, chromadb
, fetchFromGitHub
, llama-index-core
, onnxruntime
, poetry-core
, pythonRelaxDepsHook
, tokenizers
}:

buildPythonPackage rec {
  pname = "llama-index-vector-stores-chroma";

  inherit (llama-index-core) version src meta;

  pyproject = true;

  sourceRoot = "${src.name}/llama-index-integrations/vector_stores/${pname}";

  pythonRelaxDeps = [
    "onnxruntime"
    "tokenizers"
  ];

  nativeBuildInputs = [
    poetry-core
    pythonRelaxDepsHook
  ];

  propagatedBuildInputs = [
    chromadb
    llama-index-core
    onnxruntime
    tokenizers
  ];

  pythonImportsCheck = [
    "llama_index.vector_stores.chroma"
  ];
}