depot/third_party/nixpkgs/pkgs/development/python-modules/hnswlib/default.nix

30 lines
440 B
Nix
Raw Normal View History

{
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" ];
}