13 buildPythonPackage rec {
17 disabled = isPyPy || !isPy3k;
20 inherit pname version;
21 sha256 = "80e51d5aa02ad72da9870e89d21f9b152b0220ca551b4596a6c0614bcde336fc";
24 nativeBuildInputs = [ llvm ];
25 propagatedBuildInputs = [ ] ++ lib.optional (pythonOlder "3.4") enum34;
27 # Disable static linking
28 # https://github.com/numba/llvmlite/issues/93
30 substituteInPlace ffi/Makefile.linux --replace "-static-libstdc++" ""
32 substituteInPlace llvmlite/tests/test_binding.py --replace "test_linux" "nope"
34 # Set directory containing llvm-config binary
36 export LLVM_CONFIG=${llvm}/bin/llvm-config
39 ${python.executable} runtests.py
42 __impureHostDeps = lib.optionals stdenv.isDarwin [ "/usr/lib/libm.dylib" ];
47 description = "A lightweight LLVM python binding for writing JIT compilers";
48 homepage = "http://llvmlite.pydata.org/";
49 license = licenses.bsd2;
50 maintainers = with maintainers; [ fridh ];