mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-28 17:00:33 +00:00
30 lines
447 B
Nix
30 lines
447 B
Nix
{
|
|
buildPythonPackage,
|
|
hnswlib,
|
|
numpy,
|
|
pybind11,
|
|
setuptools,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "hnswlib";
|
|
inherit (hnswlib) version src meta;
|
|
pyproject = true;
|
|
|
|
nativeBuildInputs = [
|
|
numpy
|
|
setuptools
|
|
pybind11
|
|
];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
unittestFlags = [
|
|
"--start-directory=tests/python"
|
|
"--pattern=bindings_test*.py"
|
|
];
|
|
|
|
pythonImportsCheck = [ "hnswlib" ];
|
|
}
|