python310Packages.hnswlib: init at 0.7.0

This commit is contained in:
natsukium 2023-07-30 00:36:43 +09:00 committed by Yt
parent 6a1255d2d0
commit 463935ed8f
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,32 @@
{ 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"
];
}

View file

@ -4764,6 +4764,10 @@ self: super: with self; {
hlk-sw16 = callPackage ../development/python-modules/hlk-sw16 { };
hnswlib = callPackage ../development/python-modules/hnswlib {
inherit (pkgs) hnswlib;
};
hmmlearn = callPackage ../development/python-modules/hmmlearn { };
hocr-tools = callPackage ../development/python-modules/hocr-tools { };