at 17.09-beta 1.0 kB view raw
1{ stdenv 2, fetchurl 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.34.0"; 18 pname = "numba"; 19 name = "${pname}-${version}"; 20 21 src = fetchurl { 22 url = "mirror://pypi/n/numba/${name}.tar.gz"; 23 sha256 = "4f86df9212cb2678598e6583973ef1df978f3e3ba497b4dc6f91848887710577"; 24 }; 25 26 NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1"; 27 28 propagatedBuildInputs = [numpy llvmlite argparse] ++ stdenv.lib.optional (!isPy3k) funcsigs ++ stdenv.lib.optional (isPy27 || isPy33) singledispatch; 29 30 # Copy test script into $out and run the test suite. 31 checkPhase = '' 32 python -m numba.runtests 33 ''; 34 # ImportError: cannot import name '_typeconv' 35 doCheck = false; 36 37 meta = { 38 homepage = http://numba.pydata.org/; 39 license = stdenv.lib.licenses.bsd2; 40 description = "Compiling Python code using LLVM"; 41 maintainers = with stdenv.lib.maintainers; [ fridh ]; 42 }; 43}