1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, h5py
5, nose
6}:
7
8buildPythonPackage rec {
9 version = "1.16.3";
10 pname = "annoy";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "fe2779664bd8846f2d67191a7e6010b8df890ac4586336748fd0697f31654379";
15 };
16
17 nativeBuildInputs = [ h5py ];
18
19 checkInputs = [
20 nose
21 ];
22
23 meta = with stdenv.lib; {
24 description = "Approximate Nearest Neighbors in C++/Python optimized for memory usage and loading/saving to disk";
25 homepage = "https://github.com/spotify/annoy";
26 license = licenses.asl20;
27 maintainers = with maintainers; [ timokau ];
28 };
29}