2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
hnswlib,
|
|
|
|
numpy,
|
|
|
|
pybind11,
|
|
|
|
setuptools,
|
|
|
|
unittestCheckHook,
|
2023-08-04 22:07:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage {
|
|
|
|
pname = "hnswlib";
|
|
|
|
inherit (hnswlib) version src meta;
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
numpy
|
|
|
|
setuptools
|
|
|
|
pybind11
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
unittestFlagsArray = [
|
|
|
|
"tests/python"
|
|
|
|
"--pattern 'bindings_test*.py'"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "hnswlib" ];
|
2023-08-04 22:07:22 +00:00
|
|
|
}
|