at 18.09-beta 1.0 kB view raw
1{ stdenv 2, fetchPypi 3, python 4, buildPythonPackage 5, isPy27 6, isPy33 7, isPy3k 8, numpy 9, llvmlite 10, argparse 11, funcsigs 12, singledispatch 13, libcxx 14}: 15 16buildPythonPackage rec { 17 version = "0.39.0"; 18 pname = "numba"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "07749d1ddac8c4c0ce8b22bf3dec52ef2fd4922174c71447126807f5f8dc2bae"; 23 }; 24 25 NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1"; 26 27 propagatedBuildInputs = [numpy llvmlite argparse] ++ stdenv.lib.optional (!isPy3k) funcsigs ++ stdenv.lib.optional (isPy27 || isPy33) singledispatch; 28 29 # Copy test script into $out and run the test suite. 30 checkPhase = '' 31 ${python.interpreter} -m numba.runtests 32 ''; 33 # ImportError: cannot import name '_typeconv' 34 doCheck = false; 35 36 meta = { 37 homepage = http://numba.pydata.org/; 38 license = stdenv.lib.licenses.bsd2; 39 description = "Compiling Python code using LLVM"; 40 maintainers = with stdenv.lib.maintainers; [ fridh ]; 41 }; 42}