blob: 31f884e53ba861c97ed3da14905e1d6ca03150af (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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 ];
};
}
|