summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/hnswlib/default.nix
blob: f3196685d3bd31e86ab58bce80f40bcd84837f8a (plain)
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;
  pyproject = true;

  nativeBuildInputs = [
    numpy
    setuptools
    pybind11
  ];

  nativeCheckInputs = [ unittestCheckHook ];

  unittestFlagsArray = [
    "tests/python"
    "--pattern 'bindings_test*.py'"
  ];

  pythonImportsCheck = [ "hnswlib" ];
}