Files
nixpkgs/pkgs/development/python-modules/hnswlib/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
440 B
Nix
Raw Normal View History

2025-10-09 14:15:47 +02:00
{
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" ];
}