From 9ae6cc5967fea7c1f9b217a85103f57c35e39e2f Mon Sep 17 00:00:00 2001 From: Andreas Herrmann Date: Sat, 14 Jun 2014 18:24:31 +0200 Subject: [PATCH] numexpr: new package, version 2.4 Description from the numexpr project page [1]: > Numexpr is a fast numerical expression evaluator for NumPy. With it, > expressions that operate on arrays (like "3*a+4*b") are accelerated and use > less memory than doing the same calculation in Python. I am adding it, because it is a dependency of the pytables package. [1]: https://github.com/pydata/numexpr --- pkgs/top-level/python-packages.nix | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d4b78e11c89..3c733f62ff4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4601,6 +4601,43 @@ rec { }; }; + numexpr = buildPythonPackage rec { + version = "2.4"; + name = "numexpr-${version}"; + + src = fetchgit { + url = https://github.com/pydata/numexpr.git; + rev = "606cc9a110711e947d35ac2770749c00dab184c8"; + sha256 = "1gxgkg7ncgjhnifn444iha5nrjhyr8sr6w5yp204186a1ysz858g"; + }; + + propagatedBuildInputs = with pkgs; [ numpy ]; + + # Run the test suite. + # It requires the build path to be in the python search path. + checkPhase = '' + ${python}/bin/${python.executable} <