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