aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/annoy/default.nix
blob: 138c70a3848375de0e985c17eb59f3e090a205b5 (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
{ stdenv
, buildPythonPackage
, fetchPypi
, h5py
, nose
}:

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

  src = fetchPypi {
    inherit pname version;
    sha256 = "9891e264041d1dcf3af42f67fbb16cb273c5404bc8c869d0915a3087f71d58dd";
  };

  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 ];
  };
}