9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
39 lines
859 B
Nix
39 lines
859 B
Nix
{ buildPythonPackage
|
|
, fetchFromGitHub
|
|
, fsspec
|
|
, lib
|
|
, numpy
|
|
, pandas
|
|
, pyarrow
|
|
, pytestCheckHook
|
|
, pythonRelaxDepsHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "embedding-reader";
|
|
version = "1.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rom1504";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-isb7i+RfZvbtQWySiPatuvOTxNXyPhLhoZTQMZjdC24=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
|
|
|
pythonRelaxDeps = [ "pyarrow" ];
|
|
|
|
propagatedBuildInputs = [ fsspec numpy pandas pyarrow ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
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 ];
|
|
};
|
|
}
|