nixpkgs/pkgs/development/python-modules/hnswlib/default.nix
2023-07-29 17:41:08 +00:00

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