summary refs log tree commit diff
path: root/pkgs/development/python-modules/annoy/default.nix
blob: 5041ee54e4f9e85fab7a0f68de3b83564f4f44b7 (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
{ stdenv
, buildPythonPackage
, fetchPypi
, h5py
, nose
}:

buildPythonPackage rec {
  version = "1.16.3";
  pname = "annoy";

  src = fetchPypi {
    inherit pname version;
    sha256 = "fe2779664bd8846f2d67191a7e6010b8df890ac4586336748fd0697f31654379";
  };

  nativeBuildInputs = [ h5py ];

  checkInputs = [
    nose
  ];

  meta = with stdenv.lib; {
    description = "Approximate Nearest Neighbors in C++/Python optimized for memory usage and loading/saving to disk";
    homepage = https://github.com/spotify/annoy;
    license = licenses.asl20;
    maintainers = with maintainers; [ timokau ];
  };
}