Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

python.pkgs.numexpr: 2.6.2 -> 2.6.4

+44 -36
+43
pkgs/development/python-modules/numexpr/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , python 5 + , numpy 6 + }: 7 + 8 + buildPythonPackage rec { 9 + pname = "numexpr"; 10 + version = "2.6.4"; 11 + 12 + src = fetchPypi { 13 + inherit pname version; 14 + sha256 = "f0bef9a3a5407fb8d6344cf91b658bef7c13ec8a8eb13f423822d9d2ca5af6ce"; 15 + }; 16 + 17 + propagatedBuildInputs = [ numpy ]; 18 + 19 + # Run the test suite. 20 + # It requires the build path to be in the python search path. 21 + checkPhase = '' 22 + ${python}/bin/${python.executable} <<EOF 23 + import sysconfig 24 + import sys 25 + import os 26 + f = "lib.{platform}-{version[0]}.{version[1]}" 27 + lib = f.format(platform=sysconfig.get_platform(), 28 + version=sys.version_info) 29 + build = os.path.join(os.getcwd(), 'build', lib) 30 + sys.path.insert(0, build) 31 + import numexpr 32 + r = numexpr.test() 33 + if not r.wasSuccessful(): 34 + sys.exit(1) 35 + EOF 36 + ''; 37 + 38 + meta = { 39 + description = "Fast numerical array expression evaluator for NumPy"; 40 + homepage = "https://github.com/pydata/numexpr"; 41 + license = lib.licenses.mit; 42 + }; 43 + }
+1 -36
pkgs/top-level/python-packages.nix
··· 12119 12119 12120 12120 numba = callPackage ../development/python-modules/numba { }; 12121 12121 12122 - numexpr = buildPythonPackage rec { 12123 - version = "2.6.2"; 12124 - name = "numexpr-${version}"; 12125 - 12126 - src = pkgs.fetchurl { 12127 - url = "mirror://pypi/n/numexpr/${name}.tar.gz"; 12128 - sha256 = "6ab8ff5c19e7f452966bf5a3220b845cf3244fe0b96544f7f9acedcc2db5c705"; 12129 - }; 12130 - 12131 - propagatedBuildInputs = with self; [ numpy ]; 12132 - 12133 - # Run the test suite. 12134 - # It requires the build path to be in the python search path. 12135 - checkPhase = '' 12136 - ${python}/bin/${python.executable} <<EOF 12137 - import sysconfig 12138 - import sys 12139 - import os 12140 - f = "lib.{platform}-{version[0]}.{version[1]}" 12141 - lib = f.format(platform=sysconfig.get_platform(), 12142 - version=sys.version_info) 12143 - build = os.path.join(os.getcwd(), 'build', lib) 12144 - sys.path.insert(0, build) 12145 - import numexpr 12146 - r = numexpr.test() 12147 - if not r.wasSuccessful(): 12148 - sys.exit(1) 12149 - EOF 12150 - ''; 12151 - 12152 - meta = { 12153 - description = "Fast numerical array expression evaluator for NumPy"; 12154 - homepage = "https://github.com/pydata/numexpr"; 12155 - license = licenses.mit; 12156 - }; 12157 - }; 12122 + numexpr = callPackage ../development/python-modules/numexpr { }; 12158 12123 12159 12124 Nuitka = let 12160 12125 # scons is needed but using it requires Python 2.7