[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/57: gnu: julia-mappedarrays: Update to 0.4.1.
From: |
guix-commits |
Subject: |
04/57: gnu: julia-mappedarrays: Update to 0.4.1. |
Date: |
Wed, 21 Dec 2022 12:41:07 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit 2bd22272daeabd37b00c7fcfd63c2d50c97e2747
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Dec 12 12:50:42 2022 +0200
gnu: julia-mappedarrays: Update to 0.4.1.
* gnu/packages/julia-xyz.scm (julia-mappedarrays): Update to 0.4.1.
[source]: Add snippet to fix deprecation warning and to fix the
testsuite.
[arguments]: Add 'adjust-tests phase to skip a test and absorb the
i686-linux specific phase 'fix-tests-int32-i686.
[native-inputs]: Remove julia-colortypes. Add julia-colors.
---
gnu/packages/julia-xyz.scm | 34 ++++++++++++++++++++++++----------
1 file changed, 24 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm
index b31ef2faac..01a3569e8d 100644
--- a/gnu/packages/julia-xyz.scm
+++ b/gnu/packages/julia-xyz.scm
@@ -3438,7 +3438,7 @@ that let you do deep transformations of code.")
(define-public julia-mappedarrays
(package
(name "julia-mappedarrays")
- (version "0.4.0")
+ (version "0.4.1")
(source
(origin
(method git-fetch)
@@ -3447,22 +3447,36 @@ that let you do deep transformations of code.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "0l5adird8m1cmnsxwhzi5hcr7q9bm1rf7a6018zc7kcn2yxdshy3"))))
+ (base32 "08kb28dv1zzqbbxblhyllgs4sjxyp76dgjqhdizcq4zg4i1kls6p"))
+ (snippet
+ #~(begin
+ (use-modules (guix build utils))
+ ;; Fix deprecation warning
+ ;; https://github.com/JuliaArrays/MappedArrays.jl/pull/51
+ (substitute* "src/MappedArrays.jl"
+ (("Vararg\\{<:AbstractArray") "Vararg{AbstractArray"))
+ ;; Fix test failures
+ ;; https://github.com/JuliaArrays/MappedArrays.jl/pull/50
+ (substitute* "test/runtests.jl"
+ (("_zero\\(x\\) = x > 0 \\? x : 0")
+ "_zero(x) = ismissing(x) ? x : (x > 0 ? x : 0)"))))))
(build-system julia-build-system)
(arguments
(list
#:phases
- (if (target-64bit?)
- #~%standard-phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'fix-tests-int32-i686
- (lambda _
- (substitute* "test/runtests.jl"
- (("Int64") "Int32"))))))))
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'adjust-tests
+ (lambda _
+ (substitute* "test/runtests.jl"
+ ((".*@test_throws ErrorException b.*") ""))
+
+ (when #$(not (target-64bit?))
+ (substitute* "test/runtests.jl"
+ (("Int64") "Int32"))))))))
(propagated-inputs
(list julia-fixedpointnumbers))
(native-inputs
- (list julia-colortypes
+ (list julia-colors
julia-fixedpointnumbers
julia-offsetarrays))
(home-page "https://github.com/JuliaArrays/MappedArrays.jl")
- 18/57: gnu: julia-invertedindices: Update to 1.1.0., (continued)
- 18/57: gnu: julia-invertedindices: Update to 1.1.0., guix-commits, 2022/12/21
- 24/57: gnu: julia-reversediff: Update to 1.14.4., guix-commits, 2022/12/21
- 29/57: gnu: julia-chainrulescore: Update to 1.12.2., guix-commits, 2022/12/21
- 46/57: gnu: julia-scanbyte: Limit to x86_64-linux., guix-commits, 2022/12/21
- 48/57: gnu: Add julia-static-0.6., guix-commits, 2022/12/21
- 54/57: gnu: julia-graphics: Update to 1.1.2., guix-commits, 2022/12/21
- 55/57: gnu: julia-imageaxes: Update to 0.6.10., guix-commits, 2022/12/21
- 56/57: gnu: julia-paddedviews: Update to 0.5.11., guix-commits, 2022/12/21
- 03/57: gnu: julia-coordinatetransformations: Update to 0.6.2-1.78f5a5c., guix-commits, 2022/12/21
- 06/57: gnu: julia-imagebase: Update to 0.1.5., guix-commits, 2022/12/21
- 04/57: gnu: julia-mappedarrays: Update to 0.4.1.,
guix-commits <=
- 11/57: gnu: Add julia-changesofvariables., guix-commits, 2022/12/21
- 14/57: gnu: julia-diffrules: Update to 1.12.2., guix-commits, 2022/12/21
- 15/57: gnu: julia-forwarddiff: Update to 0.10.34., guix-commits, 2022/12/21
- 25/57: gnu: julia-functors: Update to 0.4.1., guix-commits, 2022/12/21
- 26/57: gnu: julia-zygoterules: Update to 0.2.2., guix-commits, 2022/12/21
- 27/57: gnu: julia-zygote: Update to 0.6.41., guix-commits, 2022/12/21
- 28/57: gnu: julia-nnlib: Update to 0.7.34., guix-commits, 2022/12/21
- 30/57: gnu: julia-chainrulestestutils: Update to 1.5.1., guix-commits, 2022/12/21
- 57/57: gnu: julia-imagemetadata: Update to 0.9.8., guix-commits, 2022/12/21
- 10/57: gnu: Add julia-inversefunctions., guix-commits, 2022/12/21