diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-01-20 12:31:50 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-01-20 12:32:25 +0100 |
commit | b7baf40e099b4215181fe7b0c63083b12ef2c7fb (patch) | |
tree | a6efabd31d05b6d0a36624729e80377bbbfb0149 /nixpkgs/pkgs/development/python-modules/llvmlite/default.nix | |
parent | 710028664e26e85cb831a869b3da9f6993902255 (diff) | |
parent | 0799f514b1cd74878174939df79ac60ca5036673 (diff) | |
download | nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.gz nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.bz2 nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.lz nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.xz nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.zst nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.zip |
Merge branch 'nixos-unstable-small' of https://github.com/NixOS/nixpkgs
Conflicts: nixpkgs/pkgs/build-support/rust/build-rust-package/default.nix
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/llvmlite/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/llvmlite/default.nix | 38 |
1 files changed, 22 insertions, 16 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/llvmlite/default.nix b/nixpkgs/pkgs/development/python-modules/llvmlite/default.nix index 925c449ae998..ac74a6e3403b 100644 --- a/nixpkgs/pkgs/development/python-modules/llvmlite/default.nix +++ b/nixpkgs/pkgs/development/python-modules/llvmlite/default.nix @@ -2,34 +2,36 @@ , stdenv , fetchFromGitHub , buildPythonPackage -, python -, llvm -, pythonOlder , isPyPy -, enum34 -, isPy3k +, pythonAtLeast + +# build-system +, llvm +, setuptools + +# tests +, python }: buildPythonPackage rec { pname = "llvmlite"; - # The main dependency of llvmlite is numba, which we currently package an - # untagged version of it (for numpy>1.25 support). That numba version - # requires at least this version of llvmlite (also not yet officially - # released, but at least tagged). - version = "0.41.0dev0"; - format = "setuptools"; + version = "0.41.1"; + pyproject = true; - disabled = isPyPy || !isPy3k; + # uses distutils in setup.py + disabled = isPyPy || pythonAtLeast "3.12"; src = fetchFromGitHub { owner = "numba"; repo = "llvmlite"; - rev = "v${version}"; - hash = "sha256-fsH+rqouweNENU+YlWr7m0bC0YdreQLNp1n2rwrOiFw="; + rev = "refs/tags/v${version}"; + hash = "sha256-RBgs8L5kOJ8BhEDLB8r8/iVhwuVIPT/rUSmwmBWm4D0="; }; - nativeBuildInputs = [ llvm ]; - propagatedBuildInputs = lib.optional (pythonOlder "3.4") enum34; + nativeBuildInputs = [ + llvm + setuptools + ]; # Disable static linking # https://github.com/numba/llvmlite/issues/93 @@ -45,7 +47,9 @@ buildPythonPackage rec { ''; checkPhase = '' + runHook preCheck ${python.executable} runtests.py + runHook postCheck ''; __impureHostDeps = lib.optionals stdenv.isDarwin [ "/usr/lib/libm.dylib" ]; @@ -53,7 +57,9 @@ buildPythonPackage rec { passthru.llvm = llvm; meta = with lib; { + changelog = "https://github.com/numba/llvmlite/blob/v${version}/CHANGE_LOG"; description = "A lightweight LLVM python binding for writing JIT compilers"; + downloadPage = "https://github.com/numba/llvmlite"; homepage = "http://llvmlite.pydata.org/"; license = licenses.bsd2; maintainers = with maintainers; [ fridh ]; |