Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 790 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, h5py 5, nose 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "annoy"; 11 version = "1.17.2"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-5nv7uDfRMG2kVVyIOGDHshXLMqhk5AAiKS1YR60foLs="; 19 }; 20 21 nativeBuildInputs = [ 22 h5py 23 ]; 24 25 nativeCheckInputs = [ 26 nose 27 ]; 28 29 pythonImportsCheck = [ 30 "annoy" 31 ]; 32 33 meta = with lib; { 34 description = "Approximate Nearest Neighbors in C++/Python optimized for memory usage and loading/saving to disk"; 35 homepage = "https://github.com/spotify/annoy"; 36 changelog = "https://github.com/spotify/annoy/releases/tag/v${version}"; 37 license = licenses.asl20; 38 maintainers = with maintainers; [ timokau ]; 39 }; 40}