From 3342953dff1c713b88dc1697f0c01bff776ba3d6 Mon Sep 17 00:00:00 2001 From: Timo Kaufmann Date: Sat, 25 May 2019 14:56:14 +0200 Subject: [PATCH] python.pkgs.annoy: init at 1.15.2 --- .../python-modules/annoy/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/python-modules/annoy/default.nix diff --git a/pkgs/development/python-modules/annoy/default.nix b/pkgs/development/python-modules/annoy/default.nix new file mode 100644 index 000000000000..ce7d9940bf2f --- /dev/null +++ b/pkgs/development/python-modules/annoy/default.nix @@ -0,0 +1,26 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, nose +}: + +buildPythonPackage rec { + version = "1.15.2"; + pname = "annoy"; + + src = fetchPypi { + inherit pname version; + sha256 = "1i5bkf8mwd1pyrbhfwncir2r8yq8s9qz5j13vv2qz92n9g57sr3m"; + }; + + checkInputs = [ + nose + ]; + + meta = with stdenv.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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ce5f76ecce49..c42accf82414 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5274,6 +5274,8 @@ in { sigtools = callPackage ../development/python-modules/sigtools { }; + annoy = callPackage ../development/python-modules/annoy { }; + clize = callPackage ../development/python-modules/clize { }; zerobin = callPackage ../development/python-modules/zerobin { };