about summary refs log tree commit diff
path: root/pkgs/development/python-modules/llama-index-embeddings-gemini/default.nix
blob: 6b371c8169834c0f3f63396f2b106a5bbd17490b (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, google-generativeai
, llama-index-core
, poetry-core
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "llama-index-embeddings-gemini";
  version = "0.1.3";

  inherit (llama-index-core) src meta;

  pyproject = true;

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

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    google-generativeai
    llama-index-core
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "llama_index.embeddings.gemini"
  ];
}