gnu: Add julia-nanmath.

* gnu/packages/julia-xyz.scm (julia-nanmath-0.3.2): New variable.
master
nixo 2019-10-11 15:13:13 +02:00
parent 0311564fdf
commit 3d10140d21
1 changed files with 34 additions and 0 deletions

View File

@ -1140,3 +1140,37 @@ servers as simple as possible to throw together.")
config files, source code - anything. It works by expanding tags in a
template using values provided in a hash or object.")
(license license:expat)))
(define-public julia-nanmath
(package
(name "julia-nanmath")
(version "0.3.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mlubin/NaNMath.jl")
(commit (string-append "v" version))))
(file-name "NaNMath")
(sha256
(base32 "17cp9fnz8ydl684dkkqbsgi4c6xkd9skwrjyscawns9c1fhnzl2l"))))
(propagated-inputs `(("julia-compat" ,julia-compat)))
(build-system julia-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'precompile 'fix-toml
(lambda* (#:key outputs source #:allow-other-keys)
(julia-create-package-toml
outputs source
"NaNMath"
"77ba4419-2d1f-58cd-9bb1-8ffee604a2e3"
"0.3.2"
'(("Compat" . "34da2185-b29b-5c13-b0c7-acf172513d20")))
#t)))))
(home-page "https://github.com/mlubin/NaNMath.jl")
(synopsis "Julia math builtins which return NaN and accumulator functions
which ignore NaN")
(description "Implementations of basic math functions which return NaN
instead of throwing a DomainError.")
(license license:expat)))