diff options
| -rw-r--r-- | gnu/packages/llvm.scm | 23 |
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." |
