summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/embedding-reader/default.nix
blob: 2500110e1be450a39a87ca09e6e848c267891e45 (plain)
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
42
43
44
45
{
  buildPythonPackage,
  fetchFromGitHub,
  fsspec,
  lib,
  numpy,
  pandas,
  pyarrow,
  pytestCheckHook,
  tqdm,
}:

buildPythonPackage rec {
  pname = "embedding-reader";
  version = "1.8.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "rom1504";
    repo = "embedding-reader";
    tag = version;
    hash = "sha256-D7yrvV6hDqzHaIMhCQ16DhY/8FEr3P4gcT5vV371whs=";
  };

  pythonRelaxDeps = [ "pyarrow" ];

  dependencies = [
    fsspec
    numpy
    pandas
    pyarrow
    tqdm
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "embedding_reader" ];

  meta = {
    description = "Efficiently read embedding in streaming from any filesystem";
    homepage = "https://github.com/rom1504/embedding-reader";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ samuela ];
  };
}