gnu: restinio: Update to 0.6.18-0.eda471e and enable tests.

* gnu/packages/networking.scm (restinio): Update to 0.6.18-0.eda471e.
[version]: Use git-version.
[arguments]: Enable tests, removing #:tests? argument.
This commit is contained in:
Maxim Cournoyer 2023-04-10 23:31:47 -04:00
parent 756e1483c8
commit ef807e48d4
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -3709,55 +3709,56 @@ (define-public restbed
(license license:agpl3+))) (license license:agpl3+)))
(define-public restinio (define-public restinio
(package ;; Temporarily use an unreleased commit, which includes fixes to be able to
(name "restinio") ;; run the test suite in the resolver-less Guix build environment.
(version "0.6.17") (let ((revision "0")
(source (origin (commit "eda471ec3a2815965ca02ec93a1124a342b7601d"))
(method git-fetch) (package
(uri (git-reference (name "restinio")
(url "https://github.com/Stiffstream/restinio") (version (git-version "0.6.18" revision commit))
(commit (string-append "v." version)))) (source (origin
(file-name (git-file-name name version)) (method git-fetch)
(sha256 (uri (git-reference
(base32 (url "https://github.com/Stiffstream/restinio")
"1jpvfa2sjkihbkcc1q6c9zb1vry9mkkhbz2jrl831bqslpq9la3p")))) (commit commit)))
(build-system cmake-build-system) (file-name (git-file-name name version))
(arguments (sha256
(list (base32
;; Multiple tests fail to run in the build container due to host name "0f4w7714r0ic7csgxydw2vzfh35ssk34pns9jycmc08dzc3r7whb"))))
;; resolution (see: https://github.com/Stiffstream/restinio/issues/172). (build-system cmake-build-system)
#:tests? #f (arguments
#:configure-flags #~(list "-DRESTINIO_FIND_DEPS=ON" (list
"-DRESTINIO_INSTALL=ON" #:configure-flags #~(list "-DRESTINIO_FIND_DEPS=ON"
"-DRESTINIO_TEST=ON" "-DRESTINIO_INSTALL=ON"
"-DRESTINIO_USE_EXTERNAL_HTTP_PARSER=ON" "-DRESTINIO_TEST=ON"
"-DRESTINIO_USE_EXTERNAL_SOBJECTIZER=ON") "-DRESTINIO_USE_EXTERNAL_HTTP_PARSER=ON"
#:phases "-DRESTINIO_USE_EXTERNAL_SOBJECTIZER=ON")
#~(modify-phases %standard-phases #:phases
(add-after 'unpack 'change-directory #~(modify-phases %standard-phases
(lambda _ (add-after 'unpack 'change-directory
(chdir "dev")))))) (lambda _
(native-inputs (chdir "dev"))))))
(list catch2 (native-inputs
clara (list catch2
json-dto)) clara
(inputs json-dto))
(list openssl (inputs
sobjectizer)) (list openssl
(propagated-inputs sobjectizer))
;; These are all #include'd by restinio's .hpp header files. (propagated-inputs
(list asio ;; These are all #include'd by restinio's .hpp header files.
fmt (list asio
http-parser fmt
pcre http-parser
pcre2 pcre
zlib)) pcre2
(home-page "https://stiffstream.com/en/products/restinio.html") zlib))
(synopsis "C++14 library that gives you an embedded HTTP/Websocket server") (home-page "https://stiffstream.com/en/products/restinio.html")
(description "RESTinio is a header-only C++14 library that gives you an embedded (synopsis "C++14 library that gives you an embedded HTTP/Websocket server")
(description "RESTinio is a header-only C++14 library that gives you an embedded
HTTP/Websocket server. It is based on standalone version of ASIO HTTP/Websocket server. It is based on standalone version of ASIO
and targeted primarily for asynchronous processing of HTTP-requests.") and targeted primarily for asynchronous processing of HTTP-requests.")
(license license:bsd-3))) (license license:bsd-3))))
(define-public opendht (define-public opendht
(package (package