Unverified Commit a72636c7 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python310Packages.annoy: add pythonImportsCheck

parent 9233f74a
Loading
Loading
Loading
Loading
+13 −3
Original line number Diff line number Diff line
@@ -3,23 +3,33 @@
, fetchPypi
, h5py
, nose
, pythonOlder
}:

buildPythonPackage rec {
  version = "1.17.1";
  pname = "annoy";
  version = "1.17.1";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-vxd9vq+4H2OyrB4SRrHyairMguc7pGY4c00p2CWBIto=";
    hash = "sha256-vxd9vq+4H2OyrB4SRrHyairMguc7pGY4c00p2CWBIto=";
  };

  nativeBuildInputs = [ h5py ];
  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";