mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 17:53:14 +00:00
python310Packages.hnswlib: init at 0.7.0
This commit is contained in:
parent
6a1255d2d0
commit
463935ed8f
32
pkgs/development/python-modules/hnswlib/default.nix
Normal file
32
pkgs/development/python-modules/hnswlib/default.nix
Normal 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"
|
||||
];
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user