depot/third_party/nixpkgs/pkgs/development/python-modules/embedding-reader/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

44 lines
843 B
Nix

{
buildPythonPackage,
fetchFromGitHub,
fsspec,
lib,
numpy,
pandas,
pyarrow,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "embedding-reader";
version = "1.7.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "rom1504";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-paN6rAyH3L7qCfWPr5kXo9Xl57gRMhdcDnoyLJ7II2w=";
};
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 ];
};
}