9b04e1bd673d9f9885edc472d98fb61db7220d21
[jackhill/guix/guix.git] / gnu / packages / julia-xyz.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2020, 2021 Nicolò Balzarotti <nicolo@nixo.xyz>
3 ;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com>
4 ;;;
5 ;;; This file is part of GNU Guix.
6 ;;;
7 ;;; GNU Guix is free software; you can redistribute it and/or modify it
8 ;;; under the terms of the GNU General Public License as published by
9 ;;; the Free Software Foundation; either version 3 of the License, or (at
10 ;;; your option) any later version.
11 ;;;
12 ;;; GNU Guix is distributed in the hope that it will be useful, but
13 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;;; GNU General Public License for more details.
16 ;;;
17 ;;; You should have received a copy of the GNU General Public License
18 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
20 (define-module (gnu packages julia-xyz)
21 #:use-module ((guix licenses) #:prefix license:)
22 #:use-module (guix packages)
23 #:use-module (guix git-download)
24 #:use-module (guix build-system julia)
25 #:use-module (gnu packages tls))
26
27 (define-public julia-abstractffts
28 (package
29 (name "julia-abstractffts")
30 (version "1.0.1")
31 (source
32 (origin
33 (method git-fetch)
34 (uri (git-reference
35 (url "https://github.com/JuliaMath/AbstractFFTS.jl")
36 (commit (string-append "v" version))))
37 (file-name (git-file-name name version))
38 (sha256
39 (base32 "0083pwdyxjb04i330ir9pc8kmp4bwk59lx1jgc9qi05y8j7xzbp0"))))
40 (build-system julia-build-system)
41 (inputs ;required for tests
42 `(("julia-unitful" ,julia-unitful)))
43 (home-page "https://github.com/JuliaGPU/Adapt.jl")
44 (synopsis "General framework for fast Fourier transforms (FFTs)")
45 (description "This package allows multiple FFT packages to co-exist with
46 the same underlying @code{fft(x)} and @code{plan_fft(x)} interface. It is
47 mainly not intended to be used directly. Instead, developers of packages that
48 implement FFTs (such as @code{FFTW.jl} or @code{FastTransforms.jl}) extend the
49 types/functions defined in AbstractFFTs.")
50 (license license:expat)))
51
52 (define-public julia-adapt
53 (package
54 (name "julia-adapt")
55 (version "3.1.1")
56 (source
57 (origin
58 (method git-fetch)
59 (uri (git-reference
60 (url "https://github.com/JuliaGPU/Adapt.jl")
61 (commit (string-append "v" version))))
62 (file-name (git-file-name name version))
63 (sha256
64 (base32 "1lks6k3a1gvwlplld47nh6xfy3nnlpc0vhkzg6zg0qn33qdmavrg"))))
65 (build-system julia-build-system)
66 (home-page "https://github.com/JuliaGPU/Adapt.jl")
67 (synopsis "Package providing the @code{adapt} function, similar to @code{convert}")
68 (description "This Julia package provides the @code{adapt(T, x)} function
69 acts like @code{convert(T, x)}, but without the restriction of returning a
70 @code{T}. This allows you to \"convert\" wrapper types like @code{Adjoint} to
71 be GPU compatible without throwing away the wrapper.")
72 (license license:expat)))
73
74 (define-public julia-benchmarktools
75 (package
76 (name "julia-benchmarktools")
77 (version "0.5.0")
78 (source
79 (origin
80 (method git-fetch)
81 (uri (git-reference
82 (url "https://github.com/JuliaCI/BenchmarkTools.jl")
83 (commit (string-append "v" version))))
84 (file-name (git-file-name name version))
85 (sha256
86 (base32 "0nsx21m3i5h22lkgyrmfj6r085va6ag40khwssqs8y7l0wz98lvp"))))
87 (build-system julia-build-system)
88 (propagated-inputs `(("julia-json" ,julia-json)))
89 (home-page "https://github.com/JuliaCI/BenchmarkTools.jl")
90 (synopsis "Benchmarking framework for the Julia language")
91 (description "@code{BenchmarkTools.jl} makes performance tracking of Julia
92 code easy by supplying a framework for writing and running groups of
93 benchmarks as well as comparing benchmark results.")
94 (license license:expat)))
95
96 (define-public julia-bufferedstreams
97 (package
98 (name "julia-bufferedstreams")
99 (version "1.0.0")
100 (source
101 (origin
102 (method git-fetch)
103 (uri (git-reference
104 (url "https://github.com/BioJulia/BufferedStreams.jl")
105 (commit (string-append "v" version))))
106 (file-name (git-file-name name version))
107 (sha256
108 (base32 "0sf4sxbq55mg2pwxyxf0c839z1lk0yxg8nmb7617bfbvw31cp88z"))))
109 (build-system julia-build-system)
110 ;; The package is old and tests are using undefined functions. They also
111 ;; freeze, see
112 ;; https://travis-ci.org/BioJulia/BufferedStreams.jl/jobs/491050182
113 (arguments
114 '(#:tests? #f
115 #:julia-package-name "BufferedStreams"))
116 (propagated-inputs `(("julia-compat" ,julia-compat)))
117 (home-page "https://github.com/BioJulia/BufferedStreams.jl")
118 (synopsis "Fast composable IO streams")
119 (description "@code{BufferedStreams.jl} provides buffering for IO
120 operations. It can wrap any @code{IO} type automatically making incremental
121 reading and writing faster.")
122 (license license:expat)))
123
124 (define-public julia-calculus
125 (package
126 (name "julia-calculus")
127 (version "0.5.1")
128 (source
129 (origin
130 (method git-fetch)
131 (uri (git-reference
132 (url "https://github.com/JuliaMath/Calculus.jl")
133 (commit (string-append "v" version))))
134 (file-name (git-file-name name version))
135 (sha256
136 (base32 "0xh0ak2ycsjw2h86ja24ch3kn2d18zx3frrds78aimwdnqb1gdc2"))))
137 (build-system julia-build-system)
138 (home-page "https://github.com/JuliaMath/Calculus.jl")
139 (synopsis "Common utilities for automatic differentiation")
140 (description "This package provides tools for working with the basic
141 calculus operations of differentiation and integration. The @code{Calculus}
142 package produces approximate derivatives by several forms of finite
143 differencing or produces exact derivative using symbolic differentiation. It
144 can also be used to compute definite integrals by different numerical
145 methods.")
146 (license license:expat)))
147
148 (define-public julia-chainrulescore
149 (package
150 (name "julia-chainrulescore")
151 (version "0.9.29")
152 (source
153 (origin
154 (method git-fetch)
155 (uri (git-reference
156 (url "https://github.com/JuliaDiff/ChainRulesCore.jl")
157 (commit (string-append "v" version))))
158 (file-name (git-file-name name version))
159 (sha256
160 (base32 "1k0iayw39n1ikkkhvyi4498vsnzc94skqs41gnd15632gxjfvki4"))))
161 (build-system julia-build-system)
162 (inputs ;required for tests
163 `(("julia-benchmarktools" ,julia-benchmarktools)
164 ("julia-staticarrays" ,julia-staticarrays)))
165 (propagated-inputs
166 `(("julia-compat" ,julia-compat)))
167 (home-page "https://github.com/JuliaDiff/ChainRulesCore.jl")
168 (synopsis "Common utilities used by downstream automatic differentiation tools")
169 (description "The package provides a light-weight dependency for defining
170 sensitivities for functions without the need to depend on ChainRules itself.")
171 (license license:expat)))
172
173 (define-public julia-chainrulestestutils
174 (package
175 (name "julia-chainrulestestutils")
176 (version "0.6.4")
177 (source
178 (origin
179 (method git-fetch)
180 (uri (git-reference
181 (url "https://github.com/JuliaDiff/ChainRulesTestUtils.jl")
182 (commit (string-append "v" version))))
183 (file-name (git-file-name name version))
184 (sha256
185 (base32 "1pzs947adnb3cx1qd0cxp2fidk9szz0zsqbas90z1lhydykkvkil"))))
186 (build-system julia-build-system)
187 (propagated-inputs
188 `(("julia-chainrulescore" ,julia-chainrulescore)
189 ("julia-compat" ,julia-compat)
190 ("julia-finitedifference" ,julia-finitedifferences)))
191 (home-page "https://github.com/JuliaDiff/ChainRulesTestUtils.jl")
192 (synopsis "Common utilities used by downstream automatic differentiation tools")
193 (description "This package is designed to help in testing
194 @code{ChainRulesCore.frule} and @code{ChainRulesCore.rrule} methods. The main
195 entry points are @code{ChainRulesTestUtils.frule_test},
196 @code{ChainRulesTestUtils.rrule_test}, and
197 @code{ChainRulesTestUtils.test_scalar}. Currently this is done via testing the
198 rules against numerical differentiation (using @code{FiniteDifferences.jl}).
199
200 @code{ChainRulesTestUtils.jl} is separated from @code{ChainRulesCore.jl} so that it
201 can be a test-only dependency, allowing it to have potentially heavy
202 dependencies, while keeping @code{ChainRulesCore.jl} as light-weight as possible.")
203 (license license:expat)))
204
205 (define-public julia-colors
206 (package
207 (name "julia-colors")
208 (version "0.12.6")
209 (source
210 (origin
211 (method git-fetch)
212 (uri (git-reference
213 (url "https://github.com/JuliaGraphics/Colors.jl")
214 (commit (string-append "v" version))))
215 (file-name (git-file-name name version))
216 (sha256
217 (base32 "156zsszgwh6bmznsan0zyha6yvcxw3c5mvc5vr2qfsgxbyh36ln6"))))
218 (build-system julia-build-system)
219 (propagated-inputs
220 `(("julia-colortypes" ,julia-colortypes)
221 ("julia-fixedpointnumbers" ,julia-fixedpointnumbers)
222 ("julia-reexport" ,julia-reexport)))
223 (home-page "https://github.com/JuliaGraphics/Colors.jl")
224 (synopsis "Tools for dealing with color")
225 (description "This package provides a wide array of functions for dealing
226 with color. This includes conversion between colorspaces, measuring distance
227 between colors, simulating color blindness, parsing colors, and generating
228 color scales for graphics.")
229 (license license:expat)))
230
231 (define-public julia-colortypes
232 (package
233 (name "julia-colortypes")
234 (version "0.10.12")
235 (source
236 (origin
237 (method git-fetch)
238 (uri (git-reference
239 (url "https://github.com/JuliaGraphics/ColorTypes.jl")
240 (commit (string-append "v" version))))
241 (file-name (git-file-name name version))
242 (sha256
243 (base32 "176hr3qbz7lncmykks2qaj3cqisnzim7wi5jwsca9ld26wwyvyqq"))))
244 (arguments
245 '(#:tests? #f)) ;require Documenter, not packaged yet
246 (build-system julia-build-system)
247 (propagated-inputs
248 `(("julia-fixedpointnumbers" ,julia-fixedpointnumbers)))
249 (home-page "https://github.com/JuliaGraphics/ColorTypes.jl")
250 (synopsis "Basic color types and constructor")
251 (description "This minimalistic package serves as the foundation for
252 working with colors in Julia. It defines basic color types and their
253 constructors, and sets up traits and show methods to make them easier to work
254 with.")
255 (license license:expat)))
256
257 (define-public julia-commonsubexpressions
258 (package
259 (name "julia-commonsubexpressions")
260 (version "0.3.0")
261 (source
262 (origin
263 (method git-fetch)
264 (uri (git-reference
265 (url "https://github.com/rdeits/CommonSubexpressions.jl")
266 (commit (string-append "v" version))))
267 (file-name (git-file-name name version))
268 (sha256
269 (base32 "0mgy90kk8ksv3l720kkk04gnhn4aqhh2dj4sp3x8yy3limngfjay"))))
270 (build-system julia-build-system)
271 (propagated-inputs
272 `(("julia-macrotools" ,julia-macrotools)))
273 (home-page "https://github.com/rdeits/CommonSubexpressions.jl")
274 (synopsis "Macro @code{@cse}")
275 (description "This package provides the @code{@cse} macro, which performs
276 common subexpression elimination.")
277 (license license:expat)))
278
279 (define-public julia-compat
280 (package
281 (name "julia-compat")
282 (version "3.25.0")
283 (source
284 (origin
285 (method git-fetch)
286 (uri (git-reference
287 (url "https://github.com/JuliaLang/Compat.jl")
288 (commit (string-append "v" version))))
289 (file-name (git-file-name name version))
290 (sha256
291 (base32 "1m4r5i8mq29xjp3mllh6047n5a78sdyld57m15anrnsjgaapcgby"))))
292 (build-system julia-build-system)
293 (home-page "https://github.com/JuliaLang/Compat.jl")
294 (synopsis "Compatibility across Julia versions")
295 (description "The Compat package is designed to ease interoperability
296 between older and newer versions of the Julia language. The Compat package
297 provides a macro that lets you use the latest syntax in a backwards-compatible
298 way.")
299 (license license:expat)))
300
301 (define-public julia-constructionbase
302 (let ((commit "de77e2865b554f9b078fd8c35b593cce0554ae02"))
303 (package
304 (name "julia-constructionbase")
305 (version "1.1.0") ;tag not created upstream
306 (source
307 (origin
308 (method git-fetch)
309 (uri (git-reference
310 (url "https://github.com/JuliaObjects/ConstructionBase.jl")
311 (commit commit)))
312 (file-name (git-file-name name version))
313 (sha256
314 (base32 "1y79sfj0rds1skl9j16p9161hwa9khm0xc2m4hgjcbh5zzvyr57v"))))
315 (build-system julia-build-system)
316 (home-page "https://juliaobjects.github.io/ConstructionBase.jl/dev/")
317 (synopsis "Primitive functions for construction of objects")
318 (description "This very lightweight package provides primitive functions
319 for construction of objects.")
320 (license license:expat))))
321
322 (define-public julia-datastructures
323 (package
324 (name "julia-datastructures")
325 (version "0.18.9")
326 (source
327 (origin
328 (method git-fetch)
329 (uri (git-reference
330 (url "https://github.com/JuliaCollections/DataStructures.jl")
331 (commit (string-append "v" version))))
332 (file-name (git-file-name name version))
333 (sha256
334 (base32 "0hdqp8ipsqdw5bqqkdvz4j6n67x80sj5azr9vzyxwjfsgkfbnk2l"))))
335 (propagated-inputs
336 `(("julia-compat" ,julia-compat)
337 ("julia-orderedcollections" ,julia-orderedcollections)))
338 (build-system julia-build-system)
339 (home-page "https://github.com/JuliaCollections/DataStructures.jl")
340 (synopsis "Julia module providing different data structures")
341 (description "This package implements a variety of data structures,
342 including, @code{CircularBuffer}, @code{Queue}, @code{Stack},
343 @code{Accumulators}, @code{LinkedLists}, @code{SortedDicts} and many others.")
344 (license license:expat)))
345
346 (define-public julia-diffresults
347 (package
348 (name "julia-diffresults")
349 (version "1.0.3")
350 (source
351 (origin
352 (method git-fetch)
353 (uri (git-reference
354 (url "https://github.com/JuliaDiff/DiffResults.jl")
355 (commit (string-append "v" version))))
356 (file-name (git-file-name name version))
357 (sha256
358 (base32 "1w6p3yxajvclax5b9g7cr2jmbc7lvr5nk4gq0aljxdycdq1d2y3v"))))
359 (propagated-inputs
360 `(("julia-staticarrays" ,julia-staticarrays)))
361 (build-system julia-build-system)
362 (home-page "https://github.com/JuliaDiff/DiffResults.jl")
363 (synopsis "In-place differentiation methods of primal values at multi-order")
364 (description "This package provides the @code{DiffResult} type, which can
365 be passed to in-place differentiation methods instead of an output buffer.")
366 (license license:expat)))
367
368 (define-public julia-difftests
369 (package
370 (name "julia-difftests")
371 (version "0.1.1")
372 (source
373 (origin
374 (method git-fetch)
375 (uri (git-reference
376 (url "https://github.com/JuliaDiff/DiffTests.jl")
377 (commit (string-append "v" version))))
378 (file-name (git-file-name name version))
379 (sha256
380 (base32 "1rxpnd5zi3pxgdd38l5jm2sxc3q6p7g57fqgll2dsiin07y3my57"))))
381 (build-system julia-build-system)
382 (home-page "https://github.com/JuliaDiff/DiffTests.jl")
383 (synopsis "Common test functions for differentiation tools")
384 (description "This package contains a common suite of test functions for
385 stressing the robustness of differentiation tools.")
386 (license license:expat)))
387
388 (define-public julia-example
389 (let ((commit "f968c69dea24f851d0c7e686db23fa55826b5388"))
390 (package
391 (name "julia-example")
392 (version "0.5.4") ;tag not created upstream
393 (source
394 (origin
395 (method git-fetch)
396 (uri (git-reference
397 (url "https://github.com/JuliaLang/Example.jl")
398 (commit commit)))
399 (file-name (git-file-name name version))
400 (sha256
401 (base32 "1v3z0d6gh6wfbypffy9m9rhh36px6fm5wjzq0y6rbmc95r0qpqlx"))))
402 (build-system julia-build-system)
403 (home-page "https://github.com/JuliaLang/Example.jl")
404 (synopsis "Module providing examples")
405 (description "This package provides various examples.")
406 (license license:expat))))
407
408 (define-public julia-fillarrays
409 (package
410 (name "julia-fillarrays")
411 (version "0.11.7")
412 (source
413 (origin
414 (method git-fetch)
415 (uri (git-reference
416 (url "https://github.com/JuliaArrays/FillArrays.jl")
417 (commit (string-append "v" version))))
418 (file-name (git-file-name name version))
419 (sha256
420 (base32 "1q1qn9pb5dmppddnmf8gggdqyvivqh3ffvbblhn37smcf9r5sy7d"))))
421 (build-system julia-build-system)
422 (inputs ;required by tests
423 `(("julia-staticarrays" ,julia-staticarrays)))
424 (home-page "https://github.com/JuliaArrays/FillArrays.jl")
425 (synopsis "Lazy matrix representation")
426 (description "This package allows to lazily represent matrices filled with
427 a single entry, as well as identity matrices. This package exports the
428 following types: @code{Eye}, @code{Fill}, @code{Ones}, @code{Zeros},
429 @code{Trues} and @code{Falses}.")
430 (license license:expat)))
431
432 (define-public julia-finitedifferences
433 (package
434 (name "julia-finitedifferences")
435 (version "0.12.2")
436 (source
437 (origin
438 (method git-fetch)
439 (uri (git-reference
440 (url "https://github.com/JuliaDiff/FiniteDifferences.jl")
441 (commit (string-append "v" version))))
442 (file-name (git-file-name name version))
443 (sha256
444 (base32 "0dcx34026xdpfmbjls3mrknl8ww62kxxfr77kfihbazsfg2gp5b4"))))
445 (build-system julia-build-system)
446 (inputs
447 `(("julia-benchmarktools" ,julia-benchmarktools)))
448 (propagated-inputs
449 `(("julia-chainrulescore" ,julia-chainrulescore)
450 ("julia-richardson" ,julia-richardson)
451 ("julia-staticarrays" ,julia-staticarrays)))
452 (home-page "https://github.com/JuliaDiff/FiniteDifferences.jl")
453 (synopsis "Estimates derivatives with finite differences")
454 (description "This package calculates approximate derivatives numerically
455 using finite difference.")
456 (license license:expat)))
457
458 (define-public julia-fixedpointnumbers
459 (package
460 (name "julia-fixedpointnumbers")
461 (version "0.8.4")
462 (source
463 (origin
464 (method git-fetch)
465 (uri (git-reference
466 (url "https://github.com/JuliaMath/FixedPointNumbers.jl")
467 (commit (string-append "v" version))))
468 (file-name (git-file-name name version))
469 (sha256
470 (base32 "0j0n40n04q9sk68wh9jq90m6c67k4ws02k41djjzkrqmpzv4rcdi"))))
471 (build-system julia-build-system)
472 (arguments
473 `(#:phases
474 (modify-phases %standard-phases
475 (add-after 'unpack 'disable-failing-test
476 (lambda* (#:key outputs #:allow-other-keys)
477 (substitute* "test/fixed.jl"
478 ;; A deprecation warning is not thrown
479 (("@test_logs.*:warn" all) (string-append "# " all)))
480 #t)))))
481 (propagated-inputs `(("julia-compat" ,julia-compat)))
482 (home-page "https://github.com/JuliaMath/FixedPointNumbers.jl")
483 (synopsis "Fixed point types for Julia")
484 (description "@code{FixedPointNumbers.jl} implements fixed-point number
485 types for Julia. A fixed-point number represents a fractional, or
486 non-integral, number. In contrast with the more widely known floating-point
487 numbers, with fixed-point numbers the decimal point doesn't \"float\":
488 fixed-point numbers are effectively integers that are interpreted as being
489 scaled by a constant factor. Consequently, they have a fixed number of
490 digits (bits) after the decimal (radix) point.")
491 (license license:expat)))
492
493 (define-public julia-http
494 (package
495 (name "julia-http")
496 (version "0.9.2")
497 (source
498 (origin
499 (method git-fetch)
500 (uri (git-reference
501 (url "https://github.com/JuliaWeb/HTTP.jl")
502 (commit (string-append "v" version))))
503 (file-name (git-file-name name version))
504 (sha256
505 (base32 "0ij0yci13c46p92m4zywvcs02nn8pm0abyfffiyhxvva6hq48lyl"))))
506 (build-system julia-build-system)
507 (arguments
508 `(#:phases
509 (modify-phases %standard-phases
510 (add-before 'install 'disable-network-tests
511 (lambda _
512 (substitute* "test/runtests.jl"
513 (("\"async.jl") "# \"async.jl")
514 (("\"client.jl") "# \"client.jl"))
515 (substitute* "test/aws4.jl"
516 (("@testset.*HTTP.request with AWS authentication.*" all)
517 (string-append all "return\n")))
518 (substitute* "test/insert_layers.jl"
519 (("@testset.*Inserted final layer runs handler.*" all)
520 (string-append all "return\n")))
521 (substitute* "test/multipart.jl"
522 (("@testset \"Setting of Content-Type.*" all)
523 (string-append all "return\n"))
524 (("@testset \"Deprecation of .*" all)
525 (string-append all "return\n")))
526 (substitute* "test/websockets.jl"
527 (("@testset.*External Host.*" all)
528 (string-append all "return\n")))
529 (substitute* "test/messages.jl"
530 (("@testset.*Read methods.*" all)
531 (string-append all "return\n"))
532 (("@testset.*Body - .*" all)
533 (string-append all "return\n"))
534 (("@testset.*Write to file.*" all)
535 (string-append all "return\n")))
536 #t)))))
537 (propagated-inputs
538 `(("julia-inifile" ,julia-inifile)
539 ("julia-mbedtls" ,julia-mbedtls)
540 ("julia-uris" ,julia-uris)))
541 ;; required for tests
542 (inputs
543 `(("julia-json" ,julia-json)
544 ("julia-bufferedstreams" ,julia-bufferedstreams)))
545 (home-page "https://juliaweb.github.io/HTTP.jl/")
546 (synopsis "HTTP support for Julia")
547 (description "@code{HTTP.jl} is a Julia library for HTTP Messages,
548 implementing both a client and a server.")
549 (license license:expat)))
550
551 (define-public julia-inifile
552 (package
553 (name "julia-inifile")
554 (version "0.5.0")
555 (source
556 (origin
557 (method git-fetch)
558 (uri (git-reference
559 (url "https://github.com/JuliaIO/IniFile.jl")
560 (commit "8ba59958495fa276d6489d2c3903e765d75e0bc0")))
561 (file-name (git-file-name name version))
562 (sha256
563 (base32 "11h6f99jpbg729lplw841m68jprka7q3n8yw390bndlmcdsjabpd"))))
564 (build-system julia-build-system)
565 (home-page "https://github.com/JuliaIO/IniFile.jl")
566 (synopsis "Reading Windows-style INI files")
567 (description "This is a Julia package that defines an IniFile type that
568 allows to interface with @file{.ini} files.")
569 (license license:expat)))
570
571 (define-public julia-irtools
572 (package
573 (name "julia-irtools")
574 (version "0.4.2")
575 (source
576 (origin
577 (method git-fetch)
578 (uri (git-reference
579 (url "https://github.com/FluxML/IRTools.jl")
580 (commit (string-append "v" version))))
581 (file-name (git-file-name name version))
582 (sha256
583 (base32 "0wwzy77jcdnffnd5fr6xan7162g4wydz67igrq82wflwnrhlcx5y"))))
584 (arguments
585 '(#:tests? #f)) ;require Documenter, not packaged yet
586 (build-system julia-build-system)
587 (propagated-inputs
588 `(("julia-macrotools" ,julia-macrotools)))
589 (home-page "https://github.com/FluxML/IRTools.jl")
590 (synopsis "Simple and flexible IR format")
591 (description "This package provides a simple and flexible IR format,
592 expressive enough to work with both lowered and typed Julia code, as well as
593 external IRs. It can be used with Julia metaprogramming tools such as
594 Cassette.")
595 (license license:expat)))
596
597 (define-public julia-jllwrappers
598 (package
599 (name "julia-jllwrappers")
600 (version "1.2.0")
601 (source
602 (origin
603 (method git-fetch)
604 (uri (git-reference
605 (url "https://github.com/JuliaPackaging/JLLWrappers.jl")
606 (commit (string-append "v" version))))
607 (file-name (git-file-name name version))
608 (sha256
609 (base32 "1sj3mi2dcc13apqfpy401wic5n0pgbck1p98b2g3zw0mln9s83m4"))))
610 (arguments
611 ;; Wants to download stuff
612 '(#:tests? #f
613 #:phases
614 (modify-phases %standard-phases
615 (add-after 'unpack 'custom-override-path
616 (lambda* (#:key inputs #:allow-other-keys)
617 ;; Make @generate_wrapper_header take an optional argument that
618 ;; guix packagers can pass to override the default "override"
619 ;; binary path. This won't be needed when something like
620 ;; https://github.com/JuliaPackaging/JLLWrappers.jl/pull/27
621 ;; will be merged.
622 (substitute* "src/wrapper_generators.jl"
623 (("generate_wrapper_header.*")
624 "generate_wrapper_header(src_name, override_path = nothing)\n")
625 (("pkg_dir = .*" all)
626 (string-append
627 all "\n" "override = something(override_path,"
628 "joinpath(dirname(pkg_dir), \"override\"))\n"))
629 (("@static if isdir.*") "@static if isdir($override)\n")
630 (("return joinpath.*") "return $override\n"))
631 #t)))))
632 (build-system julia-build-system)
633 (home-page "https://github.com/JuliaPackaging/JLLWrappers.jl")
634 (synopsis "Julia macros used by JLL packages")
635 (description "This package contains Julia macros that enable JLL packages
636 to generate themselves. It is not intended to be used by users, but rather is
637 used in autogenerated packages via @code{BinaryBuilder.jl}.")
638 (license license:expat)))
639
640 (define-public julia-json
641 (package
642 (name "julia-json")
643 (version "0.21.1")
644 (source
645 (origin
646 (method git-fetch)
647 (uri (git-reference
648 (url "https://github.com/JuliaIO/JSON.jl")
649 (commit (string-append "v" version))))
650 (file-name (git-file-name name version))
651 (sha256
652 (base32 "1f9k613kbknmp4fgjxvjaw4d5sfbx8a5hmcszmp1w9rqfqngjx9m"))))
653 (build-system julia-build-system)
654 (propagated-inputs
655 `(("julia-datastructures" ,julia-datastructures)
656 ("julia-fixedpointnumbers" ,julia-fixedpointnumbers)
657 ("julia-parsers" ,julia-parsers)
658 ("julia-offsetarrays" ,julia-offsetarrays)))
659 (home-page "https://github.com/JuliaIO/JSON.jl")
660 (synopsis "JSON parsing and printing library for Julia")
661 (description "@code{JSON.jl} is a pure Julia module which supports parsing
662 and printing JSON documents.")
663 (license license:expat)))
664
665 (define-public julia-macrotools
666 (package
667 (name "julia-macrotools")
668 (version "0.5.6")
669 (source
670 (origin
671 (method git-fetch)
672 (uri (git-reference
673 (url "https://github.com/FluxML/MacroTools.jl")
674 (commit (string-append "v" version))))
675 (file-name (git-file-name name version))
676 (sha256
677 (base32 "0k4z2hyasd9cwxf4l61zk3w4ajs44k69wx6z1ghdn8f5p8xy217f"))))
678 (build-system julia-build-system)
679 (home-page "https://fluxml.ai/MacroTools.jl")
680 (synopsis "Tools for working with Julia code and expressions")
681 (description "This library provides tools for working with Julia code and
682 expressions. This includes a template-matching system and code-walking tools
683 that let you do deep transformations of code.")
684 (license license:expat)))
685
686 (define-public julia-mbedtls
687 (package
688 (name "julia-mbedtls")
689 (version "1.0.3")
690 (source
691 (origin
692 (method git-fetch)
693 (uri (git-reference
694 (url "https://github.com/JuliaLang/MbedTLS.jl")
695 (commit (string-append "v" version))))
696 (file-name (git-file-name name version))
697 (sha256
698 (base32 "0zjzf2r57l24n3k0gcqkvx3izwn5827iv9ak0lqix0aa5967wvfb"))))
699 (build-system julia-build-system)
700 (arguments
701 `(#:phases
702 (modify-phases %standard-phases
703 (add-before 'install 'disable-network-tests
704 ;; Tries to connect to httpbin.org
705 (lambda _
706 (substitute* "test/runtests.jl"
707 (("testhost =") "return #"))
708 #t)))))
709 (propagated-inputs `(("julia-mbedtls-jll" ,julia-mbedtls-jll)))
710 (home-page "https://github.com/JuliaLang/MbedTLS.jl")
711 (synopsis "Apache's mbed TLS library wrapper")
712 (description "@code{MbedTLS.jl} provides a wrapper around the @code{mbed
713 TLS} and cryptography C libary for Julia.")
714 (license license:expat)))
715
716 (define-public julia-mbedtls-jll
717 (package
718 (name "julia-mbedtls-jll")
719 ;; version 2.25.0+0 is not compatible with current mbedtls 2.23.0,
720 ;; upgrade this when mbedtls is updated in guix
721 (version "2.24.0+1")
722 (source
723 (origin
724 (method git-fetch)
725 (uri (git-reference
726 (url "https://github.com/JuliaBinaryWrappers/MbedTLS_jll.jl")
727 (commit (string-append "MbedTLS-v" version))))
728 (file-name (git-file-name name version))
729 (sha256
730 (base32 "0kk9dlxdh7yms21npgrdfmjbj8q8ng6kdhrzw3jr2d7rp696kp99"))))
731 (build-system julia-build-system)
732 (arguments
733 '(#:tests? #f ; No runtests.jl
734 #:phases
735 (modify-phases %standard-phases
736 (add-after 'unpack 'override-binary-path
737 (lambda* (#:key inputs #:allow-other-keys)
738 (map
739 (lambda (wrapper)
740 (substitute* wrapper
741 (("generate_wrapper_header.*")
742 (string-append
743 "generate_wrapper_header(\"MbedTLS\", \""
744 (assoc-ref inputs "mbedtls-apache") "\")\n"))))
745 ;; There's a Julia file for each platform, override them all
746 (find-files "src/wrappers/" "\\.jl$"))
747 #t)))))
748 (inputs `(("mbedtls-apache" ,mbedtls-apache)))
749 (propagated-inputs `(("julia-jllwrappers" ,julia-jllwrappers)))
750 (home-page "https://github.com/JuliaBinaryWrappers/MbedTLS_jll.jl")
751 (synopsis "Apache's mbed TLS binary wrappers")
752 (description "This Julia module provides @code{mbed TLS} libraries and
753 wrappers.")
754 (license license:expat)))
755
756 (define-public julia-nanmath
757 (package
758 (name "julia-nanmath")
759 (version "0.3.5")
760 (source
761 (origin
762 (method git-fetch)
763 (uri (git-reference
764 (url "https://github.com/mlubin/NaNMath.jl")
765 (commit (string-append "v" version))))
766 (file-name (git-file-name name version))
767 (sha256
768 (base32 "1hczhz00qj99w63vp627kwk02l2sr2qmzc2rkwwkdwvzy670p25q"))))
769 (build-system julia-build-system)
770 (home-page "https://github.com/mlubin/NaNMath.jl")
771 (synopsis "Implementations of basic math functions")
772 (description "Implementations of basic math functions which return
773 @code{NaN} instead of throwing a @code{DomainError}.")
774 (license license:expat)))
775
776 (define-public julia-orderedcollections
777 (package
778 (name "julia-orderedcollections")
779 (version "1.3.2")
780 (source
781 (origin
782 (method git-fetch)
783 (uri (git-reference
784 (url "https://github.com/JuliaCollections/OrderedCollections.jl")
785 (commit (string-append "v" version))))
786 (file-name (git-file-name name version))
787 (sha256
788 (base32 "0sfip1ixghsz91q2s7d62rgzw3gppg42fg6bccxlplqa3hfmbycf"))))
789 (build-system julia-build-system)
790 (home-page "https://github.com/JuliaCollections/OrderedCollections.jl")
791 (synopsis "Associative containers that preserve insertion order")
792 (description "This package implements @code{OrderedDicts} and
793 @code{OrderedSets}, which are similar to containers in base Julia. However,
794 during iteration the @code{Ordered*} containers return items in the order in
795 which they were added to the collection.")
796 (license license:expat)))
797
798 (define-public julia-offsetarrays
799 (package
800 (name "julia-offsetarrays")
801 (version "1.5.2")
802 (source
803 (origin
804 (method git-fetch)
805 (uri (git-reference
806 (url "https://github.com/JuliaArrays/OffsetArrays.jl")
807 (commit (string-append "v" version))))
808 (file-name (git-file-name name version))
809 (sha256
810 (base32 "1y3fnssw2hzyghrk6jfcxslab0f8sjkjszh482snfq4k6mkrhy77"))))
811 (build-system julia-build-system)
812 (propagated-inputs
813 `(("julia-adapt" ,julia-adapt)))
814 ;; CatIndices depends on OffsetArrays, introducing a recursive dependency
815 (arguments '(#:tests? #f))
816 (home-page "https://juliaarrays.github.io/OffsetArrays.jl/stable/")
817 (synopsis "Fortran-like arrays with arbitrary, zero or negative indices")
818 (description "@code{OffsetArrays.jl} provides Julia users with arrays that
819 have arbitrary indices, similar to those found in some other programming
820 languages like Fortran.")
821 (license license:expat)))
822
823 (define-public julia-parsers
824 (package
825 (name "julia-parsers")
826 (version "1.0.15")
827 (source
828 (origin
829 (method git-fetch)
830 (uri (git-reference
831 (url "https://github.com/JuliaData/Parsers.jl")
832 (commit (string-append "v" version))))
833 (file-name (git-file-name name version))
834 (sha256
835 (base32 "16iffl6l28kspgqch48mhi1s8qhspr3cpqcwsph3rqi72lbfqygx"))))
836 (build-system julia-build-system)
837 (home-page "https://github.com/JuliaData/Parsers.jl")
838 (synopsis "Fast parsing machinery for basic types in Julia")
839 (description "@code{Parsers.jl} is a collection of type parsers and
840 utilities for Julia.")
841 (license license:expat)))
842
843 (define-public julia-reexport
844 (package
845 (name "julia-reexport")
846 (version "1.0.0")
847 (source
848 (origin
849 (method git-fetch)
850 (uri (git-reference
851 (url "https://github.com/simonster/Reexport.jl")
852 (commit version)))
853 (file-name (git-file-name name version))
854 (sha256
855 (base32 "1yhhja1zz6dy5f4fd19bdwd6jwgj7q4w3avzgyg1hjhmdl8jrh0s"))))
856 (build-system julia-build-system)
857 (home-page "https://github.com/simonster/Reexport.jl")
858 (synopsis "Re-export modules and symbols")
859 (description "This package provides tools to re-export modules and symbols.")
860 (license license:expat)))
861
862 (define-public julia-requires
863 (package
864 (name "julia-requires")
865 (version "1.1.3")
866 (source
867 (origin
868 (method git-fetch)
869 (uri (git-reference
870 (url "https://github.com/JuliaPackaging/Requires.jl/")
871 (commit (string-append "v" version))))
872 (file-name (git-file-name name version))
873 (sha256
874 (base32 "03hyfy7c0ma45b0y756j76awi3az2ii4bz4s8cxm3xw9yy1z7b01"))))
875 (build-system julia-build-system)
876 (inputs ;required for test
877 `(("julia-example" ,julia-example)))
878 (propagated-inputs
879 `(("julia-colors" ,julia-colors)))
880 (home-page "https://github.com/JuliaPackaging/Requires.jl/")
881 (synopsis "Faster package loader")
882 (description "This package make loading packages faster, maybe. It
883 supports specifying glue code in packages which will load automatically when
884 another package is loaded, so that explicit dependencies (and long load times)
885 can be avoided.")
886 (license license:expat)))
887
888 (define-public julia-richardson
889 (package
890 (name "julia-richardson")
891 (version "1.4.0")
892 (source
893 (origin
894 (method git-fetch)
895 (uri (git-reference
896 (url "https://github.com/JuliaMath/Richardson.jl")
897 (commit (string-append "v" version))))
898 (file-name (git-file-name name version))
899 (sha256
900 (base32 "06v9ii3d7hh41fsrfklaa8ap55z5s017f888mrd1c18y4fx9i4nx"))))
901 (build-system julia-build-system)
902 (home-page "https://juliapackages.com/p/richardson")
903 (synopsis "Extrapolate function using Richardson method")
904 (description "This package provides a function extrapolate that
905 extrapolates a given function @code{f(x)} to @code{f(x0)}, evaluating @code{f}
906 only at a geometric sequence of points @code{> x0} (or optionally @code{<
907 x0}). The key algorithm is Richardson extrapolation using a Neville–Aitken
908 tableau, which adaptively increases the degree of an extrapolation polynomial
909 until convergence is achieved to a desired tolerance (or convergence stalls
910 due to e.g. floating-point errors). This allows one to obtain @code{f(x0)} to
911 high-order accuracy, assuming that @code{f(x0+h)} has a Taylor series or some
912 other power series in @code{h}.")
913 (license license:expat)))
914
915 (define-public julia-staticarrays
916 (package
917 (name "julia-staticarrays")
918 (version "1.0.1")
919 (source
920 (origin
921 (method git-fetch)
922 (uri (git-reference
923 (url "https://github.com/JuliaArrays/StaticArrays.jl")
924 (commit (string-append "v" version))))
925 (file-name (git-file-name name version))
926 (sha256
927 (base32 "01z8bcqwpfkp8p1h1r36pr5cc3798y76zkas7g3206pcsdhvlkz1"))))
928 (build-system julia-build-system)
929 (inputs
930 `(("julia-benchmarktools" ,julia-benchmarktools)))
931 (home-page "https://github.com/JuliaArrays/StaticArrays.jl")
932 (synopsis "Statically sized arrays")
933 (description "This package provides a framework for implementing
934 statically sized arrays in Julia, using the abstract type
935 @code{StaticArray{Size,T,N} <: AbstractArray{T,N}}. Subtypes of
936 @code{StaticArray} will provide fast implementations of common array and
937 linear algebra operations.")
938 (license license:expat)))
939
940 (define-public julia-uris
941 (package
942 (name "julia-uris")
943 (version "1.2.0")
944 (source
945 (origin
946 (method git-fetch)
947 (uri (git-reference
948 (url "https://github.com/JuliaWeb/URIs.jl")
949 (commit (string-append "v" version))))
950 (file-name (git-file-name name version))
951 (sha256
952 (base32 "0fqyagsqks5za7m0czafr34m2xh5501f689k9cn5x3npajdnh2r3"))))
953 (build-system julia-build-system)
954 (arguments
955 '(#:julia-package-name "URIs" ;required to run tests
956 #:phases
957 (modify-phases %standard-phases
958 (add-before 'check 'change-dir
959 ;; Tests must be run from the testdir
960 (lambda* (#:key source outputs #:allow-other-keys)
961 (let ((out (assoc-ref outputs "out")))
962 (chdir
963 (string-append out "/share/julia/packages/URIs/test")))
964 #t)))))
965 ;; required for tests
966 (inputs `(("julia-json" ,julia-json)))
967 (home-page "https://github.com/JuliaWeb/URIs.jl")
968 (synopsis "URI parsing in Julia")
969 (description "@code{URIs.jl} is a Julia package that allows parsing and
970 working with @acronym{URIs,Uniform Resource Identifiers}, as defined in RFC
971 3986.")
972 (license license:expat)))
973
974 (define-public julia-unitful
975 (package
976 (name "julia-unitful")
977 (version "1.6.0")
978 (source
979 (origin
980 (method git-fetch)
981 (uri (git-reference
982 (url "https://github.com/PainterQubits/Unitful.jl")
983 (commit (string-append "v" version))))
984 (file-name (git-file-name name version))
985 (sha256
986 (base32 "0g5bhlvay9yk11c5dqwbzmb3q7lzj0cq5zchyk39d59fkvvmxvq3"))))
987 (build-system julia-build-system)
988 (propagated-inputs
989 `(("julia-constructionbase" ,julia-constructionbase)))
990 (home-page "https://painterqubits.github.io/Unitful.jl/stable/")
991 (synopsis "Physical units in Julia")
992 (description "This package supports SI units and also many other unit
993 system.")
994 (license license:expat)))