Commit | Line | Data |
---|---|---|
a1315b7f | 1 | ;;; GNU Guix --- Functional package management for GNU |
f7a98af0 | 2 | ;;; Copyright © 2020, 2021 Nicolò Balzarotti <nicolo@nixo.xyz> |
35044d3e | 3 | ;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com> |
a1315b7f | 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) | |
3291e4ba | 24 | #:use-module (guix build-system julia) |
4d69758f | 25 | #:use-module (gnu packages gcc) |
73052c70 | 26 | #:use-module (gnu packages maths) |
3291e4ba | 27 | #:use-module (gnu packages tls)) |
a1315b7f | 28 | |
651a5573 | 29 | (define-public julia-abstractffts |
30 | (package | |
31 | (name "julia-abstractffts") | |
32 | (version "1.0.1") | |
33 | (source | |
34 | (origin | |
35 | (method git-fetch) | |
36 | (uri (git-reference | |
37 | (url "https://github.com/JuliaMath/AbstractFFTS.jl") | |
38 | (commit (string-append "v" version)))) | |
39 | (file-name (git-file-name name version)) | |
40 | (sha256 | |
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))) | |
53 | ||
20767b9b | 54 | (define-public julia-adapt |
55 | (package | |
56 | (name "julia-adapt") | |
57 | (version "3.1.1") | |
58 | (source | |
59 | (origin | |
60 | (method git-fetch) | |
61 | (uri (git-reference | |
62 | (url "https://github.com/JuliaGPU/Adapt.jl") | |
63 | (commit (string-append "v" version)))) | |
81d45a66 | 64 | (file-name (git-file-name name version)) |
20767b9b | 65 | (sha256 |
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))) | |
75 | ||
03010d5d | 76 | (define-public julia-benchmarktools |
77 | (package | |
78 | (name "julia-benchmarktools") | |
79 | (version "0.5.0") | |
80 | (source | |
81 | (origin | |
82 | (method git-fetch) | |
83 | (uri (git-reference | |
84 | (url "https://github.com/JuliaCI/BenchmarkTools.jl") | |
85 | (commit (string-append "v" version)))) | |
86 | (file-name (git-file-name name version)) | |
87 | (sha256 | |
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))) | |
97 | ||
52d09b1f | 98 | (define-public julia-bufferedstreams |
99 | (package | |
100 | (name "julia-bufferedstreams") | |
101 | (version "1.0.0") | |
102 | (source | |
103 | (origin | |
104 | (method git-fetch) | |
105 | (uri (git-reference | |
106 | (url "https://github.com/BioJulia/BufferedStreams.jl") | |
107 | (commit (string-append "v" version)))) | |
108 | (file-name (git-file-name name version)) | |
109 | (sha256 | |
110 | (base32 "0sf4sxbq55mg2pwxyxf0c839z1lk0yxg8nmb7617bfbvw31cp88z")))) | |
111 | (build-system julia-build-system) | |
112 | ;; The package is old and tests are using undefined functions. They also | |
113 | ;; freeze, see | |
114 | ;; https://travis-ci.org/BioJulia/BufferedStreams.jl/jobs/491050182 | |
115 | (arguments | |
116 | '(#:tests? #f | |
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))) | |
125 | ||
b91ad832 | 126 | (define-public julia-calculus |
127 | (package | |
128 | (name "julia-calculus") | |
129 | (version "0.5.1") | |
130 | (source | |
131 | (origin | |
132 | (method git-fetch) | |
133 | (uri (git-reference | |
134 | (url "https://github.com/JuliaMath/Calculus.jl") | |
135 | (commit (string-append "v" version)))) | |
136 | (file-name (git-file-name name version)) | |
137 | (sha256 | |
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 | |
147 | methods.") | |
148 | (license license:expat))) | |
149 | ||
397f8c48 | 150 | (define-public julia-chainrules |
151 | (package | |
152 | (name "julia-chainrules") | |
153 | (version "0.7.54") | |
154 | (source | |
155 | (origin | |
156 | (method git-fetch) | |
157 | (uri (git-reference | |
158 | (url "https://github.com/JuliaDiff/ChainRules.jl") | |
159 | (commit (string-append "v" version)))) | |
160 | (file-name (git-file-name name version)) | |
161 | (sha256 | |
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))) | |
169 | (propagated-inputs | |
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))) | |
180 | ||
bb1ca1f3 | 181 | (define-public julia-chainrulescore |
182 | (package | |
183 | (name "julia-chainrulescore") | |
184 | (version "0.9.29") | |
185 | (source | |
186 | (origin | |
187 | (method git-fetch) | |
188 | (uri (git-reference | |
189 | (url "https://github.com/JuliaDiff/ChainRulesCore.jl") | |
190 | (commit (string-append "v" version)))) | |
191 | (file-name (git-file-name name version)) | |
192 | (sha256 | |
193 | (base32 "1k0iayw39n1ikkkhvyi4498vsnzc94skqs41gnd15632gxjfvki4")))) | |
194 | (build-system julia-build-system) | |
195 | (inputs ;required for tests | |
196 | `(("julia-benchmarktools" ,julia-benchmarktools) | |
197 | ("julia-staticarrays" ,julia-staticarrays))) | |
198 | (propagated-inputs | |
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))) | |
205 | ||
9eb29396 | 206 | (define-public julia-chainrulestestutils |
207 | (package | |
208 | (name "julia-chainrulestestutils") | |
209 | (version "0.6.4") | |
210 | (source | |
211 | (origin | |
212 | (method git-fetch) | |
213 | (uri (git-reference | |
214 | (url "https://github.com/JuliaDiff/ChainRulesTestUtils.jl") | |
215 | (commit (string-append "v" version)))) | |
216 | (file-name (git-file-name name version)) | |
217 | (sha256 | |
218 | (base32 "1pzs947adnb3cx1qd0cxp2fidk9szz0zsqbas90z1lhydykkvkil")))) | |
219 | (build-system julia-build-system) | |
220 | (propagated-inputs | |
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}). | |
232 | ||
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))) | |
237 | ||
13a8b866 | 238 | (define-public julia-colors |
239 | (package | |
240 | (name "julia-colors") | |
241 | (version "0.12.6") | |
242 | (source | |
243 | (origin | |
244 | (method git-fetch) | |
245 | (uri (git-reference | |
246 | (url "https://github.com/JuliaGraphics/Colors.jl") | |
247 | (commit (string-append "v" version)))) | |
248 | (file-name (git-file-name name version)) | |
249 | (sha256 | |
250 | (base32 "156zsszgwh6bmznsan0zyha6yvcxw3c5mvc5vr2qfsgxbyh36ln6")))) | |
251 | (build-system julia-build-system) | |
252 | (propagated-inputs | |
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))) | |
263 | ||
9b8b132e | 264 | (define-public julia-colortypes |
265 | (package | |
266 | (name "julia-colortypes") | |
267 | (version "0.10.12") | |
268 | (source | |
269 | (origin | |
270 | (method git-fetch) | |
271 | (uri (git-reference | |
272 | (url "https://github.com/JuliaGraphics/ColorTypes.jl") | |
273 | (commit (string-append "v" version)))) | |
274 | (file-name (git-file-name name version)) | |
275 | (sha256 | |
276 | (base32 "176hr3qbz7lncmykks2qaj3cqisnzim7wi5jwsca9ld26wwyvyqq")))) | |
277 | (arguments | |
278 | '(#:tests? #f)) ;require Documenter, not packaged yet | |
279 | (build-system julia-build-system) | |
280 | (propagated-inputs | |
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 | |
287 | with.") | |
288 | (license license:expat))) | |
289 | ||
2ca38ee4 | 290 | (define-public julia-commonsubexpressions |
291 | (package | |
292 | (name "julia-commonsubexpressions") | |
293 | (version "0.3.0") | |
294 | (source | |
295 | (origin | |
296 | (method git-fetch) | |
297 | (uri (git-reference | |
298 | (url "https://github.com/rdeits/CommonSubexpressions.jl") | |
299 | (commit (string-append "v" version)))) | |
300 | (file-name (git-file-name name version)) | |
301 | (sha256 | |
302 | (base32 "0mgy90kk8ksv3l720kkk04gnhn4aqhh2dj4sp3x8yy3limngfjay")))) | |
303 | (build-system julia-build-system) | |
304 | (propagated-inputs | |
305 | `(("julia-macrotools" ,julia-macrotools))) | |
306 | (home-page "https://github.com/rdeits/CommonSubexpressions.jl") | |
f233bb17 LC |
307 | (synopsis "@code{@@cse} macro for Julia") |
308 | (description "This package provides the @code{@@cse} macro, which performs | |
2ca38ee4 | 309 | common subexpression elimination.") |
310 | (license license:expat))) | |
311 | ||
a1315b7f | 312 | (define-public julia-compat |
313 | (package | |
314 | (name "julia-compat") | |
f7a98af0 | 315 | (version "3.25.0") |
a1315b7f | 316 | (source |
317 | (origin | |
318 | (method git-fetch) | |
319 | (uri (git-reference | |
320 | (url "https://github.com/JuliaLang/Compat.jl") | |
321 | (commit (string-append "v" version)))) | |
54721e7e | 322 | (file-name (git-file-name name version)) |
a1315b7f | 323 | (sha256 |
f7a98af0 | 324 | (base32 "1m4r5i8mq29xjp3mllh6047n5a78sdyld57m15anrnsjgaapcgby")))) |
a1315b7f | 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 | |
331 | way.") | |
332 | (license license:expat))) | |
eccd448c | 333 | |
4d69758f | 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 | |
337 | (package | |
338 | (name "julia-compilersupportlibraries-jll") | |
339 | (version "0.4.0+1") | |
340 | (source | |
341 | (origin | |
342 | (method git-fetch) | |
343 | (uri (git-reference | |
344 | (url "https://github.com/JuliaBinaryWrappers/CompilerSupportLibraries_jll.jl") | |
345 | (commit (string-append "CompilerSupportLibraries-v" version)))) | |
346 | (file-name (git-file-name name version)) | |
347 | (sha256 | |
348 | (base32 "03j6xdvps259mhdzpjqf41l65w2l9sahvxg4wrp34hcf69wkrzpy")))) | |
349 | (build-system julia-build-system) | |
350 | (arguments | |
351 | `(#:tests? #f ; no runtests.jl | |
352 | #:phases | |
353 | (modify-phases %standard-phases | |
354 | (add-after 'unpack 'override-binary-path | |
355 | (lambda* (#:key inputs #:allow-other-keys) | |
356 | (map | |
357 | (lambda (wrapper) | |
358 | (substitute* wrapper | |
359 | (("generate_wrapper_header.*") | |
360 | (string-append | |
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$")) | |
365 | #t))))) | |
366 | (inputs ;required by artifacts | |
367 | `(("gfortran:lib" ,gfortran "lib"))) | |
368 | (propagated-inputs | |
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))) | |
377 | ||
35044d3e | 378 | (define-public julia-constructionbase |
379 | (let ((commit "de77e2865b554f9b078fd8c35b593cce0554ae02")) | |
380 | (package | |
381 | (name "julia-constructionbase") | |
382 | (version "1.1.0") ;tag not created upstream | |
383 | (source | |
384 | (origin | |
385 | (method git-fetch) | |
386 | (uri (git-reference | |
387 | (url "https://github.com/JuliaObjects/ConstructionBase.jl") | |
388 | (commit commit))) | |
389 | (file-name (git-file-name name version)) | |
390 | (sha256 | |
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)))) | |
398 | ||
6545cef5 | 399 | (define-public julia-datastructures |
400 | (package | |
401 | (name "julia-datastructures") | |
402 | (version "0.18.9") | |
403 | (source | |
404 | (origin | |
405 | (method git-fetch) | |
406 | (uri (git-reference | |
407 | (url "https://github.com/JuliaCollections/DataStructures.jl") | |
408 | (commit (string-append "v" version)))) | |
409 | (file-name (git-file-name name version)) | |
410 | (sha256 | |
411 | (base32 "0hdqp8ipsqdw5bqqkdvz4j6n67x80sj5azr9vzyxwjfsgkfbnk2l")))) | |
412 | (propagated-inputs | |
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))) | |
422 | ||
7bf791ee | 423 | (define-public julia-diffresults |
424 | (package | |
425 | (name "julia-diffresults") | |
426 | (version "1.0.3") | |
427 | (source | |
428 | (origin | |
429 | (method git-fetch) | |
430 | (uri (git-reference | |
431 | (url "https://github.com/JuliaDiff/DiffResults.jl") | |
432 | (commit (string-append "v" version)))) | |
433 | (file-name (git-file-name name version)) | |
434 | (sha256 | |
435 | (base32 "1w6p3yxajvclax5b9g7cr2jmbc7lvr5nk4gq0aljxdycdq1d2y3v")))) | |
436 | (propagated-inputs | |
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))) | |
444 | ||
33e5152a | 445 | (define-public julia-diffrules |
446 | (package | |
447 | (name "julia-diffrules") | |
448 | (version "1.0.2") | |
449 | (source | |
450 | (origin | |
451 | (method git-fetch) | |
452 | (uri (git-reference | |
453 | (url "https://github.com/JuliaDiff/DiffRules.jl") | |
454 | (commit (string-append "v" version)))) | |
455 | (file-name (git-file-name name version)) | |
456 | (sha256 | |
457 | (base32 "0cwjvj4gma7924fm3yas0nf0jlnwwx4v7fi79ii3s290lkdldzfl")))) | |
458 | (propagated-inputs | |
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))) | |
469 | ||
df4be2e9 | 470 | (define-public julia-difftests |
471 | (package | |
472 | (name "julia-difftests") | |
473 | (version "0.1.1") | |
474 | (source | |
475 | (origin | |
476 | (method git-fetch) | |
477 | (uri (git-reference | |
478 | (url "https://github.com/JuliaDiff/DiffTests.jl") | |
479 | (commit (string-append "v" version)))) | |
480 | (file-name (git-file-name name version)) | |
481 | (sha256 | |
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))) | |
489 | ||
fffb1e72 | 490 | (define-public julia-example |
491 | (let ((commit "f968c69dea24f851d0c7e686db23fa55826b5388")) | |
492 | (package | |
493 | (name "julia-example") | |
494 | (version "0.5.4") ;tag not created upstream | |
495 | (source | |
496 | (origin | |
497 | (method git-fetch) | |
498 | (uri (git-reference | |
499 | (url "https://github.com/JuliaLang/Example.jl") | |
500 | (commit commit))) | |
501 | (file-name (git-file-name name version)) | |
502 | (sha256 | |
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)))) | |
509 | ||
a0d3a73f | 510 | (define-public julia-fillarrays |
511 | (package | |
512 | (name "julia-fillarrays") | |
513 | (version "0.11.7") | |
514 | (source | |
515 | (origin | |
516 | (method git-fetch) | |
517 | (uri (git-reference | |
518 | (url "https://github.com/JuliaArrays/FillArrays.jl") | |
519 | (commit (string-append "v" version)))) | |
520 | (file-name (git-file-name name version)) | |
521 | (sha256 | |
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") | |
239f0259 | 528 | (description "This package lazily represents matrices filled with |
a0d3a73f | 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))) | |
533 | ||
f6c5a898 | 534 | (define-public julia-finitedifferences |
535 | (package | |
536 | (name "julia-finitedifferences") | |
537 | (version "0.12.2") | |
538 | (source | |
539 | (origin | |
540 | (method git-fetch) | |
541 | (uri (git-reference | |
542 | (url "https://github.com/JuliaDiff/FiniteDifferences.jl") | |
543 | (commit (string-append "v" version)))) | |
544 | (file-name (git-file-name name version)) | |
545 | (sha256 | |
546 | (base32 "0dcx34026xdpfmbjls3mrknl8ww62kxxfr77kfihbazsfg2gp5b4")))) | |
547 | (build-system julia-build-system) | |
548 | (inputs | |
549 | `(("julia-benchmarktools" ,julia-benchmarktools))) | |
550 | (propagated-inputs | |
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))) | |
559 | ||
50f99cc5 | 560 | (define-public julia-fixedpointnumbers |
561 | (package | |
562 | (name "julia-fixedpointnumbers") | |
563 | (version "0.8.4") | |
564 | (source | |
565 | (origin | |
566 | (method git-fetch) | |
567 | (uri (git-reference | |
568 | (url "https://github.com/JuliaMath/FixedPointNumbers.jl") | |
569 | (commit (string-append "v" version)))) | |
570 | (file-name (git-file-name name version)) | |
571 | (sha256 | |
572 | (base32 "0j0n40n04q9sk68wh9jq90m6c67k4ws02k41djjzkrqmpzv4rcdi")))) | |
573 | (build-system julia-build-system) | |
574 | (arguments | |
575 | `(#:phases | |
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))) | |
582 | #t))))) | |
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))) | |
d4987a50 | 594 | |
57e034d5 | 595 | (define-public julia-forwarddiff |
596 | (package | |
597 | (name "julia-forwarddiff") | |
598 | (version "0.10.17") | |
599 | (source | |
600 | (origin | |
601 | (method git-fetch) | |
602 | (uri (git-reference | |
603 | (url "https://github.com/JuliaDiff/ForwardDiff.jl") | |
604 | (commit (string-append "v" version)))) | |
605 | (file-name (git-file-name name version)) | |
606 | (sha256 | |
607 | (base32 "17xaz4v0zr46p7w873w1fwf31phdnhr0vbdym9yr4flmpzi528jw")))) | |
608 | (build-system julia-build-system) | |
609 | (inputs ;required for tests | |
610 | `(("julia-calculus" ,julia-calculus) | |
611 | ("julia-difftests" ,julia-difftests))) | |
612 | (propagated-inputs | |
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))) | |
626 | ||
d4987a50 | 627 | (define-public julia-http |
628 | (package | |
629 | (name "julia-http") | |
630 | (version "0.9.2") | |
631 | (source | |
632 | (origin | |
633 | (method git-fetch) | |
634 | (uri (git-reference | |
635 | (url "https://github.com/JuliaWeb/HTTP.jl") | |
636 | (commit (string-append "v" version)))) | |
637 | (file-name (git-file-name name version)) | |
638 | (sha256 | |
639 | (base32 "0ij0yci13c46p92m4zywvcs02nn8pm0abyfffiyhxvva6hq48lyl")))) | |
640 | (build-system julia-build-system) | |
641 | (arguments | |
642 | `(#:phases | |
643 | (modify-phases %standard-phases | |
644 | (add-before 'install 'disable-network-tests | |
645 | (lambda _ | |
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"))) | |
670 | #t))))) | |
671 | (propagated-inputs | |
672 | `(("julia-inifile" ,julia-inifile) | |
673 | ("julia-mbedtls" ,julia-mbedtls) | |
674 | ("julia-uris" ,julia-uris))) | |
675 | ;; required for tests | |
676 | (inputs | |
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))) | |
50f99cc5 | 684 | |
fc781578 | 685 | (define-public julia-inifile |
686 | (package | |
687 | (name "julia-inifile") | |
688 | (version "0.5.0") | |
689 | (source | |
690 | (origin | |
691 | (method git-fetch) | |
692 | (uri (git-reference | |
693 | (url "https://github.com/JuliaIO/IniFile.jl") | |
694 | (commit "8ba59958495fa276d6489d2c3903e765d75e0bc0"))) | |
695 | (file-name (git-file-name name version)) | |
696 | (sha256 | |
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))) | |
704 | ||
57653707 | 705 | (define-public julia-irtools |
706 | (package | |
707 | (name "julia-irtools") | |
708 | (version "0.4.2") | |
709 | (source | |
710 | (origin | |
711 | (method git-fetch) | |
712 | (uri (git-reference | |
713 | (url "https://github.com/FluxML/IRTools.jl") | |
714 | (commit (string-append "v" version)))) | |
715 | (file-name (git-file-name name version)) | |
716 | (sha256 | |
717 | (base32 "0wwzy77jcdnffnd5fr6xan7162g4wydz67igrq82wflwnrhlcx5y")))) | |
718 | (arguments | |
719 | '(#:tests? #f)) ;require Documenter, not packaged yet | |
720 | (build-system julia-build-system) | |
721 | (propagated-inputs | |
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 | |
728 | Cassette.") | |
729 | (license license:expat))) | |
730 | ||
a06db9c1 | 731 | (define-public julia-jllwrappers |
732 | (package | |
733 | (name "julia-jllwrappers") | |
734 | (version "1.2.0") | |
735 | (source | |
736 | (origin | |
737 | (method git-fetch) | |
738 | (uri (git-reference | |
739 | (url "https://github.com/JuliaPackaging/JLLWrappers.jl") | |
740 | (commit (string-append "v" version)))) | |
741 | (file-name (git-file-name name version)) | |
742 | (sha256 | |
743 | (base32 "1sj3mi2dcc13apqfpy401wic5n0pgbck1p98b2g3zw0mln9s83m4")))) | |
744 | (arguments | |
745 | ;; Wants to download stuff | |
746 | '(#:tests? #f | |
747 | #:phases | |
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 | |
755 | ;; will be merged. | |
756 | (substitute* "src/wrapper_generators.jl" | |
757 | (("generate_wrapper_header.*") | |
758 | "generate_wrapper_header(src_name, override_path = nothing)\n") | |
759 | (("pkg_dir = .*" all) | |
760 | (string-append | |
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")) | |
765 | #t))))) | |
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))) | |
773 | ||
dae521a0 | 774 | (define-public julia-json |
775 | (package | |
776 | (name "julia-json") | |
777 | (version "0.21.1") | |
778 | (source | |
779 | (origin | |
780 | (method git-fetch) | |
781 | (uri (git-reference | |
782 | (url "https://github.com/JuliaIO/JSON.jl") | |
783 | (commit (string-append "v" version)))) | |
784 | (file-name (git-file-name name version)) | |
785 | (sha256 | |
786 | (base32 "1f9k613kbknmp4fgjxvjaw4d5sfbx8a5hmcszmp1w9rqfqngjx9m")))) | |
787 | (build-system julia-build-system) | |
788 | (propagated-inputs | |
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))) | |
798 | ||
45debc7b | 799 | (define-public julia-macrotools |
800 | (package | |
801 | (name "julia-macrotools") | |
802 | (version "0.5.6") | |
803 | (source | |
804 | (origin | |
805 | (method git-fetch) | |
806 | (uri (git-reference | |
807 | (url "https://github.com/FluxML/MacroTools.jl") | |
808 | (commit (string-append "v" version)))) | |
809 | (file-name (git-file-name name version)) | |
810 | (sha256 | |
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))) | |
819 | ||
a72d3ca8 | 820 | (define-public julia-mbedtls |
821 | (package | |
822 | (name "julia-mbedtls") | |
823 | (version "1.0.3") | |
824 | (source | |
825 | (origin | |
826 | (method git-fetch) | |
827 | (uri (git-reference | |
828 | (url "https://github.com/JuliaLang/MbedTLS.jl") | |
829 | (commit (string-append "v" version)))) | |
830 | (file-name (git-file-name name version)) | |
831 | (sha256 | |
832 | (base32 "0zjzf2r57l24n3k0gcqkvx3izwn5827iv9ak0lqix0aa5967wvfb")))) | |
833 | (build-system julia-build-system) | |
834 | (arguments | |
835 | `(#:phases | |
836 | (modify-phases %standard-phases | |
837 | (add-before 'install 'disable-network-tests | |
838 | ;; Tries to connect to httpbin.org | |
839 | (lambda _ | |
840 | (substitute* "test/runtests.jl" | |
841 | (("testhost =") "return #")) | |
842 | #t))))) | |
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 | |
9a2d7e0f | 847 | TLS} and cryptography C library for Julia.") |
a72d3ca8 | 848 | (license license:expat))) |
849 | ||
3291e4ba | 850 | (define-public julia-mbedtls-jll |
851 | (package | |
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 | |
855 | (version "2.24.0+1") | |
856 | (source | |
857 | (origin | |
858 | (method git-fetch) | |
859 | (uri (git-reference | |
860 | (url "https://github.com/JuliaBinaryWrappers/MbedTLS_jll.jl") | |
861 | (commit (string-append "MbedTLS-v" version)))) | |
862 | (file-name (git-file-name name version)) | |
863 | (sha256 | |
864 | (base32 "0kk9dlxdh7yms21npgrdfmjbj8q8ng6kdhrzw3jr2d7rp696kp99")))) | |
865 | (build-system julia-build-system) | |
866 | (arguments | |
867 | '(#:tests? #f ; No runtests.jl | |
868 | #:phases | |
869 | (modify-phases %standard-phases | |
870 | (add-after 'unpack 'override-binary-path | |
871 | (lambda* (#:key inputs #:allow-other-keys) | |
872 | (map | |
873 | (lambda (wrapper) | |
874 | (substitute* wrapper | |
875 | (("generate_wrapper_header.*") | |
876 | (string-append | |
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$")) | |
881 | #t))))) | |
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 | |
887 | wrappers.") | |
888 | (license license:expat))) | |
889 | ||
a5edd83d | 890 | (define-public julia-nanmath |
891 | (package | |
892 | (name "julia-nanmath") | |
893 | (version "0.3.5") | |
894 | (source | |
895 | (origin | |
896 | (method git-fetch) | |
897 | (uri (git-reference | |
898 | (url "https://github.com/mlubin/NaNMath.jl") | |
899 | (commit (string-append "v" version)))) | |
900 | (file-name (git-file-name name version)) | |
901 | (sha256 | |
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))) | |
909 | ||
eccd448c | 910 | (define-public julia-orderedcollections |
911 | (package | |
912 | (name "julia-orderedcollections") | |
913 | (version "1.3.2") | |
914 | (source | |
915 | (origin | |
916 | (method git-fetch) | |
917 | (uri (git-reference | |
918 | (url "https://github.com/JuliaCollections/OrderedCollections.jl") | |
919 | (commit (string-append "v" version)))) | |
920 | (file-name (git-file-name name version)) | |
921 | (sha256 | |
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))) | |
c0c21d77 | 931 | |
fb634a0e | 932 | (define-public julia-offsetarrays |
933 | (package | |
934 | (name "julia-offsetarrays") | |
935 | (version "1.5.2") | |
936 | (source | |
937 | (origin | |
938 | (method git-fetch) | |
939 | (uri (git-reference | |
940 | (url "https://github.com/JuliaArrays/OffsetArrays.jl") | |
941 | (commit (string-append "v" version)))) | |
942 | (file-name (git-file-name name version)) | |
943 | (sha256 | |
944 | (base32 "1y3fnssw2hzyghrk6jfcxslab0f8sjkjszh482snfq4k6mkrhy77")))) | |
945 | (build-system julia-build-system) | |
946 | (propagated-inputs | |
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))) | |
956 | ||
73052c70 | 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")) | |
961 | (package | |
962 | (name "julia-openspecfun-jll") | |
963 | (version "0.5.3+4") ;tag not created upstream | |
964 | (source | |
965 | (origin | |
966 | (method git-fetch) | |
967 | (uri (git-reference | |
968 | (url "https://github.com/JuliaBinaryWrappers/OpenSpecFun_jll.jl") | |
969 | (commit commit))) | |
970 | (file-name (git-file-name name version)) | |
971 | (sha256 | |
972 | (base32 "0bl2gcgndsbiwhwy8fl070cjm1fyf9kxj6gkikgirmzgjl29iakn")))) | |
973 | (build-system julia-build-system) | |
974 | (arguments | |
975 | `(#:tests? #f ; no runtests.jl | |
976 | #:phases | |
977 | (modify-phases %standard-phases | |
978 | (add-after 'unpack 'override-binary-path | |
979 | (lambda* (#:key inputs #:allow-other-keys) | |
980 | (map | |
981 | (lambda (wrapper) | |
982 | (substitute* wrapper | |
983 | (("generate_wrapper_header.*") | |
984 | (string-append | |
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$")) | |
989 | #t))))) | |
990 | (inputs | |
991 | `(("openspecfun" ,openspecfun))) | |
992 | (propagated-inputs | |
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)))) | |
1002 | ||
c0c21d77 | 1003 | (define-public julia-parsers |
1004 | (package | |
1005 | (name "julia-parsers") | |
1006 | (version "1.0.15") | |
1007 | (source | |
1008 | (origin | |
1009 | (method git-fetch) | |
1010 | (uri (git-reference | |
1011 | (url "https://github.com/JuliaData/Parsers.jl") | |
1012 | (commit (string-append "v" version)))) | |
1013 | (file-name (git-file-name name version)) | |
1014 | (sha256 | |
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))) | |
8f59a9fb | 1022 | |
02543b52 | 1023 | (define-public julia-reexport |
1024 | (package | |
1025 | (name "julia-reexport") | |
1026 | (version "1.0.0") | |
1027 | (source | |
1028 | (origin | |
1029 | (method git-fetch) | |
1030 | (uri (git-reference | |
1031 | (url "https://github.com/simonster/Reexport.jl") | |
1032 | (commit version))) | |
1033 | (file-name (git-file-name name version)) | |
1034 | (sha256 | |
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))) | |
1041 | ||
658fca53 | 1042 | (define-public julia-requires |
1043 | (package | |
1044 | (name "julia-requires") | |
1045 | (version "1.1.3") | |
1046 | (source | |
1047 | (origin | |
1048 | (method git-fetch) | |
1049 | (uri (git-reference | |
1050 | (url "https://github.com/JuliaPackaging/Requires.jl/") | |
1051 | (commit (string-append "v" version)))) | |
1052 | (file-name (git-file-name name version)) | |
1053 | (sha256 | |
1054 | (base32 "03hyfy7c0ma45b0y756j76awi3az2ii4bz4s8cxm3xw9yy1z7b01")))) | |
1055 | (build-system julia-build-system) | |
1056 | (inputs ;required for test | |
1057 | `(("julia-example" ,julia-example))) | |
1058 | (propagated-inputs | |
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) | |
1065 | can be avoided.") | |
1066 | (license license:expat))) | |
1067 | ||
dd7a77c3 | 1068 | (define-public julia-richardson |
1069 | (package | |
1070 | (name "julia-richardson") | |
1071 | (version "1.4.0") | |
1072 | (source | |
1073 | (origin | |
1074 | (method git-fetch) | |
1075 | (uri (git-reference | |
1076 | (url "https://github.com/JuliaMath/Richardson.jl") | |
1077 | (commit (string-append "v" version)))) | |
1078 | (file-name (git-file-name name version)) | |
1079 | (sha256 | |
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))) | |
1094 | ||
3d98a16a | 1095 | (define-public julia-specialfunctions |
1096 | (package | |
1097 | (name "julia-specialfunctions") | |
1098 | (version "1.3.0") | |
1099 | (source | |
1100 | (origin | |
1101 | (method git-fetch) | |
1102 | (uri (git-reference | |
1103 | (url "https://github.com/JuliaMath/SpecialFunctions.jl") | |
1104 | (commit (string-append "v" version)))) | |
1105 | (file-name (git-file-name name version)) | |
1106 | (sha256 | |
1107 | (base32 "1rfhrrkzi3ils7fklbn35ki1yp5x88fi71qknfwqyw4pk8cf8p80")))) | |
1108 | (build-system julia-build-system) | |
1109 | (inputs | |
1110 | `(("julia-chainrulestestutils" ,julia-chainrulestestutils))) | |
1111 | (propagated-inputs | |
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))) | |
1121 | ||
be802277 | 1122 | (define-public julia-staticarrays |
1123 | (package | |
1124 | (name "julia-staticarrays") | |
1125 | (version "1.0.1") | |
1126 | (source | |
1127 | (origin | |
1128 | (method git-fetch) | |
1129 | (uri (git-reference | |
1130 | (url "https://github.com/JuliaArrays/StaticArrays.jl") | |
1131 | (commit (string-append "v" version)))) | |
1132 | (file-name (git-file-name name version)) | |
1133 | (sha256 | |
1134 | (base32 "01z8bcqwpfkp8p1h1r36pr5cc3798y76zkas7g3206pcsdhvlkz1")))) | |
1135 | (build-system julia-build-system) | |
1136 | (inputs | |
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))) | |
1146 | ||
8f59a9fb | 1147 | (define-public julia-uris |
1148 | (package | |
1149 | (name "julia-uris") | |
1150 | (version "1.2.0") | |
1151 | (source | |
1152 | (origin | |
1153 | (method git-fetch) | |
1154 | (uri (git-reference | |
1155 | (url "https://github.com/JuliaWeb/URIs.jl") | |
1156 | (commit (string-append "v" version)))) | |
1157 | (file-name (git-file-name name version)) | |
1158 | (sha256 | |
1159 | (base32 "0fqyagsqks5za7m0czafr34m2xh5501f689k9cn5x3npajdnh2r3")))) | |
1160 | (build-system julia-build-system) | |
1161 | (arguments | |
1162 | '(#:julia-package-name "URIs" ;required to run tests | |
1163 | #:phases | |
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"))) | |
1169 | (chdir | |
1170 | (string-append out "/share/julia/packages/URIs/test"))) | |
1171 | #t))))) | |
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 | |
1178 | 3986.") | |
1179 | (license license:expat))) | |
a8e3be6a | 1180 | |
1181 | (define-public julia-unitful | |
1182 | (package | |
1183 | (name "julia-unitful") | |
1184 | (version "1.6.0") | |
1185 | (source | |
1186 | (origin | |
1187 | (method git-fetch) | |
1188 | (uri (git-reference | |
1189 | (url "https://github.com/PainterQubits/Unitful.jl") | |
1190 | (commit (string-append "v" version)))) | |
1191 | (file-name (git-file-name name version)) | |
1192 | (sha256 | |
1193 | (base32 "0g5bhlvay9yk11c5dqwbzmb3q7lzj0cq5zchyk39d59fkvvmxvq3")))) | |
1194 | (build-system julia-build-system) | |
1195 | (propagated-inputs | |
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 | |
1200 | system.") | |
1201 | (license license:expat))) | |
568cebc2 | 1202 | |
1203 | (define-public julia-zygoterules | |
1204 | (package | |
1205 | (name "julia-zygoterules") | |
1206 | (version "0.2.1") | |
1207 | (source | |
1208 | (origin | |
1209 | (method git-fetch) | |
1210 | (uri (git-reference | |
1211 | (url "https://github.com/FluxML/ZygoteRules.jl") | |
1212 | (commit (string-append "v" version)))) | |
1213 | (file-name (git-file-name name version)) | |
1214 | (sha256 | |
1215 | (base32 "07i2mf6rr5b8i6l82qgwl5arsb5pwyyzyfasgnszhdqllk9501bs")))) | |
1216 | (build-system julia-build-system) | |
1217 | (propagated-inputs | |
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))) | |
13f7f06c | 1224 | |
1225 | (define-public julia-zygote | |
1226 | (package | |
1227 | (name "julia-zygote") | |
1228 | (version "0.6.4") | |
1229 | (source | |
1230 | (origin | |
1231 | (method git-fetch) | |
1232 | (uri (git-reference | |
1233 | (url "https://github.com/FluxML/Zygote.jl") | |
1234 | (commit (string-append "v" version)))) | |
1235 | (file-name (git-file-name name version)) | |
1236 | (sha256 | |
1237 | (base32 "1h2ph0lsisbkh8y4xgwzgw9p5zi243q8zzp5gfh3zw9pzkx6a1rf")))) | |
1238 | (build-system julia-build-system) | |
1239 | (arguments | |
1240 | `(#:tests? #f)) ;require CUDA, not packaged yet | |
1241 | (propagated-inputs | |
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))) |