1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 fsspec,
5 lib,
6 numpy,
7 pandas,
8 pyarrow,
9 pytestCheckHook,
10 pythonRelaxDepsHook,
11}:
12
13buildPythonPackage rec {
14 pname = "embedding-reader";
15 version = "1.7.0";
16 format = "setuptools";
17
18 src = fetchFromGitHub {
19 owner = "rom1504";
20 repo = pname;
21 rev = "refs/tags/${version}";
22 hash = "sha256-paN6rAyH3L7qCfWPr5kXo9Xl57gRMhdcDnoyLJ7II2w=";
23 };
24
25 nativeBuildInputs = [ pythonRelaxDepsHook ];
26
27 pythonRelaxDeps = [ "pyarrow" ];
28
29 propagatedBuildInputs = [
30 fsspec
31 numpy
32 pandas
33 pyarrow
34 ];
35
36 nativeCheckInputs = [ pytestCheckHook ];
37
38 pythonImportsCheck = [ "embedding_reader" ];
39
40 meta = with lib; {
41 description = "Efficiently read embedding in streaming from any filesystem";
42 homepage = "https://github.com/rom1504/embedding-reader";
43 license = licenses.mit;
44 maintainers = with maintainers; [ samuela ];
45 };
46}