2019-05-25 13:56:14 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-01-06 09:48:28 +00:00
|
|
|
, h5py
|
2019-05-25 13:56:14 +01:00
|
|
|
, nose
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-11-29 14:04:22 +00:00
|
|
|
version = "1.17.0";
|
2019-05-25 13:56:14 +01:00
|
|
|
pname = "annoy";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:22 +00:00
|
|
|
sha256 = "9891e264041d1dcf3af42f67fbb16cb273c5404bc8c869d0915a3087f71d58dd";
|
2019-05-25 13:56:14 +01:00
|
|
|
};
|
|
|
|
|
2020-01-06 09:48:28 +00:00
|
|
|
nativeBuildInputs = [ h5py ];
|
|
|
|
|
2019-05-25 13:56:14 +01:00
|
|
|
checkInputs = [
|
|
|
|
nose
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Approximate Nearest Neighbors in C++/Python optimized for memory usage and loading/saving to disk";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/spotify/annoy";
|
2019-05-25 13:56:14 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ timokau ];
|
|
|
|
};
|
|
|
|
}
|