2019-05-25 14:56:14 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-01-06 10:48:28 +01:00
|
|
|
, h5py
|
2019-05-25 14:56:14 +02:00
|
|
|
, nose
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-12-29 10:28:05 +01:00
|
|
|
version = "1.16.3";
|
2019-05-25 14:56:14 +02:00
|
|
|
pname = "annoy";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-29 10:28:05 +01:00
|
|
|
sha256 = "fe2779664bd8846f2d67191a7e6010b8df890ac4586336748fd0697f31654379";
|
2019-05-25 14:56:14 +02:00
|
|
|
};
|
|
|
|
|
2020-01-06 10:48:28 +01:00
|
|
|
nativeBuildInputs = [ h5py ];
|
|
|
|
|
2019-05-25 14:56:14 +02: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 03:11:51 +02:00
|
|
|
homepage = "https://github.com/spotify/annoy";
|
2019-05-25 14:56:14 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ timokau ];
|
|
|
|
};
|
|
|
|
}
|