5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
32 lines
444 B
Nix
32 lines
444 B
Nix
{ buildPythonPackage
|
|
, hnswlib
|
|
, numpy
|
|
, pybind11
|
|
, setuptools
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "hnswlib";
|
|
inherit (hnswlib) version src meta;
|
|
format = "pyproject";
|
|
|
|
nativeBuildInputs = [
|
|
numpy
|
|
setuptools
|
|
pybind11
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
unittestCheckHook
|
|
];
|
|
|
|
unittestFlagsArray = [
|
|
"tests/python"
|
|
"--pattern 'bindings_test*.py'"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"hnswlib"
|
|
];
|
|
}
|