summaryrefslogtreecommitdiff
path: root/gnu/packages/llvm.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2026-05-30 08:51:42 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-08-08 23:02:08 +0100
commit543d85ffdfa423b8e2d62c307baf0908de1f9308 (patch)
tree462d181b3b244ed915fb7b21956924c0e2f15a06 /gnu/packages/llvm.scm
parentb4e3a072f24591a62d665b6a1ffec7e1677b284e (diff)
gnu: python-llvmlite: Update to 0.47.0.
* gnu/packages/llvm.scm (python-llvmlite): Update to 0.47.0. [arguments] <test-backend, test-flags>: Use 'custom backend. [phases]{skip-test, pre-check}: New phases. [native-inputs]: Remove python-pytest. [license]: Sync licenses with setup.py -- "BSD-2-Clause AND Apache-2.0 WITH LLVM-exception". Change-Id: I5ac05faa20e085548ece1aab68a8178ec602548c
Diffstat (limited to 'gnu/packages/llvm.scm')
-rw-r--r--gnu/packages/llvm.scm23
1 files changed, 18 insertions, 5 deletions
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 3844ba88369..8ad026fb131 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -2046,29 +2046,42 @@ generator targetting AMD hardware.")
2046(define-public python-llvmlite 2046(define-public python-llvmlite
2047 (package 2047 (package
2048 (name "python-llvmlite") 2048 (name "python-llvmlite")
2049 (version "0.45.0") 2049 (version "0.47.0")
2050 (source 2050 (source
2051 (origin 2051 (origin
2052 ;; XXX: Switching to git require versioneer from python-xyz.
2052 (method url-fetch) 2053 (method url-fetch)
2053 (uri (pypi-uri "llvmlite" version)) 2054 (uri (pypi-uri "llvmlite" version))
2054 (sha256 2055 (sha256
2055 (base32 2056 (base32
2056 "0dl3m9i4hsph77pmnsy47943r7rywy6syy5bsy5ifjd91p9brc6f")))) 2057 "1k1wqdq9as876whzkf7hvy7lyi3yhl74nk8qj98fjx7cd3liq0v2"))))
2057 (build-system pyproject-build-system) 2058 (build-system pyproject-build-system)
2058 (arguments 2059 (arguments
2059 (list 2060 (list
2061 #:test-backend #~'custom
2062 #:test-flags #~(list "-m" "llvmlite.tests")
2060 #:phases 2063 #:phases
2061 #~(modify-phases %standard-phases 2064 #~(modify-phases %standard-phases
2065 (add-after 'unpack 'skip-test
2066 (lambda _
2067 (substitute* "llvmlite/tests/test_binding.py"
2068 ;; This test tries to ensure all dependencies are expected by
2069 ;; parsing output of objdump with regex which might not
2070 ;; matching Guix variants.
2071 (("test_linux" all)
2072 (string-append "__off_" all)))))
2062 (add-before 'build 'set-compiler/linker-flags 2073 (add-before 'build 'set-compiler/linker-flags
2063 (lambda _ 2074 (lambda _
2064 (let ((llvm #$(this-package-input "llvm"))) 2075 (let ((llvm #$(this-package-input "llvm")))
2065 ;; Refer to ffi/Makefile.linux. 2076 ;; Refer to ffi/Makefile.linux.
2066 (setenv "CPPFLAGS" "-fPIC") 2077 (setenv "CPPFLAGS" "-fPIC")
2067 (setenv "LDFLAGS" (string-append "-Wl,-rpath=" 2078 (setenv "LDFLAGS" (string-append "-Wl,-rpath="
2068 llvm "/lib")))))))) 2079 llvm "/lib")))))
2080 (add-before 'check 'pre-check
2081 (lambda _
2082 (setenv "LLVMLITE_DIST_TEST" "1"))))))
2069 (native-inputs 2083 (native-inputs
2070 (list cmake-minimal 2084 (list cmake-minimal
2071 python-pytest
2072 python-setuptools)) 2085 python-setuptools))
2073 (inputs 2086 (inputs
2074 (list llvm-20)) 2087 (list llvm-20))
@@ -2076,7 +2089,7 @@ generator targetting AMD hardware.")
2076 (synopsis "Wrapper around basic LLVM functionality") 2089 (synopsis "Wrapper around basic LLVM functionality")
2077 (description 2090 (description
2078 "This package provides a Python binding to LLVM for use in Numba.") 2091 "This package provides a Python binding to LLVM for use in Numba.")
2079 (license license:bsd-3))) 2092 (license (list license:asl2.0 license:bsd-2))))
2080 2093
2081(define-public (clang-python-bindings clang) 2094(define-public (clang-python-bindings clang)
2082 "Return a package for the Python bindings of CLANG." 2095 "Return a package for the Python bindings of CLANG."