{ python3Packages, llvm_11 }: python3Packages.buildPythonPackage rec { pname = "llvmlite"; version = "0.37.0rc2"; src = python3Packages.fetchPypi { inherit pname version; sha256 = "sha256-F1quz+76JOt1jaQPVzdKe7RfN6gWG2lyE82qTvgyY/c="; }; nativeBuildInputs = [ llvm_11 ]; # Disable static linking # https://github.com/numba/llvmlite/issues/93 postPatch = '' substituteInPlace ffi/Makefile.linux --replace "-static-libstdc++" "" substituteInPlace llvmlite/tests/test_binding.py --replace "test_linux" "nope" ''; # Set directory containing llvm-config binary preConfigure = '' export LLVM_CONFIG=${llvm_11.dev}/bin/llvm-config ''; doCheck = false; # FIXME }