2022-12-28 21:21:41 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fsspec
|
|
|
|
, lib
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, pyarrow
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonRelaxDepsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "embedding-reader";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "1.7.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rom1504";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-paN6rAyH3L7qCfWPr5kXo9Xl57gRMhdcDnoyLJ7II2w=";
|
2022-12-28 21:21:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [ "pyarrow" ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ fsspec numpy pandas pyarrow ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "embedding_reader" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Efficiently read embedding in streaming from any filesystem";
|
|
|
|
homepage = "https://github.com/rom1504/embedding-reader";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ samuela ];
|
|
|
|
};
|
|
|
|
}
|