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>
5 ;;; This file is part of GNU Guix.
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.
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.
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/>.
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 gcc)
26 #:use-module (gnu packages maths)
27 #:use-module (gnu packages tls))
29 (define-public julia-abstractffts
31 (name "julia-abstractffts")
37 (url "https://github.com/JuliaMath/AbstractFFTS.jl")
38 (commit (string-append "v" version))))
39 (file-name (git-file-name name version))
41 (base32 "0083pwdyxjb04i330ir9pc8kmp4bwk59lx1jgc9qi05y8j7xzbp0"))))
42 (build-system julia-build-system)
43 (inputs ;required for tests
44 `(("julia-unitful" ,julia-unitful)))
45 (home-page "https://github.com/JuliaGPU/Adapt.jl")
46 (synopsis "General framework for fast Fourier transforms (FFTs)")
47 (description "This package allows multiple FFT packages to co-exist with
48 the same underlying @code{fft(x)} and @code{plan_fft(x)} interface. It is
49 mainly not intended to be used directly. Instead, developers of packages that
50 implement FFTs (such as @code{FFTW.jl} or @code{FastTransforms.jl}) extend the
51 types/functions defined in AbstractFFTs.")
52 (license license:expat)))
54 (define-public julia-adapt
62 (url "https://github.com/JuliaGPU/Adapt.jl")
63 (commit (string-append "v" version))))
64 (file-name (git-file-name name version))
66 (base32 "1lks6k3a1gvwlplld47nh6xfy3nnlpc0vhkzg6zg0qn33qdmavrg"))))
67 (build-system julia-build-system)
68 (home-page "https://github.com/JuliaGPU/Adapt.jl")
69 (synopsis "Package providing the @code{adapt} function, similar to @code{convert}")
70 (description "This Julia package provides the @code{adapt(T, x)} function
71 acts like @code{convert(T, x)}, but without the restriction of returning a
72 @code{T}. This allows you to \"convert\" wrapper types like @code{Adjoint} to
73 be GPU compatible without throwing away the wrapper.")
74 (license license:expat)))
76 (define-public julia-benchmarktools
78 (name "julia-benchmarktools")
84 (url "https://github.com/JuliaCI/BenchmarkTools.jl")
85 (commit (string-append "v" version))))
86 (file-name (git-file-name name version))
88 (base32 "0nsx21m3i5h22lkgyrmfj6r085va6ag40khwssqs8y7l0wz98lvp"))))
89 (build-system julia-build-system)
90 (propagated-inputs `(("julia-json" ,julia-json)))
91 (home-page "https://github.com/JuliaCI/BenchmarkTools.jl")
92 (synopsis "Benchmarking framework for the Julia language")
93 (description "@code{BenchmarkTools.jl} makes performance tracking of Julia
94 code easy by supplying a framework for writing and running groups of
95 benchmarks as well as comparing benchmark results.")
96 (license license:expat)))
98 (define-public julia-bufferedstreams
100 (name "julia-bufferedstreams")
106 (url "https://github.com/BioJulia/BufferedStreams.jl")
107 (commit (string-append "v" version))))
108 (file-name (git-file-name name version))
110 (base32 "0sf4sxbq55mg2pwxyxf0c839z1lk0yxg8nmb7617bfbvw31cp88z"))))
111 (build-system julia-build-system)
112 ;; The package is old and tests are using undefined functions. They also
114 ;; https://travis-ci.org/BioJulia/BufferedStreams.jl/jobs/491050182
117 #:julia-package-name "BufferedStreams"))
118 (propagated-inputs `(("julia-compat" ,julia-compat)))
119 (home-page "https://github.com/BioJulia/BufferedStreams.jl")
120 (synopsis "Fast composable IO streams")
121 (description "@code{BufferedStreams.jl} provides buffering for IO
122 operations. It can wrap any @code{IO} type automatically making incremental
123 reading and writing faster.")
124 (license license:expat)))
126 (define-public julia-calculus
128 (name "julia-calculus")
134 (url "https://github.com/JuliaMath/Calculus.jl")
135 (commit (string-append "v" version))))
136 (file-name (git-file-name name version))
138 (base32 "0xh0ak2ycsjw2h86ja24ch3kn2d18zx3frrds78aimwdnqb1gdc2"))))
139 (build-system julia-build-system)
140 (home-page "https://github.com/JuliaMath/Calculus.jl")
141 (synopsis "Common utilities for automatic differentiation")
142 (description "This package provides tools for working with the basic
143 calculus operations of differentiation and integration. The @code{Calculus}
144 package produces approximate derivatives by several forms of finite
145 differencing or produces exact derivative using symbolic differentiation. It
146 can also be used to compute definite integrals by different numerical
148 (license license:expat)))
150 (define-public julia-chainrules
152 (name "julia-chainrules")
158 (url "https://github.com/JuliaDiff/ChainRules.jl")
159 (commit (string-append "v" version))))
160 (file-name (git-file-name name version))
162 (base32 "1x4w71v8cw0vpba47h8f5xq4gyjfxbcvayzf7m41yg8gf49s9pkf"))))
163 (build-system julia-build-system)
164 (inputs ;required for test
165 `(("julia-chainrulestestutils" ,julia-chainrulestestutils)
166 ("julia-finitedifferences" ,julia-finitedifferences)
167 ("julia-nanmath" ,julia-nanmath)
168 ("julia-specialfunctions" ,julia-specialfunctions)))
170 `(("julia-chainrulescore" ,julia-chainrulescore)
171 ("julia-compat" ,julia-compat)
172 ("julia-reexport" ,julia-reexport)
173 ("julia-requires" ,julia-requires)))
174 (home-page "https://github.com/JuliaDiff/ChainRules.jl")
175 (synopsis "Common utilities for automatic differentiation")
176 (description "The is package provides a variety of common utilities that
177 can be used by downstream automatic differentiation (AD) tools to define and
178 execute forward-, reverse-, and mixed-mode primitives.")
179 (license license:expat)))
181 (define-public julia-chainrulescore
183 (name "julia-chainrulescore")
189 (url "https://github.com/JuliaDiff/ChainRulesCore.jl")
190 (commit (string-append "v" version))))
191 (file-name (git-file-name name version))
193 (base32 "1k0iayw39n1ikkkhvyi4498vsnzc94skqs41gnd15632gxjfvki4"))))
194 (build-system julia-build-system)
195 (inputs ;required for tests
196 `(("julia-benchmarktools" ,julia-benchmarktools)
197 ("julia-staticarrays" ,julia-staticarrays)))
199 `(("julia-compat" ,julia-compat)))
200 (home-page "https://github.com/JuliaDiff/ChainRulesCore.jl")
201 (synopsis "Common utilities used by downstream automatic differentiation tools")
202 (description "The package provides a light-weight dependency for defining
203 sensitivities for functions without the need to depend on ChainRules itself.")
204 (license license:expat)))
206 (define-public julia-chainrulestestutils
208 (name "julia-chainrulestestutils")
214 (url "https://github.com/JuliaDiff/ChainRulesTestUtils.jl")
215 (commit (string-append "v" version))))
216 (file-name (git-file-name name version))
218 (base32 "1pzs947adnb3cx1qd0cxp2fidk9szz0zsqbas90z1lhydykkvkil"))))
219 (build-system julia-build-system)
221 `(("julia-chainrulescore" ,julia-chainrulescore)
222 ("julia-compat" ,julia-compat)
223 ("julia-finitedifference" ,julia-finitedifferences)))
224 (home-page "https://github.com/JuliaDiff/ChainRulesTestUtils.jl")
225 (synopsis "Common utilities used by downstream automatic differentiation tools")
226 (description "This package is designed to help in testing
227 @code{ChainRulesCore.frule} and @code{ChainRulesCore.rrule} methods. The main
228 entry points are @code{ChainRulesTestUtils.frule_test},
229 @code{ChainRulesTestUtils.rrule_test}, and
230 @code{ChainRulesTestUtils.test_scalar}. Currently this is done via testing the
231 rules against numerical differentiation (using @code{FiniteDifferences.jl}).
233 @code{ChainRulesTestUtils.jl} is separated from @code{ChainRulesCore.jl} so that it
234 can be a test-only dependency, allowing it to have potentially heavy
235 dependencies, while keeping @code{ChainRulesCore.jl} as light-weight as possible.")
236 (license license:expat)))
238 (define-public julia-colors
240 (name "julia-colors")
246 (url "https://github.com/JuliaGraphics/Colors.jl")
247 (commit (string-append "v" version))))
248 (file-name (git-file-name name version))
250 (base32 "156zsszgwh6bmznsan0zyha6yvcxw3c5mvc5vr2qfsgxbyh36ln6"))))
251 (build-system julia-build-system)
253 `(("julia-colortypes" ,julia-colortypes)
254 ("julia-fixedpointnumbers" ,julia-fixedpointnumbers)
255 ("julia-reexport" ,julia-reexport)))
256 (home-page "https://github.com/JuliaGraphics/Colors.jl")
257 (synopsis "Tools for dealing with color")
258 (description "This package provides a wide array of functions for dealing
259 with color. This includes conversion between colorspaces, measuring distance
260 between colors, simulating color blindness, parsing colors, and generating
261 color scales for graphics.")
262 (license license:expat)))
264 (define-public julia-colortypes
266 (name "julia-colortypes")
272 (url "https://github.com/JuliaGraphics/ColorTypes.jl")
273 (commit (string-append "v" version))))
274 (file-name (git-file-name name version))
276 (base32 "176hr3qbz7lncmykks2qaj3cqisnzim7wi5jwsca9ld26wwyvyqq"))))
278 '(#:tests? #f)) ;require Documenter, not packaged yet
279 (build-system julia-build-system)
281 `(("julia-fixedpointnumbers" ,julia-fixedpointnumbers)))
282 (home-page "https://github.com/JuliaGraphics/ColorTypes.jl")
283 (synopsis "Basic color types and constructor")
284 (description "This minimalistic package serves as the foundation for
285 working with colors in Julia. It defines basic color types and their
286 constructors, and sets up traits and show methods to make them easier to work
288 (license license:expat)))
290 (define-public julia-commonsubexpressions
292 (name "julia-commonsubexpressions")
298 (url "https://github.com/rdeits/CommonSubexpressions.jl")
299 (commit (string-append "v" version))))
300 (file-name (git-file-name name version))
302 (base32 "0mgy90kk8ksv3l720kkk04gnhn4aqhh2dj4sp3x8yy3limngfjay"))))
303 (build-system julia-build-system)
305 `(("julia-macrotools" ,julia-macrotools)))
306 (home-page "https://github.com/rdeits/CommonSubexpressions.jl")
307 (synopsis "@code{@@cse} macro for Julia")
308 (description "This package provides the @code{@@cse} macro, which performs
309 common subexpression elimination.")
310 (license license:expat)))
312 (define-public julia-compat
314 (name "julia-compat")
320 (url "https://github.com/JuliaLang/Compat.jl")
321 (commit (string-append "v" version))))
322 (file-name (git-file-name name version))
324 (base32 "1m4r5i8mq29xjp3mllh6047n5a78sdyld57m15anrnsjgaapcgby"))))
325 (build-system julia-build-system)
326 (home-page "https://github.com/JuliaLang/Compat.jl")
327 (synopsis "Compatibility across Julia versions")
328 (description "The Compat package is designed to ease interoperability
329 between older and newer versions of the Julia language. The Compat package
330 provides a macro that lets you use the latest syntax in a backwards-compatible
332 (license license:expat)))
334 ;;; TODO: Remove this autogenerated source package
335 ;;; and build it from realse source using <https://github.com/JuliaPackaging/Yggdrasil/>
336 (define-public julia-compilersupportlibraries-jll
338 (name "julia-compilersupportlibraries-jll")
344 (url "https://github.com/JuliaBinaryWrappers/CompilerSupportLibraries_jll.jl")
345 (commit (string-append "CompilerSupportLibraries-v" version))))
346 (file-name (git-file-name name version))
348 (base32 "03j6xdvps259mhdzpjqf41l65w2l9sahvxg4wrp34hcf69wkrzpy"))))
349 (build-system julia-build-system)
351 `(#:tests? #f ; no runtests.jl
353 (modify-phases %standard-phases
354 (add-after 'unpack 'override-binary-path
355 (lambda* (#:key inputs #:allow-other-keys)
359 (("generate_wrapper_header.*")
361 "generate_wrapper_header(\"CompilerSupportLibraries\", \""
362 (assoc-ref inputs "gfortran:lib") "\")\n"))))
363 ;; There's a Julia file for each platform, override them all
364 (find-files "src/wrappers/" "\\.jl$"))
366 (inputs ;required by artifacts
367 `(("gfortran:lib" ,gfortran "lib")))
369 `(("julia-jllwrappers" ,julia-jllwrappers)))
370 (home-page "https://github.com/JuliaBinaryWrappers/CompilerSupportLibraries_jll.jl")
371 (synopsis "Internal wrappers")
372 (description "This package provides compiler support for libraries. It is
373 an autogenerated source package constructed using @code{BinaryBuilder.jl}. The
374 originating @code{build_tarballs.jl} script can be found on the community
375 build tree Yggdrasil.")
376 (license license:expat)))
378 (define-public julia-constructionbase
379 (let ((commit "de77e2865b554f9b078fd8c35b593cce0554ae02"))
381 (name "julia-constructionbase")
382 (version "1.1.0") ;tag not created upstream
387 (url "https://github.com/JuliaObjects/ConstructionBase.jl")
389 (file-name (git-file-name name version))
391 (base32 "1y79sfj0rds1skl9j16p9161hwa9khm0xc2m4hgjcbh5zzvyr57v"))))
392 (build-system julia-build-system)
393 (home-page "https://juliaobjects.github.io/ConstructionBase.jl/dev/")
394 (synopsis "Primitive functions for construction of objects")
395 (description "This very lightweight package provides primitive functions
396 for construction of objects.")
397 (license license:expat))))
399 (define-public julia-datastructures
401 (name "julia-datastructures")
407 (url "https://github.com/JuliaCollections/DataStructures.jl")
408 (commit (string-append "v" version))))
409 (file-name (git-file-name name version))
411 (base32 "0hdqp8ipsqdw5bqqkdvz4j6n67x80sj5azr9vzyxwjfsgkfbnk2l"))))
413 `(("julia-compat" ,julia-compat)
414 ("julia-orderedcollections" ,julia-orderedcollections)))
415 (build-system julia-build-system)
416 (home-page "https://github.com/JuliaCollections/DataStructures.jl")
417 (synopsis "Julia module providing different data structures")
418 (description "This package implements a variety of data structures,
419 including, @code{CircularBuffer}, @code{Queue}, @code{Stack},
420 @code{Accumulators}, @code{LinkedLists}, @code{SortedDicts} and many others.")
421 (license license:expat)))
423 (define-public julia-diffresults
425 (name "julia-diffresults")
431 (url "https://github.com/JuliaDiff/DiffResults.jl")
432 (commit (string-append "v" version))))
433 (file-name (git-file-name name version))
435 (base32 "1w6p3yxajvclax5b9g7cr2jmbc7lvr5nk4gq0aljxdycdq1d2y3v"))))
437 `(("julia-staticarrays" ,julia-staticarrays)))
438 (build-system julia-build-system)
439 (home-page "https://github.com/JuliaDiff/DiffResults.jl")
440 (synopsis "In-place differentiation methods of primal values at multi-order")
441 (description "This package provides the @code{DiffResult} type, which can
442 be passed to in-place differentiation methods instead of an output buffer.")
443 (license license:expat)))
445 (define-public julia-diffrules
447 (name "julia-diffrules")
453 (url "https://github.com/JuliaDiff/DiffRules.jl")
454 (commit (string-append "v" version))))
455 (file-name (git-file-name name version))
457 (base32 "0cwjvj4gma7924fm3yas0nf0jlnwwx4v7fi79ii3s290lkdldzfl"))))
459 `(("julia-nanmath" ,julia-nanmath)
460 ("julia-specialfunctions" ,julia-specialfunctions)))
461 (build-system julia-build-system)
462 (home-page "https://github.com/JuliaDiff/DiffRules.jl")
463 (synopsis "Primitive differentiation rules")
464 (description "This package provides primitive differentiation rules that
465 can be composed via various formulations of the chain rule. Using
466 @code{DiffRules}, new differentiation rules can defined, query whether or not
467 a given rule exists, and symbolically apply rules to simple Julia expressions.")
468 (license license:expat)))
470 (define-public julia-difftests
472 (name "julia-difftests")
478 (url "https://github.com/JuliaDiff/DiffTests.jl")
479 (commit (string-append "v" version))))
480 (file-name (git-file-name name version))
482 (base32 "1rxpnd5zi3pxgdd38l5jm2sxc3q6p7g57fqgll2dsiin07y3my57"))))
483 (build-system julia-build-system)
484 (home-page "https://github.com/JuliaDiff/DiffTests.jl")
485 (synopsis "Common test functions for differentiation tools")
486 (description "This package contains a common suite of test functions for
487 stressing the robustness of differentiation tools.")
488 (license license:expat)))
490 (define-public julia-example
491 (let ((commit "f968c69dea24f851d0c7e686db23fa55826b5388"))
493 (name "julia-example")
494 (version "0.5.4") ;tag not created upstream
499 (url "https://github.com/JuliaLang/Example.jl")
501 (file-name (git-file-name name version))
503 (base32 "1v3z0d6gh6wfbypffy9m9rhh36px6fm5wjzq0y6rbmc95r0qpqlx"))))
504 (build-system julia-build-system)
505 (home-page "https://github.com/JuliaLang/Example.jl")
506 (synopsis "Module providing examples")
507 (description "This package provides various examples.")
508 (license license:expat))))
510 (define-public julia-fillarrays
512 (name "julia-fillarrays")
518 (url "https://github.com/JuliaArrays/FillArrays.jl")
519 (commit (string-append "v" version))))
520 (file-name (git-file-name name version))
522 (base32 "1q1qn9pb5dmppddnmf8gggdqyvivqh3ffvbblhn37smcf9r5sy7d"))))
523 (build-system julia-build-system)
524 (inputs ;required by tests
525 `(("julia-staticarrays" ,julia-staticarrays)))
526 (home-page "https://github.com/JuliaArrays/FillArrays.jl")
527 (synopsis "Lazy matrix representation")
528 (description "This package allows to lazily represent matrices filled with
529 a single entry, as well as identity matrices. This package exports the
530 following types: @code{Eye}, @code{Fill}, @code{Ones}, @code{Zeros},
531 @code{Trues} and @code{Falses}.")
532 (license license:expat)))
534 (define-public julia-finitedifferences
536 (name "julia-finitedifferences")
542 (url "https://github.com/JuliaDiff/FiniteDifferences.jl")
543 (commit (string-append "v" version))))
544 (file-name (git-file-name name version))
546 (base32 "0dcx34026xdpfmbjls3mrknl8ww62kxxfr77kfihbazsfg2gp5b4"))))
547 (build-system julia-build-system)
549 `(("julia-benchmarktools" ,julia-benchmarktools)))
551 `(("julia-chainrulescore" ,julia-chainrulescore)
552 ("julia-richardson" ,julia-richardson)
553 ("julia-staticarrays" ,julia-staticarrays)))
554 (home-page "https://github.com/JuliaDiff/FiniteDifferences.jl")
555 (synopsis "Estimates derivatives with finite differences")
556 (description "This package calculates approximate derivatives numerically
557 using finite difference.")
558 (license license:expat)))
560 (define-public julia-fixedpointnumbers
562 (name "julia-fixedpointnumbers")
568 (url "https://github.com/JuliaMath/FixedPointNumbers.jl")
569 (commit (string-append "v" version))))
570 (file-name (git-file-name name version))
572 (base32 "0j0n40n04q9sk68wh9jq90m6c67k4ws02k41djjzkrqmpzv4rcdi"))))
573 (build-system julia-build-system)
576 (modify-phases %standard-phases
577 (add-after 'unpack 'disable-failing-test
578 (lambda* (#:key outputs #:allow-other-keys)
579 (substitute* "test/fixed.jl"
580 ;; A deprecation warning is not thrown
581 (("@test_logs.*:warn" all) (string-append "# " all)))
583 (propagated-inputs `(("julia-compat" ,julia-compat)))
584 (home-page "https://github.com/JuliaMath/FixedPointNumbers.jl")
585 (synopsis "Fixed point types for Julia")
586 (description "@code{FixedPointNumbers.jl} implements fixed-point number
587 types for Julia. A fixed-point number represents a fractional, or
588 non-integral, number. In contrast with the more widely known floating-point
589 numbers, with fixed-point numbers the decimal point doesn't \"float\":
590 fixed-point numbers are effectively integers that are interpreted as being
591 scaled by a constant factor. Consequently, they have a fixed number of
592 digits (bits) after the decimal (radix) point.")
593 (license license:expat)))
595 (define-public julia-forwarddiff
597 (name "julia-forwarddiff")
603 (url "https://github.com/JuliaDiff/ForwardDiff.jl")
604 (commit (string-append "v" version))))
605 (file-name (git-file-name name version))
607 (base32 "17xaz4v0zr46p7w873w1fwf31phdnhr0vbdym9yr4flmpzi528jw"))))
608 (build-system julia-build-system)
609 (inputs ;required for tests
610 `(("julia-calculus" ,julia-calculus)
611 ("julia-difftests" ,julia-difftests)))
613 `(("julia-commonsubexpressions" ,julia-commonsubexpressions)
614 ("julia-diffresults" ,julia-diffresults)
615 ("julia-diffrules" ,julia-diffrules)
616 ("julia-nanmath" ,julia-nanmath)
617 ("julia-specialfunctions" ,julia-specialfunctions)
618 ("julia-staticarrays" ,julia-staticarrays)))
619 (home-page "https://github.com/JuliaDiff/ForwardDiff.jl")
620 (synopsis "Methods to take multidimensional derivatives")
621 (description "This package implements methods to take derivatives,
622 gradients, Jacobians, Hessians, and higher-order derivatives of native Julia
623 functions (or any callable object, really) using forward mode automatic
624 differentiation (AD).")
625 (license license:expat)))
627 (define-public julia-http
635 (url "https://github.com/JuliaWeb/HTTP.jl")
636 (commit (string-append "v" version))))
637 (file-name (git-file-name name version))
639 (base32 "0ij0yci13c46p92m4zywvcs02nn8pm0abyfffiyhxvva6hq48lyl"))))
640 (build-system julia-build-system)
643 (modify-phases %standard-phases
644 (add-before 'install 'disable-network-tests
646 (substitute* "test/runtests.jl"
647 (("\"async.jl") "# \"async.jl")
648 (("\"client.jl") "# \"client.jl"))
649 (substitute* "test/aws4.jl"
650 (("@testset.*HTTP.request with AWS authentication.*" all)
651 (string-append all "return\n")))
652 (substitute* "test/insert_layers.jl"
653 (("@testset.*Inserted final layer runs handler.*" all)
654 (string-append all "return\n")))
655 (substitute* "test/multipart.jl"
656 (("@testset \"Setting of Content-Type.*" all)
657 (string-append all "return\n"))
658 (("@testset \"Deprecation of .*" all)
659 (string-append all "return\n")))
660 (substitute* "test/websockets.jl"
661 (("@testset.*External Host.*" all)
662 (string-append all "return\n")))
663 (substitute* "test/messages.jl"
664 (("@testset.*Read methods.*" all)
665 (string-append all "return\n"))
666 (("@testset.*Body - .*" all)
667 (string-append all "return\n"))
668 (("@testset.*Write to file.*" all)
669 (string-append all "return\n")))
672 `(("julia-inifile" ,julia-inifile)
673 ("julia-mbedtls" ,julia-mbedtls)
674 ("julia-uris" ,julia-uris)))
675 ;; required for tests
677 `(("julia-json" ,julia-json)
678 ("julia-bufferedstreams" ,julia-bufferedstreams)))
679 (home-page "https://juliaweb.github.io/HTTP.jl/")
680 (synopsis "HTTP support for Julia")
681 (description "@code{HTTP.jl} is a Julia library for HTTP Messages,
682 implementing both a client and a server.")
683 (license license:expat)))
685 (define-public julia-inifile
687 (name "julia-inifile")
693 (url "https://github.com/JuliaIO/IniFile.jl")
694 (commit "8ba59958495fa276d6489d2c3903e765d75e0bc0")))
695 (file-name (git-file-name name version))
697 (base32 "11h6f99jpbg729lplw841m68jprka7q3n8yw390bndlmcdsjabpd"))))
698 (build-system julia-build-system)
699 (home-page "https://github.com/JuliaIO/IniFile.jl")
700 (synopsis "Reading Windows-style INI files")
701 (description "This is a Julia package that defines an IniFile type that
702 allows to interface with @file{.ini} files.")
703 (license license:expat)))
705 (define-public julia-irtools
707 (name "julia-irtools")
713 (url "https://github.com/FluxML/IRTools.jl")
714 (commit (string-append "v" version))))
715 (file-name (git-file-name name version))
717 (base32 "0wwzy77jcdnffnd5fr6xan7162g4wydz67igrq82wflwnrhlcx5y"))))
719 '(#:tests? #f)) ;require Documenter, not packaged yet
720 (build-system julia-build-system)
722 `(("julia-macrotools" ,julia-macrotools)))
723 (home-page "https://github.com/FluxML/IRTools.jl")
724 (synopsis "Simple and flexible IR format")
725 (description "This package provides a simple and flexible IR format,
726 expressive enough to work with both lowered and typed Julia code, as well as
727 external IRs. It can be used with Julia metaprogramming tools such as
729 (license license:expat)))
731 (define-public julia-jllwrappers
733 (name "julia-jllwrappers")
739 (url "https://github.com/JuliaPackaging/JLLWrappers.jl")
740 (commit (string-append "v" version))))
741 (file-name (git-file-name name version))
743 (base32 "1sj3mi2dcc13apqfpy401wic5n0pgbck1p98b2g3zw0mln9s83m4"))))
745 ;; Wants to download stuff
748 (modify-phases %standard-phases
749 (add-after 'unpack 'custom-override-path
750 (lambda* (#:key inputs #:allow-other-keys)
751 ;; Make @generate_wrapper_header take an optional argument that
752 ;; guix packagers can pass to override the default "override"
753 ;; binary path. This won't be needed when something like
754 ;; https://github.com/JuliaPackaging/JLLWrappers.jl/pull/27
756 (substitute* "src/wrapper_generators.jl"
757 (("generate_wrapper_header.*")
758 "generate_wrapper_header(src_name, override_path = nothing)\n")
759 (("pkg_dir = .*" all)
761 all "\n" "override = something(override_path,"
762 "joinpath(dirname(pkg_dir), \"override\"))\n"))
763 (("@static if isdir.*") "@static if isdir($override)\n")
764 (("return joinpath.*") "return $override\n"))
766 (build-system julia-build-system)
767 (home-page "https://github.com/JuliaPackaging/JLLWrappers.jl")
768 (synopsis "Julia macros used by JLL packages")
769 (description "This package contains Julia macros that enable JLL packages
770 to generate themselves. It is not intended to be used by users, but rather is
771 used in autogenerated packages via @code{BinaryBuilder.jl}.")
772 (license license:expat)))
774 (define-public julia-json
782 (url "https://github.com/JuliaIO/JSON.jl")
783 (commit (string-append "v" version))))
784 (file-name (git-file-name name version))
786 (base32 "1f9k613kbknmp4fgjxvjaw4d5sfbx8a5hmcszmp1w9rqfqngjx9m"))))
787 (build-system julia-build-system)
789 `(("julia-datastructures" ,julia-datastructures)
790 ("julia-fixedpointnumbers" ,julia-fixedpointnumbers)
791 ("julia-parsers" ,julia-parsers)
792 ("julia-offsetarrays" ,julia-offsetarrays)))
793 (home-page "https://github.com/JuliaIO/JSON.jl")
794 (synopsis "JSON parsing and printing library for Julia")
795 (description "@code{JSON.jl} is a pure Julia module which supports parsing
796 and printing JSON documents.")
797 (license license:expat)))
799 (define-public julia-macrotools
801 (name "julia-macrotools")
807 (url "https://github.com/FluxML/MacroTools.jl")
808 (commit (string-append "v" version))))
809 (file-name (git-file-name name version))
811 (base32 "0k4z2hyasd9cwxf4l61zk3w4ajs44k69wx6z1ghdn8f5p8xy217f"))))
812 (build-system julia-build-system)
813 (home-page "https://fluxml.ai/MacroTools.jl")
814 (synopsis "Tools for working with Julia code and expressions")
815 (description "This library provides tools for working with Julia code and
816 expressions. This includes a template-matching system and code-walking tools
817 that let you do deep transformations of code.")
818 (license license:expat)))
820 (define-public julia-mbedtls
822 (name "julia-mbedtls")
828 (url "https://github.com/JuliaLang/MbedTLS.jl")
829 (commit (string-append "v" version))))
830 (file-name (git-file-name name version))
832 (base32 "0zjzf2r57l24n3k0gcqkvx3izwn5827iv9ak0lqix0aa5967wvfb"))))
833 (build-system julia-build-system)
836 (modify-phases %standard-phases
837 (add-before 'install 'disable-network-tests
838 ;; Tries to connect to httpbin.org
840 (substitute* "test/runtests.jl"
841 (("testhost =") "return #"))
843 (propagated-inputs `(("julia-mbedtls-jll" ,julia-mbedtls-jll)))
844 (home-page "https://github.com/JuliaLang/MbedTLS.jl")
845 (synopsis "Apache's mbed TLS library wrapper")
846 (description "@code{MbedTLS.jl} provides a wrapper around the @code{mbed
847 TLS} and cryptography C library for Julia.")
848 (license license:expat)))
850 (define-public julia-mbedtls-jll
852 (name "julia-mbedtls-jll")
853 ;; version 2.25.0+0 is not compatible with current mbedtls 2.23.0,
854 ;; upgrade this when mbedtls is updated in guix
860 (url "https://github.com/JuliaBinaryWrappers/MbedTLS_jll.jl")
861 (commit (string-append "MbedTLS-v" version))))
862 (file-name (git-file-name name version))
864 (base32 "0kk9dlxdh7yms21npgrdfmjbj8q8ng6kdhrzw3jr2d7rp696kp99"))))
865 (build-system julia-build-system)
867 '(#:tests? #f ; No runtests.jl
869 (modify-phases %standard-phases
870 (add-after 'unpack 'override-binary-path
871 (lambda* (#:key inputs #:allow-other-keys)
875 (("generate_wrapper_header.*")
877 "generate_wrapper_header(\"MbedTLS\", \""
878 (assoc-ref inputs "mbedtls-apache") "\")\n"))))
879 ;; There's a Julia file for each platform, override them all
880 (find-files "src/wrappers/" "\\.jl$"))
882 (inputs `(("mbedtls-apache" ,mbedtls-apache)))
883 (propagated-inputs `(("julia-jllwrappers" ,julia-jllwrappers)))
884 (home-page "https://github.com/JuliaBinaryWrappers/MbedTLS_jll.jl")
885 (synopsis "Apache's mbed TLS binary wrappers")
886 (description "This Julia module provides @code{mbed TLS} libraries and
888 (license license:expat)))
890 (define-public julia-nanmath
892 (name "julia-nanmath")
898 (url "https://github.com/mlubin/NaNMath.jl")
899 (commit (string-append "v" version))))
900 (file-name (git-file-name name version))
902 (base32 "1hczhz00qj99w63vp627kwk02l2sr2qmzc2rkwwkdwvzy670p25q"))))
903 (build-system julia-build-system)
904 (home-page "https://github.com/mlubin/NaNMath.jl")
905 (synopsis "Implementations of basic math functions")
906 (description "Implementations of basic math functions which return
907 @code{NaN} instead of throwing a @code{DomainError}.")
908 (license license:expat)))
910 (define-public julia-orderedcollections
912 (name "julia-orderedcollections")
918 (url "https://github.com/JuliaCollections/OrderedCollections.jl")
919 (commit (string-append "v" version))))
920 (file-name (git-file-name name version))
922 (base32 "0sfip1ixghsz91q2s7d62rgzw3gppg42fg6bccxlplqa3hfmbycf"))))
923 (build-system julia-build-system)
924 (home-page "https://github.com/JuliaCollections/OrderedCollections.jl")
925 (synopsis "Associative containers that preserve insertion order")
926 (description "This package implements @code{OrderedDicts} and
927 @code{OrderedSets}, which are similar to containers in base Julia. However,
928 during iteration the @code{Ordered*} containers return items in the order in
929 which they were added to the collection.")
930 (license license:expat)))
932 (define-public julia-offsetarrays
934 (name "julia-offsetarrays")
940 (url "https://github.com/JuliaArrays/OffsetArrays.jl")
941 (commit (string-append "v" version))))
942 (file-name (git-file-name name version))
944 (base32 "1y3fnssw2hzyghrk6jfcxslab0f8sjkjszh482snfq4k6mkrhy77"))))
945 (build-system julia-build-system)
947 `(("julia-adapt" ,julia-adapt)))
948 ;; CatIndices depends on OffsetArrays, introducing a recursive dependency
949 (arguments '(#:tests? #f))
950 (home-page "https://juliaarrays.github.io/OffsetArrays.jl/stable/")
951 (synopsis "Fortran-like arrays with arbitrary, zero or negative indices")
952 (description "@code{OffsetArrays.jl} provides Julia users with arrays that
953 have arbitrary indices, similar to those found in some other programming
954 languages like Fortran.")
955 (license license:expat)))
957 ;;; TODO: Remove this autogenerated source package
958 ;;; and build it from realse source using <https://github.com/JuliaPackaging/Yggdrasil/>
959 (define-public julia-openspecfun-jll
960 (let ((commit "6c505cce3bdcd9cd2b15b4f9362ec3a42c4da71c"))
962 (name "julia-openspecfun-jll")
963 (version "0.5.3+4") ;tag not created upstream
968 (url "https://github.com/JuliaBinaryWrappers/OpenSpecFun_jll.jl")
970 (file-name (git-file-name name version))
972 (base32 "0bl2gcgndsbiwhwy8fl070cjm1fyf9kxj6gkikgirmzgjl29iakn"))))
973 (build-system julia-build-system)
975 `(#:tests? #f ; no runtests.jl
977 (modify-phases %standard-phases
978 (add-after 'unpack 'override-binary-path
979 (lambda* (#:key inputs #:allow-other-keys)
983 (("generate_wrapper_header.*")
985 "generate_wrapper_header(\"OpenSpecFun\", \""
986 (assoc-ref inputs "openspecfun") "\")\n"))))
987 ;; There's a Julia file for each platform, override them all
988 (find-files "src/wrappers/" "\\.jl$"))
991 `(("openspecfun" ,openspecfun)))
993 `(("julia-jllwrappers" ,julia-jllwrappers)
994 ("julia-compilersupportlibraries-jll" ,julia-compilersupportlibraries-jll)))
995 (home-page "https://github.com/JuliaBinaryWrappers/OpenSpecFun_jll.jl")
996 (synopsis "Internal wrappers")
997 (description "This package provides a wrapper for OpenSpecFun. It is an
998 autogenerated source package constructed using @code{BinaryBuilder.jl}. The
999 originating @code{build_tarballs.jl} script can be found on the community
1000 build tree Yggdrasil.")
1001 (license license:expat))))
1003 (define-public julia-parsers
1005 (name "julia-parsers")
1011 (url "https://github.com/JuliaData/Parsers.jl")
1012 (commit (string-append "v" version))))
1013 (file-name (git-file-name name version))
1015 (base32 "16iffl6l28kspgqch48mhi1s8qhspr3cpqcwsph3rqi72lbfqygx"))))
1016 (build-system julia-build-system)
1017 (home-page "https://github.com/JuliaData/Parsers.jl")
1018 (synopsis "Fast parsing machinery for basic types in Julia")
1019 (description "@code{Parsers.jl} is a collection of type parsers and
1020 utilities for Julia.")
1021 (license license:expat)))
1023 (define-public julia-reexport
1025 (name "julia-reexport")
1031 (url "https://github.com/simonster/Reexport.jl")
1033 (file-name (git-file-name name version))
1035 (base32 "1yhhja1zz6dy5f4fd19bdwd6jwgj7q4w3avzgyg1hjhmdl8jrh0s"))))
1036 (build-system julia-build-system)
1037 (home-page "https://github.com/simonster/Reexport.jl")
1038 (synopsis "Re-export modules and symbols")
1039 (description "This package provides tools to re-export modules and symbols.")
1040 (license license:expat)))
1042 (define-public julia-requires
1044 (name "julia-requires")
1050 (url "https://github.com/JuliaPackaging/Requires.jl/")
1051 (commit (string-append "v" version))))
1052 (file-name (git-file-name name version))
1054 (base32 "03hyfy7c0ma45b0y756j76awi3az2ii4bz4s8cxm3xw9yy1z7b01"))))
1055 (build-system julia-build-system)
1056 (inputs ;required for test
1057 `(("julia-example" ,julia-example)))
1059 `(("julia-colors" ,julia-colors)))
1060 (home-page "https://github.com/JuliaPackaging/Requires.jl/")
1061 (synopsis "Faster package loader")
1062 (description "This package make loading packages faster, maybe. It
1063 supports specifying glue code in packages which will load automatically when
1064 another package is loaded, so that explicit dependencies (and long load times)
1066 (license license:expat)))
1068 (define-public julia-richardson
1070 (name "julia-richardson")
1076 (url "https://github.com/JuliaMath/Richardson.jl")
1077 (commit (string-append "v" version))))
1078 (file-name (git-file-name name version))
1080 (base32 "06v9ii3d7hh41fsrfklaa8ap55z5s017f888mrd1c18y4fx9i4nx"))))
1081 (build-system julia-build-system)
1082 (home-page "https://juliapackages.com/p/richardson")
1083 (synopsis "Extrapolate function using Richardson method")
1084 (description "This package provides a function extrapolate that
1085 extrapolates a given function @code{f(x)} to @code{f(x0)}, evaluating @code{f}
1086 only at a geometric sequence of points @code{> x0} (or optionally @code{<
1087 x0}). The key algorithm is Richardson extrapolation using a Neville–Aitken
1088 tableau, which adaptively increases the degree of an extrapolation polynomial
1089 until convergence is achieved to a desired tolerance (or convergence stalls
1090 due to e.g. floating-point errors). This allows one to obtain @code{f(x0)} to
1091 high-order accuracy, assuming that @code{f(x0+h)} has a Taylor series or some
1092 other power series in @code{h}.")
1093 (license license:expat)))
1095 (define-public julia-specialfunctions
1097 (name "julia-specialfunctions")
1103 (url "https://github.com/JuliaMath/SpecialFunctions.jl")
1104 (commit (string-append "v" version))))
1105 (file-name (git-file-name name version))
1107 (base32 "1rfhrrkzi3ils7fklbn35ki1yp5x88fi71qknfwqyw4pk8cf8p80"))))
1108 (build-system julia-build-system)
1110 `(("julia-chainrulestestutils" ,julia-chainrulestestutils)))
1112 `(("julia-chainrulescore" ,julia-chainrulescore)
1113 ("julia-openspecfun-jll" ,julia-openspecfun-jll)))
1114 (home-page "https://github.com/JuliaMath/SpecialFunctions.jl")
1115 (synopsis "Special mathematical functions")
1116 (description "This package provides special mathematical functions,
1117 including Bessel, Hankel, Airy, error, Dawson, exponential (or sine and
1118 cosine) integrals, eta, zeta, digamma, inverse digamma, trigamma, and
1119 polygamma functions.")
1120 (license license:expat)))
1122 (define-public julia-staticarrays
1124 (name "julia-staticarrays")
1130 (url "https://github.com/JuliaArrays/StaticArrays.jl")
1131 (commit (string-append "v" version))))
1132 (file-name (git-file-name name version))
1134 (base32 "01z8bcqwpfkp8p1h1r36pr5cc3798y76zkas7g3206pcsdhvlkz1"))))
1135 (build-system julia-build-system)
1137 `(("julia-benchmarktools" ,julia-benchmarktools)))
1138 (home-page "https://github.com/JuliaArrays/StaticArrays.jl")
1139 (synopsis "Statically sized arrays")
1140 (description "This package provides a framework for implementing
1141 statically sized arrays in Julia, using the abstract type
1142 @code{StaticArray{Size,T,N} <: AbstractArray{T,N}}. Subtypes of
1143 @code{StaticArray} will provide fast implementations of common array and
1144 linear algebra operations.")
1145 (license license:expat)))
1147 (define-public julia-uris
1155 (url "https://github.com/JuliaWeb/URIs.jl")
1156 (commit (string-append "v" version))))
1157 (file-name (git-file-name name version))
1159 (base32 "0fqyagsqks5za7m0czafr34m2xh5501f689k9cn5x3npajdnh2r3"))))
1160 (build-system julia-build-system)
1162 '(#:julia-package-name "URIs" ;required to run tests
1164 (modify-phases %standard-phases
1165 (add-before 'check 'change-dir
1166 ;; Tests must be run from the testdir
1167 (lambda* (#:key source outputs #:allow-other-keys)
1168 (let ((out (assoc-ref outputs "out")))
1170 (string-append out "/share/julia/packages/URIs/test")))
1172 ;; required for tests
1173 (inputs `(("julia-json" ,julia-json)))
1174 (home-page "https://github.com/JuliaWeb/URIs.jl")
1175 (synopsis "URI parsing in Julia")
1176 (description "@code{URIs.jl} is a Julia package that allows parsing and
1177 working with @acronym{URIs,Uniform Resource Identifiers}, as defined in RFC
1179 (license license:expat)))
1181 (define-public julia-unitful
1183 (name "julia-unitful")
1189 (url "https://github.com/PainterQubits/Unitful.jl")
1190 (commit (string-append "v" version))))
1191 (file-name (git-file-name name version))
1193 (base32 "0g5bhlvay9yk11c5dqwbzmb3q7lzj0cq5zchyk39d59fkvvmxvq3"))))
1194 (build-system julia-build-system)
1196 `(("julia-constructionbase" ,julia-constructionbase)))
1197 (home-page "https://painterqubits.github.io/Unitful.jl/stable/")
1198 (synopsis "Physical units in Julia")
1199 (description "This package supports SI units and also many other unit
1201 (license license:expat)))
1203 (define-public julia-zygoterules
1205 (name "julia-zygoterules")
1211 (url "https://github.com/FluxML/ZygoteRules.jl")
1212 (commit (string-append "v" version))))
1213 (file-name (git-file-name name version))
1215 (base32 "07i2mf6rr5b8i6l82qgwl5arsb5pwyyzyfasgnszhdqllk9501bs"))))
1216 (build-system julia-build-system)
1218 `(("julia-macrotools" ,julia-macrotools)))
1219 (home-page "https://github.com/FluxML/ZygoteRules.jl")
1220 (synopsis "Add minimal custom gradients to Zygote")
1221 (description "Minimal package which enables to add custom gradients to
1222 Zygote, without depending on Zygote itself.")
1223 (license license:expat)))
1225 (define-public julia-zygote
1227 (name "julia-zygote")
1233 (url "https://github.com/FluxML/Zygote.jl")
1234 (commit (string-append "v" version))))
1235 (file-name (git-file-name name version))
1237 (base32 "1h2ph0lsisbkh8y4xgwzgw9p5zi243q8zzp5gfh3zw9pzkx6a1rf"))))
1238 (build-system julia-build-system)
1240 `(#:tests? #f)) ;require CUDA, not packaged yet
1242 `(("julia-abstractffs" ,julia-abstractffts)
1243 ("julia-chainrules" ,julia-chainrules)
1244 ("julia-diffrules" ,julia-diffrules)
1245 ("julia-fillarrays" ,julia-fillarrays)
1246 ("julia-forwarddiff" ,julia-forwarddiff)
1247 ("julia-irtools" ,julia-irtools)
1248 ("julia-macrotools" ,julia-macrotools)
1249 ("julia-nanmath" ,julia-nanmath)
1250 ("julia-requires" ,julia-requires)
1251 ("julia-specialfunctions" ,julia-specialfunctions)
1252 ("julia-zygote-rules" ,julia-zygoterules)))
1253 (home-page "https://fluxml.ai/Zygote.jl")
1254 (synopsis "Automatic differentiation in Julia")
1255 (description "Zygote provides source-to-source automatic
1256 differentiation (AD) in Julia, and is the next-generation AD system for the
1257 Flux differentiable programming framework.")
1258 (license license:expat)))