[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
12/12: gnu: Add julia-http.
From: |
guix-commits |
Subject: |
12/12: gnu: Add julia-http. |
Date: |
Sat, 20 Mar 2021 17:29:49 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit d4987a50cef3983c4bd68c1c2c52270946c4f113
Author: nixo <nicolo@nixo.xyz>
AuthorDate: Tue Jan 19 13:29:00 2021 +0100
gnu: Add julia-http.
* gnu/packages/julia-xyz.scm (julia-http): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/julia-xyz.scm | 58 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm
index a3c5c55..0d35cbd 100644
--- a/gnu/packages/julia-xyz.scm
+++ b/gnu/packages/julia-xyz.scm
@@ -176,6 +176,64 @@ scaled by a constant factor. Consequently, they have a
fixed number of
digits (bits) after the decimal (radix) point.")
(license license:expat)))
+(define-public julia-http
+ (package
+ (name "julia-http")
+ (version "0.9.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/JuliaWeb/HTTP.jl")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0ij0yci13c46p92m4zywvcs02nn8pm0abyfffiyhxvva6hq48lyl"))))
+ (build-system julia-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'install 'disable-network-tests
+ (lambda _
+ (substitute* "test/runtests.jl"
+ (("\"async.jl") "# \"async.jl")
+ (("\"client.jl") "# \"client.jl"))
+ (substitute* "test/aws4.jl"
+ (("@testset.*HTTP.request with AWS authentication.*" all)
+ (string-append all "return\n")))
+ (substitute* "test/insert_layers.jl"
+ (("@testset.*Inserted final layer runs handler.*" all)
+ (string-append all "return\n")))
+ (substitute* "test/multipart.jl"
+ (("@testset \"Setting of Content-Type.*" all)
+ (string-append all "return\n"))
+ (("@testset \"Deprecation of .*" all)
+ (string-append all "return\n")))
+ (substitute* "test/websockets.jl"
+ (("@testset.*External Host.*" all)
+ (string-append all "return\n")))
+ (substitute* "test/messages.jl"
+ (("@testset.*Read methods.*" all)
+ (string-append all "return\n"))
+ (("@testset.*Body - .*" all)
+ (string-append all "return\n"))
+ (("@testset.*Write to file.*" all)
+ (string-append all "return\n")))
+ #t)))))
+ (propagated-inputs
+ `(("julia-inifile" ,julia-inifile)
+ ("julia-mbedtls" ,julia-mbedtls)
+ ("julia-uris" ,julia-uris)))
+ ;; required for tests
+ (inputs
+ `(("julia-json" ,julia-json)
+ ("julia-bufferedstreams" ,julia-bufferedstreams)))
+ (home-page "https://juliaweb.github.io/HTTP.jl/")
+ (synopsis "HTTP support for Julia")
+ (description "@code{HTTP.jl} is a Julia library for HTTP Messages,
+implementing both a client and a server.")
+ (license license:expat)))
+
(define-public julia-inifile
(package
(name "julia-inifile")
- 05/12: gnu: Add julia-benchmarktools., (continued)
- 05/12: gnu: Add julia-benchmarktools., guix-commits, 2021/03/20
- 02/12: gnu-maintenance: Accept underscores as package/version separators., guix-commits, 2021/03/20
- 03/12: doc: Fix typo in julia-build-system., guix-commits, 2021/03/20
- 04/12: gnu: julia-adapt: Set file-name according to standards., guix-commits, 2021/03/20
- 06/12: gnu: Add julia-jllwrappers., guix-commits, 2021/03/20
- 08/12: gnu: Add julia-mbedtls., guix-commits, 2021/03/20
- 07/12: gnu: Add julia-mbedtls-jll., guix-commits, 2021/03/20
- 09/12: gnu: Add julia-uris., guix-commits, 2021/03/20
- 10/12: gnu: Add julia-inifile., guix-commits, 2021/03/20
- 11/12: gnu: Add julia-bufferedstreams., guix-commits, 2021/03/20
- 12/12: gnu: Add julia-http.,
guix-commits <=