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.
This commit is contained in:
parent
c8fed74a3a
commit
2bd22272da
@ -3438,7 +3438,7 @@ that let you do deep transformations of code.")
|
|||||||
(define-public julia-mappedarrays
|
(define-public julia-mappedarrays
|
||||||
(package
|
(package
|
||||||
(name "julia-mappedarrays")
|
(name "julia-mappedarrays")
|
||||||
(version "0.4.0")
|
(version "0.4.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
@ -3447,22 +3447,36 @@ that let you do deep transformations of code.")
|
|||||||
(commit (string-append "v" version))))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(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)
|
(build-system julia-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:phases
|
#:phases
|
||||||
(if (target-64bit?)
|
#~(modify-phases %standard-phases
|
||||||
#~%standard-phases
|
(add-after 'unpack 'adjust-tests
|
||||||
#~(modify-phases %standard-phases
|
(lambda _
|
||||||
(add-after 'unpack 'fix-tests-int32-i686
|
(substitute* "test/runtests.jl"
|
||||||
(lambda _
|
((".*@test_throws ErrorException b.*") ""))
|
||||||
(substitute* "test/runtests.jl"
|
|
||||||
(("Int64") "Int32"))))))))
|
(when #$(not (target-64bit?))
|
||||||
|
(substitute* "test/runtests.jl"
|
||||||
|
(("Int64") "Int32"))))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list julia-fixedpointnumbers))
|
(list julia-fixedpointnumbers))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list julia-colortypes
|
(list julia-colors
|
||||||
julia-fixedpointnumbers
|
julia-fixedpointnumbers
|
||||||
julia-offsetarrays))
|
julia-offsetarrays))
|
||||||
(home-page "https://github.com/JuliaArrays/MappedArrays.jl")
|
(home-page "https://github.com/JuliaArrays/MappedArrays.jl")
|
||||||
|
Loading…
Reference in New Issue
Block a user