python311Packages.chroma-hnswlib: init at 0.7.3

Header-only C++/python library for fast approximate nearest neighbors

https://github.com/chroma-core/hnswlib
This commit is contained in:
Fabian Affolter 2024-02-25 16:31:30 +01:00
parent b7db65036f
commit 2e25e2192d
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, pybind11
, setuptools
, wheel
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "chroma-hnswlib";
version = "0.7.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "chroma-core";
repo = "hnswlib";
rev = "refs/tags/${version}";
hash = "sha256-c4FvymqZy8AZKbh6Y8xZRjKAqYcUyZABRGc1u7vwlsk=";
};
nativeBuildInputs = [
numpy
pybind11
setuptools
wheel
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"hnswlib"
];
meta = with lib; {
description = "Header-only C++/python library for fast approximate nearest neighbors";
homepage = "https://github.com/chroma-core/hnswlib";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -2059,6 +2059,8 @@ self: super: with self; {
chispa = callPackage ../development/python-modules/chispa { };
chroma-hnswlib = callPackage ../development/python-modules/chroma-hnswlib { };
chromaprint = callPackage ../development/python-modules/chromaprint { };
ci-info = callPackage ../development/python-modules/ci-info { };
@ -6686,6 +6688,8 @@ self: super: with self; {
llama-index-readers-llama-parse = callPackage ../development/python-modules/llama-index-readers-llama-parse { };
llama-index-vector-stores-chroma = callPackage ../development/python-modules/llama-index-vector-stores-chroma { };
llama-parse = callPackage ../development/python-modules/llama-parse { };
llamaindex-py-client = callPackage ../development/python-modules/llamaindex-py-client { };