12 buildPythonPackage rec {
17 disabled = pythonOlder "3.7";
19 src = fetchFromGitHub {
22 rev = "refs/tags/v${version}";
23 hash = "sha256-oJHW4lULRun2in35pBGOKg44s5kgLH2BKiMOzVu4rf4=";
27 substituteInPlace setup.py \
28 --replace-fail "'nose>=1.0'" ""
31 build-system = [ setuptools ];
33 nativeBuildInputs = [ h5py ];
46 "test/accuracy_test.py"
49 pythonImportsCheck = [ "annoy" ];
52 description = "Approximate Nearest Neighbors in C++/Python optimized for memory usage and loading/saving to disk";
53 homepage = "https://github.com/spotify/annoy";
54 changelog = "https://github.com/spotify/annoy/releases/tag/v${version}";
55 license = licenses.asl20;
56 maintainers = with maintainers; [ timokau ];