diff --git a/pkgs/development/python-modules/annoy/default.nix b/pkgs/development/python-modules/annoy/default.nix index 2a3175eaf890..9e9b16baf70e 100644 --- a/pkgs/development/python-modules/annoy/default.nix +++ b/pkgs/development/python-modules/annoy/default.nix @@ -2,11 +2,16 @@ lib, buildPythonPackage, fetchFromGitHub, + + # build-system + setuptools, + + # nativeBuildInputs h5py, + + # tests numpy, pytestCheckHook, - pythonOlder, - setuptools, }: buildPythonPackage rec { @@ -14,8 +19,6 @@ buildPythonPackage rec { version = "1.17.3"; pyproject = true; - disabled = pythonOlder "3.7"; - src = fetchFromGitHub { owner = "spotify"; repo = "annoy"; @@ -48,11 +51,15 @@ buildPythonPackage rec { pythonImportsCheck = [ "annoy" ]; - meta = with lib; { + meta = { description = "Approximate Nearest Neighbors in C++/Python optimized for memory usage and loading/saving to disk"; homepage = "https://github.com/spotify/annoy"; changelog = "https://github.com/spotify/annoy/releases/tag/v${version}"; - license = licenses.asl20; - maintainers = with maintainers; [ timokau ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ timokau ]; + badPlatforms = [ + # Several tests fail with AssertionError + lib.systems.inspect.patterns.isDarwin + ]; }; }