1{ lib
2, buildPythonPackage
3, fetchPypi
4, h5py
5, nose
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "annoy";
11 version = "1.17.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-vxd9vq+4H2OyrB4SRrHyairMguc7pGY4c00p2CWBIto=";
19 };
20
21 nativeBuildInputs = [
22 h5py
23 ];
24
25 checkInputs = [
26 nose
27 ];
28
29 pythonImportsCheck = [
30 "annoy"
31 ];
32
33 meta = with lib; {
34 description = "Approximate Nearest Neighbors in C++/Python optimized for memory usage and loading/saving to disk";
35 homepage = "https://github.com/spotify/annoy";
36 license = licenses.asl20;
37 maintainers = with maintainers; [ timokau ];
38 };
39}