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