Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 70 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071{ lib, stdenv, fetchFromGitHub, buildPythonPackage, isPyPy, pythonAtLeast,
setuptools,
cmake, ninja,
llvm_20, libxml2,
# tests pytestCheckHook,
withStaticLLVM ? true,}:
let llvm = llvm_20;in
buildPythonPackage rec { pname = "llvmlite"; version = "0.45.0"; pyproject = true;
disabled = isPyPy || pythonAtLeast "3.14";
src = fetchFromGitHub { owner = "numba"; repo = "llvmlite"; tag = "v${version}"; hash = "sha256-xONYpDGsx6lhbAjAqwFx5Vo3PxeFsblhZxkxTSjMWOE="; };
build-system = [ setuptools ];
nativeBuildInputs = [ cmake ninja ];
buildInputs = [ llvm ] ++ lib.optionals withStaticLLVM [ libxml2.dev ];
nativeCheckInputs = [ pytestCheckHook ];
dontUseCmakeConfigure = true;
# https://github.com/NixOS/nixpkgs/issues/255262 preCheck = '' cd $out '';
env.LLVMLITE_SHARED = !withStaticLLVM;
passthru = lib.optionalAttrs (!withStaticLLVM) { inherit llvm; };
meta = { changelog = "https://github.com/numba/llvmlite/blob/v${version}/CHANGE_LOG"; description = "Lightweight LLVM python binding for writing JIT compilers"; downloadPage = "https://github.com/numba/llvmlite"; homepage = "http://llvmlite.pydata.org/"; license = lib.licenses.bsd2; };}