depot/third_party/nixpkgs/pkgs/development/python-modules/annoy/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

39 lines
707 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, h5py
, nose
, pythonOlder
}:
buildPythonPackage rec {
pname = "annoy";
version = "1.17.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-vxd9vq+4H2OyrB4SRrHyairMguc7pGY4c00p2CWBIto=";
};
nativeBuildInputs = [
h5py
];
checkInputs = [
nose
];
pythonImportsCheck = [
"annoy"
];
meta = with 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 ];
};
}