about summary refs log tree commit diff
path: root/pkgs/development/python-modules/hnswlib/default.nix
blob: b5a8c9def667001608d509206806b3be9ce7a8f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  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" ];
}