aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.guix-authorizations12
-rw-r--r--doc/contributing.texi5
-rw-r--r--doc/guix.texi11
-rw-r--r--etc/teams.scm.in23
-rw-r--r--gnu/home/services/desktop.scm6
-rw-r--r--gnu/local.mk4
-rw-r--r--gnu/packages/algebra.scm4
-rw-r--r--gnu/packages/audio.scm4
-rw-r--r--gnu/packages/chez.scm10
-rw-r--r--gnu/packages/cran.scm125
-rw-r--r--gnu/packages/crypto.scm2
-rw-r--r--gnu/packages/databases.scm62
-rw-r--r--gnu/packages/emacs-xyz.scm268
-rw-r--r--gnu/packages/file-systems.scm74
-rw-r--r--gnu/packages/finance.scm7
-rw-r--r--gnu/packages/fonts.scm12
-rw-r--r--gnu/packages/freedesktop.scm2
-rw-r--r--gnu/packages/gnome.scm5
-rw-r--r--gnu/packages/golang.scm282
-rw-r--r--gnu/packages/guile-xyz.scm37
-rw-r--r--gnu/packages/guile.scm4
-rw-r--r--gnu/packages/high-availability.scm53
-rw-r--r--gnu/packages/image-processing.scm5
-rw-r--r--gnu/packages/image-viewers.scm58
-rw-r--r--gnu/packages/linux.scm33
-rw-r--r--gnu/packages/lisp-check.scm2
-rw-r--r--gnu/packages/lisp-xyz.scm227
-rw-r--r--gnu/packages/mail.scm19
-rw-r--r--gnu/packages/maths.scm79
-rw-r--r--gnu/packages/messaging.scm11
-rw-r--r--gnu/packages/mpd.scm4
-rw-r--r--gnu/packages/networking.scm80
-rw-r--r--gnu/packages/ocaml.scm4
-rw-r--r--gnu/packages/package-management.scm94
-rw-r--r--gnu/packages/parallel.scm4
-rw-r--r--gnu/packages/patches/fpm-newer-clamp-fix.patch33
-rw-r--r--gnu/packages/patches/geeqie-clutter.patch35
-rw-r--r--gnu/packages/patches/guile-fix-invalid-unicode-handling.patch83
-rw-r--r--gnu/packages/patches/ruby-hiredis-use-system-hiredis.patch52
-rw-r--r--gnu/packages/patchutils.scm4
-rw-r--r--gnu/packages/perl.scm21
-rw-r--r--gnu/packages/protobuf.scm55
-rw-r--r--gnu/packages/python-science.scm121
-rw-r--r--gnu/packages/python-xyz.scm154
-rw-r--r--gnu/packages/rails.scm1438
-rw-r--r--gnu/packages/ruby.scm4859
-rw-r--r--gnu/packages/search.scm4
-rw-r--r--gnu/packages/shells.scm4
-rw-r--r--gnu/packages/shellutils.scm4
-rw-r--r--gnu/packages/syncthing.scm4
-rw-r--r--gnu/packages/tex.scm25
-rw-r--r--gnu/packages/texinfo.scm4
-rw-r--r--gnu/packages/time.scm4
-rw-r--r--gnu/packages/version-control.scm124
-rw-r--r--gnu/packages/video.scm4
-rw-r--r--gnu/packages/w3m.scm23
-rw-r--r--gnu/packages/wm.scm10
-rw-r--r--gnu/packages/xdisorg.scm41
-rw-r--r--gnu/services/audio.scm32
-rw-r--r--gnu/services/base.scm7
-rw-r--r--gnu/services/herd.scm24
-rw-r--r--gnu/services/linux.scm2
-rw-r--r--gnu/services/networking.scm4
-rw-r--r--gnu/services/xorg.scm23
-rw-r--r--gnu/system/linux-container.scm10
-rw-r--r--guix/build/syscalls.scm5
-rw-r--r--guix/lint.scm5
-rw-r--r--guix/substitutes.scm10
-rw-r--r--tests/guix-home.sh2
69 files changed, 6968 insertions, 1894 deletions
diff --git a/.guix-authorizations b/.guix-authorizations
index 24db547d98..64112b7d7a 100644
--- a/.guix-authorizations
+++ b/.guix-authorizations
@@ -7,8 +7,6 @@
(;; primary: "D963 A5A3 8A80 3D52 4461 F914 7483 0A27 6C32 8EC2"
("2841 9AC6 5038 7440 C7E9 2FFA 2208 D209 58C1 DEB0"
(name "abcdw"))
- ("4FB9 9F49 2B12 A365 7997 E664 8246 0C08 2A0E E98F"
- (name "alezost"))
("50F3 3E2E 5B0C 3D90 0424 ABE8 9BDC F497 A4BB CC7F"
(name "ambrevar"))
("AD17 A21E F8AE D8F1 CC02 DBD9 F7D5 C9BF 765C 61E3"
@@ -20,9 +18,6 @@
(;; primary: "34FF 38BC D151 25A6 E340 A0B5 3453 2F9F AFCA 8B8E"
"A3A4 B419 0074 087C A7DE 5698 BC45 CA67 E2F8 D007"
(name "bavier"))
- (;; primary: "8929 BBC5 73CD 9206 3DDD 979D 3D36 CAA0 116F 0F99"
- "1C9B F005 1A1A 6A44 5257 599A A949 03A1 66A1 8FAE"
- (name "bricewge"))
(;; primary: "0401 7A2A 6D9A 0CCD C81D 8EC2 96AB 007F 1A7E D999"
"09CD D25B 5244 A376 78F6 EEA8 0CC5 2153 1979 91A5"
(name "carl"))
@@ -65,8 +60,6 @@
(;; primary: "4F71 6F9A 8FA2 C80E F1B5 E1BA 5E35 F231 DE1A C5E0"
"B051 5948 F1E7 D3C1 B980 38A0 2646 FA30 BACA 7F08"
(name "lfam"))
- ("CBF5 9755 CBE7 E7EF EF18 3FB1 DD40 9A15 D822 469D"
- (name "marusich"))
("BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA"
(name "mbakke"))
("D919 0965 CE03 199E AF28 B3BE 7CEF 2984 7562 C516"
@@ -78,8 +71,6 @@
(;; primary: "F5BC 5534 C36F 0087 B39D 36EF 1C9D C4FE B9DB 7C4B"
"F5DA 2032 4B87 3D0B 7A38 7672 0DB0 FF88 4F55 6D79"
(name "nckx"))
- ("E576 BFB2 CF6E B13D F571 33B9 E315 A758 4613 1564"
- (name "niedzejkob"))
("ED0E F1C8 E126 BA83 1B48 5FE9 DA00 B4F0 48E9 2F2D"
(name "ngz"))
("CEF4 CB91 4856 BA38 0A20 A7E2 3008 88CB 39C6 3817"
@@ -87,9 +78,6 @@
(;; primary: "41CA 12EA DE0C F33F 6885 A58F 5719 6E37 E00B 77FD"
"72D5 3D81 8CB6 F4A1 7258 374C A8FC 9E44 7F4F 7D54"
(name "planglois"))
- (;; primary: "B68B DF22 73F9 DA0E 63C1 8A32 515B F416 9242 D600"
- "C699 ED09 E51B CE89 FD1D A078 AAC7 E891 896B 568A"
- (name "pgarlick"))
(;; primary: "7E9F 5BF6 1680 4367 127B 7A87 F9E6 9FB8 5A75 54F1"
"A420 7B56 C255 109F 2CB3 157E 4990 97AE 5EA8 15D9"
(name "podiki"))
diff --git a/doc/contributing.texi b/doc/contributing.texi
index 911c3a7bbf..e03d888bd1 100644
--- a/doc/contributing.texi
+++ b/doc/contributing.texi
@@ -776,9 +776,8 @@ the word @code{python}.
Some modules are compatible with only one version of Python, others with
both. If the package Foo is compiled with Python 3, we name it
@code{python-foo}. If it is compiled with Python 2, we name it
-@code{python2-foo}. Packages should be added when they are necessary;
-we don't add Python 2 variants of the package unless we are going to use
-them.
+@code{python2-foo}. Python 2 packages are being removed from the
+distribution; please do no not submit any new Python 2 packages.
If a project already contains the word @code{python}, we drop this;
for instance, the module python-dateutil is packaged under the names
diff --git a/doc/guix.texi b/doc/guix.texi
index dfdb26103a..c49e51b72e 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -8210,6 +8210,9 @@ Add @var{package}s to the front of the input list.
@item (append @var{package}@dots{})
Add @var{package}s to the end of the input list.
+
+@item (replace @var{name} @var{replacement})
+Replace the package called @var{name} with @var{replacement}.
@end table
The example below removes the GMP and ACL inputs of Coreutils and adds
@@ -33501,7 +33504,7 @@ The group to run mpd as.
This is a list of symbols naming Shepherd services that this service
will depend on.
-@item @code{environment-variables} (default: @code{()}) (type: list-of-string)
+@item @code{environment-variables} (default: @code{("PULSE_CLIENTCONFIG=/etc/pulse/client.conf" "PULSE_CONFIG=/etc/pulse/daemon.conf")}) (type: list-of-strings)
A list of strings specifying environment variables.
@item @code{log-file} (default: @code{"/var/log/mpd/log"}) (type: maybe-string)
@@ -33532,7 +33535,7 @@ The location of the sticker database.
@item @code{default-port} (default: @code{6600}) (type: maybe-integer)
The default port to run mpd on.
-@item @code{endpoints} (type: maybe-list-of-string)
+@item @code{endpoints} (type: maybe-list-of-strings)
The addresses that mpd will bind to. A port different from @var{default-port}
may be specified, e.g. @code{localhost:6602} and IPv6 addresses must be
enclosed in square brackets when a different port is used.
@@ -33808,10 +33811,10 @@ Whether to preserve caches between service restarts.
Available @code{mympd-ip-acl} fields are:
@table @asis
-@item @code{allow} (default: @code{()}) (type: list-of-string)
+@item @code{allow} (default: @code{()}) (type: list-of-strings)
Allowed IP addresses.
-@item @code{deny} (default: @code{()}) (type: list-of-string)
+@item @code{deny} (default: @code{()}) (type: list-of-strings)
Disallowed IP addresses.
@end table
diff --git a/etc/teams.scm.in b/etc/teams.scm.in
index e582993450..4c95c48543 100644
--- a/etc/teams.scm.in
+++ b/etc/teams.scm.in
@@ -436,6 +436,21 @@ importer."
"Reproducible Builds tooling and issues that affect any guix packages."
#:scope (list "gnu/packages/diffoscope.scm")))
+(define-team gnome
+ (team 'gnome
+ #:name "Gnome team"
+ #:description
+ "The Gnome desktop environment, along with core technologies such as
+GLib/GIO, GTK, GStreamer and Webkit."
+ #:scope (list "gnu/packages/glib.scm"
+ "gnu/packages/gstreamer.scm"
+ "gnu/packages/gtk.scm"
+ "gnu/packages/gnome.scm"
+ "gnu/packages/gnome-xyz.scm"
+ "gnu/packages/webkit.scm"
+ "guix/build/glib-or-gtk-build-system.scm"
+ "guix/build/meson-build-system.scm")))
+
(define-team xfce
(team 'xfce
#:name "Xfce team"
@@ -511,7 +526,7 @@ importer."
(define-member (person "Liliana Marie Prikler"
"liliana.prikler@gmail.com")
- emacs games)
+ emacs games gnome)
(define-member (person "Ricardo Wurmus"
"rekado@elephly.net")
@@ -543,7 +558,7 @@ importer."
(define-member (person "Raghav Gururajan"
"rg@raghavgururajan.name")
- mentors)
+ gnome mentors)
(define-member (person "宋文武"
"iyzsong@envs.net")
@@ -553,6 +568,10 @@ importer."
"vagrant@reproducible-builds.org")
reproduciblebuilds)
+(define-member (person "Zhu Zihao"
+ "all_but_last@163.com")
+ localization xfce)
+
(define (find-team name)
(or (hash-ref %teams (string->symbol name))
diff --git a/gnu/home/services/desktop.scm b/gnu/home/services/desktop.scm
index fb1cd44060..661fe7d283 100644
--- a/gnu/home/services/desktop.scm
+++ b/gnu/home/services/desktop.scm
@@ -2,6 +2,7 @@
;;; Copyright © 2022 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2022 ( <paren@disroot.org>
;;; Copyright © 2023 conses <contact@conses.eu>
+;;; Copyright © 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -37,7 +38,10 @@
home-dbus-service-type
home-unclutter-configuration
- home-unclutter-service-type))
+ home-unclutter-service-type
+
+ home-xmodmap-configuration
+ home-xmodmap-service-type))
;;;
diff --git a/gnu/local.mk b/gnu/local.mk
index 192d7f4828..65662f8667 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1136,6 +1136,7 @@ dist_patch_DATA = \
%D%/packages/patches/fp16-implicit-double.patch \
%D%/packages/patches/fp16-system-libraries.patch \
%D%/packages/patches/fpc-reproducibility.patch \
+ %D%/packages/patches/fpm-newer-clamp-fix.patch \
%D%/packages/patches/freedink-engine-fix-sdl-hints.patch \
%D%/packages/patches/freeimage-unbundle.patch \
%D%/packages/patches/fuse-glibc-2.34.patch \
@@ -1201,7 +1202,6 @@ dist_patch_DATA = \
%D%/packages/patches/gdm-remove-hardcoded-xwayland-path.patch \
%D%/packages/patches/gdm-wayland-session-wrapper-from-env.patch \
%D%/packages/patches/gdm-pass-gdk-pixbuf-loader-env.patch \
- %D%/packages/patches/geeqie-clutter.patch \
%D%/packages/patches/gemmi-fix-pegtl-usage.patch \
%D%/packages/patches/gemmi-fix-sajson-types.patch \
%D%/packages/patches/genimage-mke2fs-test.patch \
@@ -1299,6 +1299,7 @@ dist_patch_DATA = \
%D%/packages/patches/guile-fibers-epoll-instance-is-dead.patch \
%D%/packages/patches/guile-fibers-fd-finalizer-leak.patch \
%D%/packages/patches/guile-fibers-wait-for-io-readiness.patch \
+ %D%/packages/patches/guile-fix-invalid-unicode-handling.patch \
%D%/packages/patches/guile-gdbm-ffi-support-gdbm-1.14.patch \
%D%/packages/patches/guile-git-adjust-for-libgit2-1.2.0.patch \
%D%/packages/patches/guile-present-coding.patch \
@@ -1820,6 +1821,7 @@ dist_patch_DATA = \
%D%/packages/patches/rocm-opencl-runtime-4.3-noclinfo.patch \
%D%/packages/patches/rocm-opencl-runtime-4.3-noopencl.patch \
%D%/packages/patches/rottlog-direntry.patch \
+ %D%/packages/patches/ruby-hiredis-use-system-hiredis.patch \
%D%/packages/patches/ruby-hydra-minimal-no-byebug.patch \
%D%/packages/patches/ruby-anystyle-data-immutable-install.patch \
%D%/packages/patches/ruby-anystyle-fix-dictionary-populate.patch \
diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm
index 42384ecd82..830f967f1c 100644
--- a/gnu/packages/algebra.scm
+++ b/gnu/packages/algebra.scm
@@ -226,7 +226,7 @@ the real span of the lattice.")
(define-public pari-gp
(package
(name "pari-gp")
- (version "2.15.2")
+ (version "2.15.3")
(source (origin
(method url-fetch)
(uri (string-append
@@ -234,7 +234,7 @@ the real span of the lattice.")
version ".tar.gz"))
(sha256
(base32
- "1pg0przhb3cgyn0rwkx2mx7a7fpy6bxxl72bk98pca723q8jhimh"))))
+ "0s4jasvb3ghvxp9s2ifmr0lk7ckj9529zg28icmdgbyd723abxdd"))))
(build-system gnu-build-system)
(native-inputs (list (texlive-updmap.cfg
(list texlive-amsfonts))))
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 84cf403ce6..4f4e7bc947 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -734,7 +734,7 @@ purposes developed at Queen Mary, University of London.")
(define-public ardour
(package
(name "ardour")
- (version "7.2")
+ (version "7.3")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -751,7 +751,7 @@ purposes developed at Queen Mary, University of London.")
namespace ARDOUR { const char* revision = \"" version "\" ; const char* date = \"\"; }")))))
(sha256
(base32
- "1gv0wkzyx59lbnaf5iz9yva4akrd2zkhsmdk8wda3wz06zmk4w1r"))
+ "0bkhrgswhc9y1ly8nfg8hpwad77cgbr663dgj86h3aisljc4cdkw"))
(file-name (string-append name "-" version))))
(build-system waf-build-system)
(arguments
diff --git a/gnu/packages/chez.scm b/gnu/packages/chez.scm
index c6420a980e..ab6eaba6bd 100644
--- a/gnu/packages/chez.scm
+++ b/gnu/packages/chez.scm
@@ -692,10 +692,12 @@ source.")))
(search-input-file (or native-inputs inputs)
"/opt/racket-vm/bin/racket")
"../rktboot/main.rkt"
- #$@(if (racket-cs-native-supported-system?)
- #~()
- (let ((m (nix-system->pbarch-machine-type)))
- #~("--machine" #$m)))))))))))))
+ ;; Temporary handling of builds on non-x86 architectures,
+ ;; see https://github.com/racket/racket/issues/3948
+ ;; Autodetect in rktboot only addresses x86 archs, so far.
+ #$@(let ((m (or (racket-cs-native-supported-system?)
+ (nix-system->pbarch-machine-type))))
+ #~("--machine" #$m))))))))))))
(supported-systems
(package-supported-systems chez-scheme-for-racket))
(home-page "https://github.com/racket/ChezScheme")
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index a36c845479..e88d893517 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -3246,6 +3246,28 @@ re-imagining of @code{httr} that uses a pipe-based interface and solves more
of the problems that API wrapping packages face.")
(license license:expat)))
+(define-public r-jsonify
+ (package
+ (name "r-jsonify")
+ (version "1.2.2")
+ (source (origin
+ (method url-fetch)
+ (uri (cran-uri "jsonify" version))
+ (sha256
+ (base32
+ "0bxgyj5b1hnijq5315g050giixy4k5mjz2zdx8yil0igb5ifji9p"))))
+ (properties `((upstream-name . "jsonify")))
+ (build-system r-build-system)
+ (propagated-inputs (list r-rapidjsonr r-rcpp))
+ (native-inputs (list r-knitr))
+ (home-page "https://cran.r-project.org/package=jsonify")
+ (synopsis
+ "Convert between R objects and JavaScript Object Notation (JSON)")
+ (description
+ "This package enables conversions between R objects and JavaScript Object
+Notation (JSON) using the rapidjsonr library.")
+ (license license:expat)))
+
(define-public r-jsonlite
(package
(name "r-jsonlite")
@@ -5498,6 +5520,81 @@ freedom to design figures for better understanding complex patterns behind
multi-dimensional data.")
(license license:gpl2+)))
+(define-public r-ctrdata
+ (package
+ (name "r-ctrdata")
+ (version "1.11.1")
+ (source (origin
+ (method url-fetch)
+ (uri (cran-uri "ctrdata" version))
+ (sha256
+ (base32
+ "076v3bll8s6m61wcbwgrgrm34g0wa7gsc90mbwxwap1xfxyzjjsg"))))
+ (properties `((upstream-name . "ctrdata")))
+ (build-system r-build-system)
+ (propagated-inputs
+ (list r-clipr
+ r-curl
+ r-dplyr
+ r-httr
+ r-jsonlite
+ r-lubridate
+ r-nodbi
+ r-rvest
+ r-stringi
+ r-xml2))
+ (native-inputs (list r-r-rsp))
+ (home-page "https://cran.r-project.org/package=ctrdata")
+ (synopsis "Retrieve and analyze clinical trials in public registers")
+ (description
+ "This package provides a system for querying, retrieving and analyzing
+protocol- and results-related information on clinical trials from three public
+registers, the European Union Clinical Trials Register (EUCTR),
+ClinicalTrials.gov (CTGOV) and the ISRCTN. Trial information is downloaded,
+converted and stored in a database. Functions are included to identify
+deduplicated records, to easily find and extract variables (fields) of
+interest even from complex nesting as used by the registers, and to update
+previous queries. The package can be used for meta-analysis and
+trend-analysis of the design and conduct as well as for results of clinical
+trials.")
+ (license license:expat)))
+
+(define-public r-ctrialsgov
+ (package
+ (name "r-ctrialsgov")
+ (version "0.2.5")
+ (source (origin
+ (method url-fetch)
+ (uri (cran-uri "ctrialsgov" version))
+ (sha256
+ (base32
+ "0hdh1fdfaja8amf7fkvk1c6yif703132bvacq0j9pk5jr97czgpw"))))
+ (properties `((upstream-name . "ctrialsgov")))
+ (build-system r-build-system)
+ (propagated-inputs
+ (list r-dbi
+ r-dplyr
+ r-ggplot2
+ r-htmlwidgets
+ r-lubridate
+ r-matrix
+ r-plotly
+ r-purrr
+ r-rlang
+ r-stringi
+ r-tibble))
+ (native-inputs (list r-knitr))
+ (home-page "https://cran.r-project.org/package=ctrialsgov")
+ (synopsis
+ "Query data from U.S. National Library of Medicine's Clinical Trials Database")
+ (description
+ "This package provides tools to query the U.S. National Library of
+Medicine's Clinical Trials database. Functions are provided for a variety of
+techniques for searching the data using range queries, categorical filtering,
+and by searching for full-text keywords. Minimal graphical tools are also
+provided for interactively exploring the constructed data.")
+ (license license:expat)))
+
(define-public r-powerlaw
(package
(name "r-powerlaw")
@@ -12217,6 +12314,34 @@ functions also support labelled data, and all integrate seamlessly into a
tidyverse workflow.")
(license license:gpl3)))
+(define-public r-nodbi
+ (package
+ (name "r-nodbi")
+ (version "0.9.1")
+ (source (origin
+ (method url-fetch)
+ (uri (cran-uri "nodbi" version))
+ (sha256
+ (base32
+ "1hn0wy2ry9l3wwqrshmf82cxigkm16wycwprv458bcvb5k6ayy5m"))))
+ (properties `((upstream-name . "nodbi")))
+ (build-system r-build-system)
+ (propagated-inputs
+ (list r-dbi
+ r-jqr
+ r-jsonify
+ r-jsonlite
+ r-stringi
+ r-uuid))
+ (home-page "https://docs.ropensci.org/nodbi/")
+ (synopsis "NoSQL database connector")
+ (description
+ "This is a package for simplified document database access and
+manipulation, providing a common API across supported NoSQL databases
+Elasticsearch, CouchDB, MongoDB as well as SQLite/JSON1, PostgreSQL, and
+DuckDB.")
+ (license license:expat)))
+
(define-public r-nortest
(package
(name "r-nortest")
diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index b4bef33b06..1ed14d9092 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -868,6 +868,8 @@ BLAKE.")
(file-name (git-file-name name version))
(sha256
(base32 "04z631v0vzl52g73v390ask5fnzi5wg83lcjkjhpmmymaz0jn152"))))
+ ;; "This code requires at least SSE2".
+ (supported-systems '("x86_64-linux"))
(build-system gnu-build-system)
(arguments
`(#:make-flags (list (string-append "CC=" ,(cc-for-target))
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 926a19292f..3b8fefc122 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -32,7 +32,7 @@
;;; Copyright © 2017 Kristofer Buffington <kristoferbuffington@gmail.com>
;;; Copyright © 2018 Amirouche Boubekki <amirouche@hypermove.net>
;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
-;;; Copyright © 2018, 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2018, 2021, 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2019 Jack Hill <jackhill@jackhill.us>
;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
;;; Copyright © 2019 Gábor Boskovits <boskovits@gmail.com>
@@ -2472,6 +2472,66 @@ protocol is supported.")
(home-page "https://github.com/redis/hiredis")
(license license:bsd-3)))
+(define-public ruby-hiredis
+ (package
+ (name "ruby-hiredis")
+ (version "0.6.3")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/redis/hiredis-rb")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "05y4g7frhym59m9x208zpvg2qvqvfjlgqmygxj8sqgl07n0ww1ks"))
+ (patches (search-patches
+ "ruby-hiredis-use-system-hiredis.patch"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:tests? #f ;require native extension
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-hiredis-include-directory
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "ext/hiredis_ext/extconf.rb"
+ ;; Adjust the hiredis include directory.
+ (("\\$CFLAGS << \" -I/usr/include/hiredis\"")
+ (format #f "$CFLAGS << \" -I~a\""
+ (search-input-directory inputs "include/hiredis"))))))
+ (add-after 'unpack 'disable-building-c-extension
+ (lambda _
+ ;; FIXME: The produced native extension appears to segfault when
+ ;; run; disable building it until a solution is found (see:
+ ;; https://github.com/redis/hiredis-rb/issues/93).
+ (substitute* "ext/hiredis_ext/extconf.rb"
+ (("build_hiredis = true")
+ "build_hiredis = false"))))
+ ;; FIXME: Un-comment phase after the extension can be made to run
+ ;; without crashing (see above).
+ ;; (add-after 'build 'build-ext
+ ;; (lambda _
+ ;; (setenv "CC" #$(cc-for-target))
+ ;; (invoke "rake" "compile")))
+ (add-before 'check 'start-redis
+ (lambda _
+ (invoke "redis-server" "--daemonize" "yes")))
+ (add-after 'install 'delete-mkmf.log
+ (lambda _
+ ;; This build log captures non-deterministic file names (see:
+ ;; https://github.com/rubygems/rubygems/issues/6259).
+ (for-each delete-file (find-files #$output "^mkmf\\.log$")))))))
+ (native-inputs (list redis ruby-rake-compiler))
+ (inputs (list hiredis))
+ (synopsis "Ruby wrapper for hiredis")
+ (description "@code{hiredis-rb} is a Ruby extension that wraps
+@code{hiredis}, a minimalist C client for Redis. Both the synchronous
+connection API and a separate protocol reader are supported. It is primarily
+intended to speed up parsing multi bulk replies.")
+ (home-page "https://github.com/redis/hiredis-rb")
+ (license license:bsd-3)))
+
(define-public ruby-redis
(package
(name "ruby-redis")
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 0a1846ea4c..da2856abc8 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -256,6 +256,7 @@
#:use-module (gnu packages erlang)
#:use-module (gnu packages statistics)
#:use-module (gnu packages libcanberra)
+ #:use-module (gnu packages web-browsers)
#:use-module (gnu packages wget)
#:use-module (guix utils)
#:use-module (srfi srfi-1)
@@ -582,7 +583,7 @@ a generic Scheme interaction mode for the GNU Emacs editor.")
(define-public emacs-geiser-chez
(package
(name "emacs-geiser-chez")
- (version "0.17")
+ (version "0.18")
(source
(origin
(method git-fetch)
@@ -591,7 +592,7 @@ a generic Scheme interaction mode for the GNU Emacs editor.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "03fc9ahb0pmznkcnxzgpni4clj1zgky6vaqkc94nf8b8swniwkm9"))))
+ (base32 "19yv5brhzf10hsazmm8s1b058d434hv60a52s08m3kxyrkwr5sca"))))
(build-system emacs-build-system)
(arguments
'(#:include (cons "^src/" %default-include)
@@ -645,29 +646,27 @@ server}. The main advantage compared to @code{vc-hg} is speed.")
(license license:gpl3+)))
(define-public emacs-telephone-line
- (let ((commit "6f3455a365912e8f0c45a2240ea79507dee45ade")
- (revision "0"))
- (package
- (name "emacs-telephone-line")
- (version (git-version "0.5" revision commit))
- (source
- (origin
- (method git-fetch)
- (uri
- (git-reference
- (url "https://github.com/dbordak/telephone-line")
- (commit commit)))
- (file-name (git-file-name name version))
- (sha256
- (base32 "1hnd6wnc52sc0ckriqnhaz64pyjk027y0dpcmh2zhpd27i8d4hmq"))))
- (build-system emacs-build-system)
- (home-page "https://github.com/dbordak/telephone-line")
- (synopsis "Implementation of Powerline for Emacs")
- (description
- "Telephone Line is a new implementation of Powerline for Emacs with
+ (package
+ (name "emacs-telephone-line")
+ (version "0.6")
+ (source
+ (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://github.com/dbordak/telephone-line")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1pv6hlzks02bvxkfyg8m04l36clg39h5w7nq2k6ppi5bh4d4kmc8"))))
+ (build-system emacs-build-system)
+ (home-page "https://github.com/dbordak/telephone-line")
+ (synopsis "Implementation of Powerline for Emacs")
+ (description
+ "Telephone Line is a new implementation of Powerline for Emacs with
optional baked-in Evil support, antialiased separators, and an easy
configuration language which makes it trivial to write your own themes.")
- (license license:gpl3+))))
+ (license license:gpl3+)))
(define-public emacs-inspector
(let ((commit "0b2cf2f00a827f06bda717da8250eafec4108fb3")) ;version bump
@@ -7253,7 +7252,7 @@ It is not intended as a user interface.")
(define-public emacs-sqlite3-api
(package
(name "emacs-sqlite3-api")
- (version "0.16")
+ (version "0.17")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -7262,7 +7261,7 @@ It is not intended as a user interface.")
(file-name (git-file-name name version))
(sha256
(base32
- "0yrfwb3yvhp1ib4izxh1ds68b3zw8gjkjhlk1kivarxnfjnjnly2"))))
+ "1y36818nd47mzfi3xcp31nr8n0izzmdyiqfx9hgp7ag98rbm7wlx"))))
(build-system emacs-build-system)
(arguments
(list
@@ -7903,14 +7902,14 @@ user.")
(define-public emacs-subed
(package
(name "emacs-subed")
- (version "1.2.0")
+ (version "1.2.1")
(source (origin
(method url-fetch)
(uri (string-append "https://elpa.nongnu.org/nongnu/subed-"
version ".tar"))
(sha256
(base32
- "1cdgnwd1saqc07xizdpaadnnl88w0hwc39jklhql1m2a0ii52lck"))))
+ "09a3ggnqsm4lxqhj0z9z3df6qzibvv9lpwqij2gpiifbb4lkvj4b"))))
(arguments
(list
#:tests? #t
@@ -9698,6 +9697,30 @@ insertion mode. When enabled all keys are implicitly prefixed with
sgml/html integration, and indentation (working with sgml).")
(license license:gpl3+)))
+(define-public emacs-jit-spell
+ (package
+ (name "emacs-jit-spell")
+ (version "0.2")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://elpa.gnu.org/packages/jit-spell-"
+ version ".tar"))
+ (sha256
+ (base32
+ "10h2nbp6lap26arwifhzs119mkfj76fvjsix3iccjjvfdi88wdn9"))))
+ (build-system emacs-build-system)
+ (propagated-inputs (list emacs-compat))
+ (home-page "https://github.com/astoff/jit-spell")
+ (synopsis "Just-in-time spell checking")
+ (description
+ "This package highlights all misspelled words in a window, just like a
+word processor or web browser does. This behavior is different from the
+built-in Flyspell package, which only checks words as the cursor moves over
+them. Moreover, unlike Flyspell, Jit-spell communicates with the
+spell-checking subprocess entirely asynchronously, which can lead to a
+noticeable performance improvement.")
+ (license license:gpl3+)))
+
(define-public emacs-company-cabal
;; The latest version is 0.3.0, but no release has been provided after 0.2.1.
(let ((commit "62112a7259e24bd6c08885629a185afe512b7d3d")
@@ -14123,7 +14146,7 @@ implementation.")
(define-public emacs-cider
(package
(name "emacs-cider")
- (version "1.6.0")
+ (version "1.7.0")
(source
(origin
(method git-fetch)
@@ -14132,7 +14155,7 @@ implementation.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1a3xbfn1id8dcy3178kmdnzcvh7lq2pdwwg4axhncw6jq9hqiqja"))))
+ (base32 "0jqjgygdvny1vhjbx7k0l492fhamwndsjcbb2mccwp9j47k4qar9"))))
(build-system emacs-build-system)
(arguments
'(#:exclude ;don't exclude 'cider-test.el'
@@ -14615,7 +14638,7 @@ extensions.")
(define-public emacs-evil-collection
(package
(name "emacs-evil-collection")
- (version "0.0.8")
+ (version "0.0.9")
(source
(origin
(method git-fetch)
@@ -14624,12 +14647,22 @@ extensions.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "159i3qvjnp7jiffwpr517nnxcy3w3g40302vyzxvz6mb6qay6f2c"))))
+ (base32 "1y1ig4shqaaiiwqm5pv8hvh8ynr6irhffkgmpyzmhdaaicxnfazc"))))
(build-system emacs-build-system)
- (propagated-inputs
- (list emacs-evil emacs-annalist))
(arguments
- `(#:include (cons* "^modes\\/" %default-include)))
+ (list
+ #:include #~(cons* "^modes\\/" %default-include)
+ #:tests? #true
+ #:test-command #~(list "emacs" "-Q" "--batch"
+ "-L" "."
+ "-L" "./test"
+ "-l" "evil-collection-test.el"
+ "-l" "evil-collection-magit-tests.el"
+ "-f" "ert-run-tests-batch-and-exit")))
+ (native-inputs
+ (list emacs-magit))
+ (propagated-inputs
+ (list emacs-annalist emacs-evil))
(home-page "https://github.com/emacs-evil/evil-collection")
(synopsis "Collection of Evil bindings for many major and minor modes")
(description "This is a collection of Evil bindings for the parts of
@@ -17217,7 +17250,7 @@ in Emacs.")
(define-public emacs-php-mode
(package
(name "emacs-php-mode")
- (version "1.24.2")
+ (version "1.24.3")
(source
(origin
(method git-fetch)
@@ -17226,14 +17259,24 @@ in Emacs.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "13lkzvamr86409whr8as4721gx9xrlfkmxvv941775mryliqk6j6"))))
+ (base32 "01yw10z1kf38nz4z3gmpx56wmc7a7caf4nk6rccg0w4kklqw1h94"))))
(build-system emacs-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'enter-source-directory
- (lambda _
- (chdir "lisp"))))))
+ (list
+ #:tests? #true
+ #:test-command #~(list "emacs" "-Q" "--batch"
+ "-l" "../tests/php-mode-test.el"
+ "-f" "ert-run-tests-batch-and-exit")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'prepare-testing-bed
+ (lambda _
+ ;; This file is necessary for `php-project-root' test.
+ (call-with-output-file "tests/project/1/.git"
+ (const #t))))
+ (add-after 'prepare-testing-bed 'enter-source-directory
+ (lambda _
+ (chdir "lisp"))))))
(propagated-inputs (list emacs-projectile))
(home-page "https://github.com/ejmr/php-mode")
(synopsis "Major mode for editing PHP code")
@@ -17408,14 +17451,14 @@ the center of the screen and not at the bottom.")
(define-public emacs-posframe
(package
(name "emacs-posframe")
- (version "1.4.0")
+ (version "1.4.1")
(source
(origin
(method url-fetch)
(uri (string-append "https://elpa.gnu.org/packages/"
"posframe-" version ".tar"))
(sha256
- (base32 "0pqy7scdi3qxj518xm0bbr3979byfxqxxh64wny37xzhd4apsw5j"))))
+ (base32 "02kw3d6760015q61sryw8k3zqdnzhcwwyfjfysbfs07cljkqpjnh"))))
(build-system emacs-build-system)
;; emacs-minimal does not include the function font-info.
(arguments
@@ -18809,7 +18852,7 @@ multiplexer.")
(define-public emacs-plz
(package
(name "emacs-plz")
- (version "0.3")
+ (version "0.4")
(source
(origin
(method git-fetch)
@@ -18818,11 +18861,12 @@ multiplexer.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "1ack4rajjdmb3fqz5v394rqpvn9mfvbkrxra27yrcqz97mma1ki7"))))
+ (base32 "0sfgbq6nn9prxqg5qs576rlpszbhp70yj3d8r7hqckrd5s0sbk13"))))
(build-system emacs-build-system)
(inputs (list curl))
(arguments
(list
+ #:tests? #f ;require internet access
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'substitute-curl-path
@@ -21763,7 +21807,7 @@ automatically fetched from well-curated sources, and formatted as BibTeX.")
(define-public emacs-citar
(package
(name "emacs-citar")
- (version "1.2.0")
+ (version "1.3.1")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -21772,7 +21816,7 @@ automatically fetched from well-curated sources, and formatted as BibTeX.")
(file-name (git-file-name name version))
(sha256
(base32
- "186h6wbjwh7ws3jmc81wx2cv7gbppl2j3gwdq67crhml5xjc4fh7"))))
+ "12chdrmkggnpci1kdkkrz4a2bnsbzc8pra318zbnn3qxinlpngyy"))))
(build-system emacs-build-system)
(arguments
(list
@@ -21811,7 +21855,7 @@ citations.")
(define-public emacs-citar-org-roam
(package
(name "emacs-citar-org-roam")
- (version "0.3")
+ (version "0.5.0")
(source
(origin
(method git-fetch)
@@ -21820,9 +21864,9 @@ citations.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1ldfs7g7ixnrwj23draiph4vy6xq7qgw18vhi7vbw6wvkh9fcv9r"))))
+ (base32 "0h1lrx5fg51qpyxh3lrb7x392a5rr8q5a7dihscfzhr38ba1pfh6"))))
(build-system emacs-build-system)
- (propagated-inputs (list emacs-org-roam emacs-citar))
+ (propagated-inputs (list emacs-citar emacs-org-roam))
(home-page "https://github.com/emacs-citar/citar-org-roam")
(synopsis "Emacs package to provide tighter Citar and Org-Roam integration")
(description "\
@@ -26894,6 +26938,31 @@ scratch, and you think the Spacemacs theme looks good.
(base32 "11lwckqcgzsahrkkm5wk1ph4kc7d4yz05r7251g8c9f0q6vdj9dp"))
(file-name (git-file-name name version)))))))
+(define-public emacs-column-enforce-mode
+ (let ((commit "14a7622f2268890e33536ccd29510024d51ee96f")
+ (revision "1"))
+ (package
+ (name "emacs-column-enforce-mode")
+ (version (git-version "1.0.4" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url
+ "https://github.com/jordonbiondo/column-enforce-mode")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1vxra5vk78yns2sw89m41bggczqg1akq6xvzfs9kylhkg5yz3g7g"))))
+ (build-system emacs-build-system)
+ (home-page "https://github.com/jordonbiondo/column-enforce-mode")
+ (synopsis "Highlight text that extends beyond a certain column")
+ (description
+ "Column Enforce mode highlights text that extends beyond a certain
+column. It can be used to enforce 80 column rule. It can also be configured
+for any @var{N}-column rule.")
+ (license license:gpl3+))))
+
(define-public emacs-column-marker
(package
(name "emacs-column-marker")
@@ -27141,6 +27210,16 @@ targets the Emacs based IDEs (CIDER, ESS, Geiser, Robe, SLIME etc.)")
#:test-command #~(list "make" "test")
#:phases
#~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-spy-on-test
+ (lambda _
+ (substitute* "buttercup.el"
+ ;; The spy-on test fails with native compilation, which was
+ ;; fixed in v1.30 but with a variable name for Emacs newer
+ ;; than 28.2. Add in the same fix with the current variable
+ ;; name. Upstream bug and fix:
+ ;; <https://github.com/jorgenschaefer/emacs-buttercup/issues/236>
+ (("\\(native-comp-enable-subr-trampolines nil\\)" all)
+ (string-append all " (comp-enable-subr-trampolines nil)")))))
(add-after 'install 'install-bin
(lambda _
(install-file "bin/buttercup"
@@ -27632,6 +27711,37 @@ Nix expressions. It supports syntax highlighting, indenting and refilling of
comments.")
(license license:lgpl2.1+)))
+(define-public emacs-nyxt
+ (package
+ (name "emacs-nyxt")
+ (version "0.1.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://git.sr.ht/~conses/nyxt.el")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1hgb10pk5m3v2gsl4h6i821nyzksss0rk4hhjnfb7nm98lalzbl6"))))
+ (build-system emacs-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-file-name
+ (lambda* (#:key inputs #:allow-other-keys)
+ (emacs-substitute-variables "nyxt.el"
+ ("nyxt-path"
+ (search-input-file inputs "/bin/nyxt"))))))))
+ (inputs (list nyxt))
+ (propagated-inputs (list emacs-sly))
+ (home-page "https://git.sr.ht/~conses/nyxt.el")
+ (synopsis "Interact with Nyxt from Emacs")
+ (description "This package consists of custom logic to interact with Nyxt
+from Emacs.")
+ (license license:gpl3+)))
+
(define-public emacs-libmpdel
(package
(name "emacs-libmpdel")
@@ -30941,7 +31051,7 @@ it forcibly
(define-public emacs-elpher
(package
(name "emacs-elpher")
- (version "3.4.2")
+ (version "3.4.3")
(source
(origin
(method git-fetch)
@@ -30950,7 +31060,7 @@ it forcibly
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1c6pid2ip2c2lpww42wxgq4qflx1m8vxilyva03h8xzgr39kwq64"))))
+ (base32 "04m226by90mv4rxxy6is8appxnvxq4npr585k2y2l1vmrj0qwn49"))))
(build-system emacs-build-system)
(arguments
(list
@@ -31401,27 +31511,37 @@ contains a track position, playback will start at the specified position.")
(define-public emacs-org-jira
(package
- (name "emacs-org-jira")
- (version "4.4.0")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/ahungry/org-jira")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1s91l4ibjvvc7rfvd8gldxqrcgjq00q83fdww217ck2ps5yrzyjl"))))
- (build-system emacs-build-system)
- (propagated-inputs
- (list emacs-request emacs-s emacs-dash emacs-org))
- (home-page "https://github.com/ahungry/org-jira")
- (synopsis "Syncing between Jira and Org-mode")
- (description
- "This package provides an extension to org-mode for syncing issues with
+ (name "emacs-org-jira")
+ (version "4.4.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ahungry/org-jira")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1pkqyvziwp2573hnr8s41chsbm40564f76i3l8ynjr7955nccsms"))))
+ (build-system emacs-build-system)
+ (arguments
+ (list
+ #:tests? #true
+ #:test-command #~(list "emacs" "-Q" "--batch"
+ "-l" "jiralib.el"
+ "-l" "org-jira-sdk.el"
+ "-l" "org-jira.el"
+ "-l" "t/org-jira-t.el"
+ "-l" "t/jiralib-t.el"
+ "-f" "ert-run-tests-batch-and-exit")))
+ (propagated-inputs
+ (list emacs-dash emacs-org emacs-request))
+ (home-page "https://github.com/ahungry/org-jira")
+ (synopsis "Syncing between Jira and Org mode")
+ (description
+ "This package provides an extension to Org mode for syncing issues with
JIRA issue servers.")
- (license license:gpl3+)))
+ (license license:gpl3+)))
(define-public emacs-slime-volleyball
(package
@@ -35060,7 +35180,7 @@ complementary packages.")
(define-public emacs-wisp-mode
(package
(name "emacs-wisp-mode")
- (version "1.0.10")
+ (version "1.0.11")
(source
(origin
(method hg-fetch)
@@ -35069,7 +35189,7 @@ complementary packages.")
(changeset (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "13xlagkjmnzv0fn6bwb3vrqn6arxx1g2m1b4wg2rzm7dadlpgmpn"))))
+ (base32 "1w2wx5001aiwky25kvk190d1bgz6g856nm5hhaggsyb1h9f5ws17"))))
(build-system emacs-build-system)
(home-page "https://www.draketo.de/software/wisp")
(synopsis "Syntax highlighting and indentation support for Wisp files")
diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm
index bc5bb41fb3..a62433c01c 100644
--- a/gnu/packages/file-systems.scm
+++ b/gnu/packages/file-systems.scm
@@ -435,6 +435,80 @@ significantly increases the risk of irreversible data loss!")
(license (list license:gpl2 ; fsattr/src/e4attr.* → sbin/fsattr
license:gpl3+)))) ; the rest
+(define-public gocryptfs
+ (package
+ (name "gocryptfs")
+ (version "2.3.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rfjakob/gocryptfs")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1m0xk5imkx81i1l4wv1j1xh9ckp0gqssq4v46pkkcq2xlv2dvxlr"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/rfjakob/gocryptfs"
+ #:build-flags
+ #~(list
+ "-ldflags" (string-append
+ "-X main.GitVersion=" #$version
+ " -X main.GitVersionFuse=" #$(package-version
+ go-github-com-hanwen-go-fuse-v2)
+ " -X main.BuildDate=" "[reproducible]"))
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; after 'check phase, should maybe unmount leftover mounts as in
+ ;; https://github.com/rfjakob/gocryptfs/blob/a55b3cc15a6d9bce116a90f33df4bc99d9dd6a10/test.bash#L28
+ (replace 'build
+ (lambda arguments
+ (for-each
+ (lambda (directory)
+ (apply (assoc-ref %standard-phases 'build)
+ (append arguments (list #:import-path directory))))
+ (list
+ "github.com/rfjakob/gocryptfs"
+ "github.com/rfjakob/gocryptfs/gocryptfs-xray"
+ "github.com/rfjakob/gocryptfs/contrib/statfs"
+ "github.com/rfjakob/gocryptfs/contrib/findholes"
+ "github.com/rfjakob/gocryptfs/contrib/atomicrename")))))))
+ (native-inputs (list
+ go-github-com-hanwen-go-fuse-v2
+ go-github-com-aperturerobotics-jacobsa-crypto
+ go-github-com-jacobsa-oglematchers
+ go-github-com-jacobsa-oglemock
+ go-github-com-jacobsa-ogletest
+ go-github-com-jacobsa-reqtrace
+ go-github-com-pkg-xattr
+ go-github-com-rfjakob-eme
+ go-github-com-sabhiram-go-gitignore
+ go-github-com-spf13-pflag
+ go-golang-org-x-crypto
+ go-golang-org-x-net
+ go-golang-org-x-sys
+ go-golang-org-x-term
+ openssl
+ pkg-config))
+ (home-page "https://github.com/rfjakob/gocryptfs")
+ (synopsis "Encrypted overlay filesystem")
+ (description
+ "Gocryptfs is an encrypted overlay filesystem written in Go. It
+features a file-based encryption that is implemented as a mountable
+FUSE filesystem.
+
+Gocryptfs was inspired by EncFS and strives to fix its security issues
+while providing good performance. Gocryptfs is as fast as EncFS in the
+default mode and significantly faster than paranoia mode in EncFS,
+which provides a security level comparable to Gocryptfs.
+
+On CPUs without AES-NI, gocryptfs uses OpenSSL through a thin wrapper
+called stupidgcm. This provides a 4x speedup compared to Go's builtin
+AES-GCM implementation.")
+ (license license:expat)))
+
(define-public gphotofs
(package
(name "gphotofs")
diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 3f3fc078f0..2b18b0bb88 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -1782,7 +1782,12 @@ following three utilities are included with the library:
;; exist.
(substitute* "src/Makefile.test.include"
(("test/utilprocess_tests.cpp")
- ""))))
+ ""))
+ ;; Disable PaymentServer failing test because it's using
+ ;; an expired SSL certificate.
+ (substitute* "src/qt/test/test_main.cpp"
+ (("if \\(QTest::qExec\\(&test2\\) != 0\\)")
+ "if (QTest::qExec(&test2) == 0)"))))
(add-before 'check 'set-home
(lambda _
;; Tests write to $HOME
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 5d159208dd..88d833d6c4 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -2072,7 +2072,7 @@ for Inria, a public research institute in computer science and mathematics.")
(define-public font-sil-gentium
(package
(name "font-sil-gentium")
- (version "5.000")
+ (version "6.200")
(source (origin
(method url-fetch)
(uri (string-append
@@ -2080,7 +2080,7 @@ for Inria, a public research institute in computer science and mathematics.")
version ".zip"))
(sha256
(base32
- "0m7189870hha217n1vgpmf89mwggrxkh679ffi1lxpnjggqi2n9k"))))
+ "0wxhsxv7xqsfbrywax0lcbmyfbrvrcm5g4c7a2v4j4cng4xi08cv"))))
;; Note: The zip file provides TTF files only, but the developer release,
;; which contains additional files, has a 'SOURCES.txt' file that says
;; that "the primary source files for the fonts are the fonts themselves".
@@ -2098,7 +2098,7 @@ italics shapes. This package provides only TrueType files (TTF).")
(define-public font-sil-andika
(package
(name "font-sil-andika")
- (version "5.000")
+ (version "6.200")
(source (origin
(method url-fetch)
(uri (string-append
@@ -2106,7 +2106,7 @@ italics shapes. This package provides only TrueType files (TTF).")
version ".zip"))
(sha256
(base32
- "01zm7p32gxfwmv7h3cfj2vx59846w2y6rxqy67grn2dyjh8pljv0"))))
+ "0z7qvjlidn3m2k40mwnm3azf3wd8pi1yvy2q30p5vkyyzhipb6nc"))))
;; As for Gentium (see above), the TTF files are considered source.
(build-system font-build-system)
(synopsis "Sans serif font designed especially for literacy use")
@@ -2121,7 +2121,7 @@ confused with one another. This package provides only TrueType files (TTF).")
(define-public font-sil-charis
(package
(name "font-sil-charis")
- (version "5.000")
+ (version "6.200")
(source (origin
(method url-fetch)
(uri (string-append
@@ -2129,7 +2129,7 @@ confused with one another. This package provides only TrueType files (TTF).")
version ".zip"))
(sha256
(base32
- "1zcvw37f1a7gkml3yfm6hxh93844llm7xj4w52600qq3ndrm8gjy"))))
+ "1pksr5wc9grdj75md4phr1a0gpjxk7xlmhv2nybsd2hbfrssl2ab"))))
;; As for Gentium (see above), the TTF files are considered source.
(build-system font-build-system)
(synopsis "Serif font for the Cyrillic and Latin alphabets")
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index c941a76297..b6cf45b728 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -484,7 +484,7 @@ display servers. It supports many different languages and emoji.")
"1nai806smz3zcb2l5iny4x7li0fak0rzmjg6vlyhdqm8z25b166p"))))
(build-system gnu-build-system)
(native-inputs
- (list docbook-xsl docbook-xml-4.1.2 libxslt w3m xmlto))
+ (list docbook-xsl docbook-xml-4.1.2 libxslt w3m-for-tests xmlto))
(inputs
(list bash-minimal ;for 'wrap-program'
coreutils
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index aa8525b100..0efb98b97c 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -13297,7 +13297,7 @@ profiler via Sysprof, debugging support, and more.")
(define-public komikku
(package
(name "komikku")
- (version "1.14.0")
+ (version "1.15.0")
(source
(origin
(method git-fetch)
@@ -13307,7 +13307,7 @@ profiler via Sysprof, debugging support, and more.")
(file-name (git-file-name name version))
(sha256
(base32
- "1pknm3xz2hai8y6ynlyz7y1k1kaay7mkpm1svx66ggjhz8jzcrj5"))))
+ "0yd4274qxpv0wg1lm6daip2nd135qq07pfl5wrm2rqlzs5mvqs3n"))))
(build-system meson-build-system)
(arguments
(list
@@ -13351,6 +13351,7 @@ profiler via Sysprof, debugging support, and more.")
python-lxml
python-magic
python-natsort
+ python-piexif
python-pillow
python-pure-protobuf
python-pycairo
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index ca78f7c229..daceaebb17 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -857,7 +857,7 @@ in the style of communicating sequential processes (@dfn{CSP}).")
(package
(inherit go-1.18)
(name "go")
- (version "1.19.5")
+ (version "1.19.7")
(source
(origin
(method git-fetch)
@@ -867,7 +867,7 @@ in the style of communicating sequential processes (@dfn{CSP}).")
(file-name (git-file-name name version))
(sha256
(base32
- "0ah4l01h8qj0vj9668bdgr5m69fq16dz1fjlj332vhysxc6bkc27"))))
+ "0rrpfhv6vdwqs0jnld0iqsky5wlirir05czf34kvsf2db21nzdi9"))))
(arguments
(substitute-keyword-arguments (package-arguments go-1.18)
((#:phases phases)
@@ -884,7 +884,7 @@ in the style of communicating sequential processes (@dfn{CSP}).")
(package
(inherit go-1.19)
(name "go")
- (version "1.20")
+ (version "1.20.2")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -893,7 +893,7 @@ in the style of communicating sequential processes (@dfn{CSP}).")
(file-name (git-file-name name version))
(sha256
(base32
- "0a7wjzv14kaqg5l7ambv5zj4rj7sgah9yhcg6k6da6ygm6bs4dv3"))))
+ "0ir0x17i9067i48ffskwlmbx1j4kfhch46zl8cwl88y23aw59qa2"))))
(native-inputs
;; Go 1.20 and later requires Go 1.17 as the bootstrap toolchain.
;; See 'src/cmd/dist/notgo117.go' in the source code distribution,
@@ -1158,6 +1158,183 @@ form that bypasses network filtering, allowing the application to work on
networks where it would otherwise be blocked or heavily throttled.")
(license license:expat)))
+(define-public go-github-com-hanwen-go-fuse-v2
+ (let ((commit "915cf5413cdef5370ae3f953f8eb4cd9ac176d5c")
+ (revision "0"))
+ (package
+ (name "go-github-com-hanwen-go-fuse-v2")
+ (version (git-version "2.2.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/hanwen/go-fuse")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1ik0yvs9m40vxccpb0rpxc22fyqmcgyysc7w0yl9kn3jyr6qa1d5"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "github.com/hanwen/go-fuse/v2"))
+ (native-inputs (list
+ go-golang-org-x-sys
+ go-golang-org-x-sync
+ go-github-com-kylelemons-godebug))
+ (home-page "https://github.com/hanwen/go-fuse")
+ (synopsis "Go bindings for FUSE filesystems")
+ (description
+ "This is a repository containing Go bindings for writing FUSE file systems.")
+ (license license:bsd-3))))
+
+(define-public go-github-com-aperturerobotics-jacobsa-crypto
+ (let ((commit "b1eb679742a8deed015a4406384eea6bd985d08a")
+ (revision "0"))
+ (package
+ (name "go-github-com-aperturerobotics-jacobsa-crypto")
+ (version (git-version "1.0.1" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/aperturerobotics/jacobsa-crypto")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "16dxigj8m6q18xqsy72iq287rh4fw0y0b9yqlw0qkclb8379n1z2"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/aperturerobotics/jacobsa-crypto"
+ ;; Source-only package.
+ #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; Source-only package.
+ (delete 'build))))
+ (home-page "https://github.com/aperturerobotics/jacobsa-crypto")
+ (synopsis "Cryptography missing from the Go standard library")
+ (description
+ "This repository contains Go packages related to cryptographic standards that are
+not included in the Go standard library.")
+ (license license:asl2.0))))
+
+(define-public go-github-com-jacobsa-oglematchers
+ (let ((commit "141901ea67cd4769c6800aa7bfdfc558fa22bda5")
+ (revision "0"))
+ (package
+ (name "go-github-com-jacobsa-oglematchers")
+ (version (git-version "0.0.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jacobsa/oglematchers")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "09ff5x6vbhd9zl1z4yzyk573ifh16rry38q1rx986kbz4hqkmniq"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "github.com/jacobsa/oglematchers"
+ ;; break loop with with go-github-com-jacobsa-ogletest
+ #:tests? #f))
+ (home-page "https://github.com/jacobsa/oglematchers")
+ (synopsis "Matchers for Go testing framework")
+ (description
+ "Package oglematchers provides a set of matchers useful in a testing or mocking
+framework. These matchers are inspired by and mostly compatible with Google
+Test for C++ and Google JS Test.")
+ (license license:asl2.0))))
+
+(define-public go-github-com-jacobsa-oglemock
+ (let ((commit "e94d794d06ffc6de42cb19d0dab3c219efdd6dcf")
+ (revision "0"))
+ (package
+ (name "go-github-com-jacobsa-oglemock")
+ (version (git-version "0.0.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jacobsa/oglemock")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "14yxf8ykwdwkcccksl6741xgzcf8qykyi58kp4maxpgscqhdl8rq"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/jacobsa/oglemock"
+ ;; break loop with with go-github-com-jacobsa-ogletest
+ #:tests? #f))
+ (native-inputs (list
+ go-github-com-jacobsa-oglematchers))
+ (home-page "https://github.com/jacobsa/oglemock")
+ (synopsis "Mocking framework for unit tests")
+ (description
+ "Package oglemock provides a mocking framework for unit tests.")
+ (license license:asl2.0))))
+
+(define-public go-github-com-jacobsa-ogletest
+ (let ((commit "80d50a735a1108a2aeb7abc4a988d183f20c5292")
+ (revision "0"))
+ (package
+ (name "go-github-com-jacobsa-ogletest")
+ (version (git-version "0.0.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jacobsa/ogletest")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1lbwbxzr75g65q07ry5k4kglxqs3ym7xkvqznzm55rm3qk76v83r"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "github.com/jacobsa/ogletest"
+ ;; These tests should be made working
+ #:tests? #f))
+ (native-inputs (list
+ go-github-com-jacobsa-oglematchers
+ go-github-com-jacobsa-oglemock
+ go-github-com-jacobsa-reqtrace
+ go-golang-org-x-net))
+ (home-page "https://github.com/jacobsa/ogletest")
+ (synopsis "Expressive unit tests")
+ (description
+ "Package ogletest provides a framework for writing expressive unit tests. It
+integrates with the builtin testing package, so it works with the gotest
+command. Unlike the testing package which offers only basic capabilities for
+signalling failures, it offers ways to express expectations and get nice failure
+messages automatically.")
+ (license license:asl2.0))))
+
+(define-public go-github-com-jacobsa-reqtrace
+ (let ((commit "245c9e0234cb2ad542483a336324e982f1a22934")
+ (revision "0"))
+ (package
+ (name "go-github-com-jacobsa-reqtrace")
+ (version (git-version "0.0.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jacobsa/reqtrace")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0zfyijig10896v42rvxka1n4wn6lijqz40y2281187l7mq8vv5jn"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "github.com/jacobsa/reqtrace"))
+ (inputs (list
+ go-golang-org-x-net))
+ (home-page "https://github.com/jacobsa/reqtrace")
+ (synopsis "Simple request tracing framework")
+ (description
+ "Package reqtrace contains a very simple request tracing framework.")
+ (license license:asl2.0))))
+
(define-public go-github-com-kataras-golog
(package
(name "go-github-com-kataras-golog")
@@ -1229,6 +1406,59 @@ terminals.")
aid data snapshotting.")
(license license:isc)))
+(define-public go-github-com-pkg-xattr
+ (package
+ (name "go-github-com-pkg-xattr")
+ (version "0.4.9")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pkg/xattr")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0qg4zh0d8m4adaiicsd0cpw0w6g8sk01f4jz7jyxgirh1wfcsqyz"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "github.com/pkg/xattr"))
+ (native-inputs (list go-golang-org-x-sys))
+ (home-page "https://github.com/pkg/xattr")
+ (synopsis "Support for extended file system attributes")
+ (description
+ "Package xattr provides support for extended attributes on Linux, Darwin and
+FreeBSD. Extended attributes are name:value pairs permanently associated with
+files or directories. They are similar to the environment strings associated with
+a process. An attribute may be defined or undefined. If defined, its value may
+be empty or non-empty. You can find more details here:
+@@url{https://en.wikipedia.org/wiki/Extended_file_attributes,
+https://en.wikipedia.org/wiki/Extended_file_attributes}
+.")
+ (license license:bsd-2)))
+
+(define-public go-github-com-rfjakob-eme
+ (package
+ (name "go-github-com-rfjakob-eme")
+ (version "1.1.2")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rfjakob/eme")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1yrbhvy0337mf12fp8p4sy8ry8r3w2qfdf8val5hj07p2lri0cqk"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "github.com/rfjakob/eme"))
+ (home-page "https://github.com/rfjakob/eme")
+ (synopsis "EME for Go")
+ (description
+ "EME (ECB-Mix-ECB or, clearer, Encrypt-Mix-Encrypt) is a wide-block encryption
+mode developed by Halevi and Rogaway.")
+ (license license:expat)))
+
(define-public go-github-com-shadowsocks-go-shadowsocks2
(package
(name "go-github-com-shadowsocks-go-shadowsocks2")
@@ -3118,11 +3348,11 @@ the official package.")
(license license:bsd-3)))
(define-public go-golang-org-x-net
- (let ((commit "ba9fcec4b297b415637633c5a6e8fa592e4a16c3")
- (revision "4"))
+ (let ((commit "8e0e7d8d38f2b6d21d742845570dde2902d06a1d")
+ (revision "0"))
(package
(name "go-golang-org-x-net")
- (version (git-version "0.0.0" revision commit))
+ (version (git-version "0.5.0" revision commit))
(source (origin
(method git-fetch)
(uri (git-reference
@@ -3131,15 +3361,17 @@ the official package.")
(file-name (git-file-name name version))
(sha256
(base32
- "1hbqvy6r0s5h0dpdqw8fynl3cq0acin3iyqki9xvl5r8h33yb9bx"))))
+ "1fidlcn3vcz42v2lc0rpmqh3bz08bcklj6jvnmz2vvgc481ci5hy"))))
(build-system go-build-system)
(arguments
- `(#:import-path "golang.org/x/net"
- ; Source-only package
- #:tests? #f
- #:phases
- (modify-phases %standard-phases
- (delete 'build))))
+ (list
+ #:import-path "golang.org/x/net"
+ ;; Source-only package
+ #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; Source-only package
+ (delete 'build))))
(synopsis "Go supplemental networking libraries")
(description "This package provides supplemental Go networking libraries.")
(home-page "https://go.googlesource.com/net")
@@ -3218,11 +3450,11 @@ packages.")
(license license:bsd-3))))
(define-public go-golang-org-x-sys
- (let ((commit "ed5796bab16455f104b6a384d51b7f9990cb9806")
- (revision "8"))
+ (let ((commit "b60007cc4e6f966b1c542e343d026d06723e5653")
+ (revision "0"))
(package
(name "go-golang-org-x-sys")
- (version (git-version "0.0.0" revision commit))
+ (version (git-version "0.4.0" revision commit))
(source (origin
(method git-fetch)
(uri (git-reference
@@ -3231,15 +3463,17 @@ packages.")
(file-name (git-file-name name version))
(sha256
(base32
- "081vs5bg91mwg5bdmlcvy2qyrvg766aicj47smcwfk4bbh0nc0qa"))))
+ "0fr2d6fnpbqx6n89sg9lsinqkdaw49y068kqj2g0cxlhbh69hzii"))))
(build-system go-build-system)
(arguments
- `(#:import-path "golang.org/x/sys"
- ;; Source-only package
- #:tests? #f
- #:phases
- (modify-phases %standard-phases
- (delete 'build))))
+ (list
+ #:import-path "golang.org/x/sys"
+ ;; Source-only package
+ #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; Source-only package
+ (delete 'build))))
(synopsis "Go support for low-level system interaction")
(description "This package provides supplemental libraries offering Go
support for low-level interaction with the operating system.")
diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 315c9a7554..fd8fb25da1 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -310,6 +310,43 @@ more.")
currently does not do much, but it might in the future.")
(license license:gpl3+)))
+(define-public guile-openai
+ (let ((commit "252f2d5660bb546015d18c60be96d3cf60c4dcfa")
+ (revision "1"))
+ (package
+ (name "guile-openai")
+ (version (git-version "0.1" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://gitlab.com/flatwhatson/guile-openai")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1qv0kr30d1x7ap1b0h03gl5pzp20xw4qd6b3l5v4iz4ka8qna9gi"))))
+ (build-system guile-build-system)
+ (arguments
+ (list
+ #:scheme-file-regexp
+ #~(lambda (file info)
+ (let ((name (basename file)))
+ (and (string-suffix? ".scm" name)
+ (not (string=? (basename file) "guix.scm")))))))
+ (inputs (list guile-3.0-latest))
+ (propagated-inputs
+ (list guile-colorized
+ guile-gnutls
+ guile-json-4
+ guile-picture-language))
+ (home-page "https://gitlab.com/flatwhatson/guile-openai")
+ (synopsis "Guile implementation of the OpenAI API")
+ (description
+ "Guile OpenAI is an implementation of the OpenAI API in Guile Scheme,
+providing a convenient interface for interactive programming with their AI
+models.")
+ (license license:agpl3+))))
+
;; There are no releases yet of this package.
(define-public guile-pipe
(let ((commit "0746ec38d19d844dff0c6f62f209b2b6c8d8872e")
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index 2fd9b711ce..b6db506140 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -398,7 +398,9 @@ without requiring the source code to be rewritten.")
version ".tar.xz"))
(sha256
(base32
- "03bm1mnfc9kkg2ls942a0js7bxrdzmcffgrgg6anwdmjfan2a9hs"))))
+ "03bm1mnfc9kkg2ls942a0js7bxrdzmcffgrgg6anwdmjfan2a9hs"))
+ (patches (search-patches
+ "guile-fix-invalid-unicode-handling.patch"))))
(arguments
(substitute-keyword-arguments (package-arguments guile-3.0)
;; Guile 3.0.9 is bit-reproducible when built in parallel, thanks to
diff --git a/gnu/packages/high-availability.scm b/gnu/packages/high-availability.scm
index 108ea553ef..ad6db537e5 100644
--- a/gnu/packages/high-availability.scm
+++ b/gnu/packages/high-availability.scm
@@ -1,4 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
+;;; Copyright © 2020, 2022 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2022 Sharlatan Hellseher <sharlatanus@gmail.com>
;;;
;;; This file is part of GNU Guix.
@@ -34,8 +36,10 @@
#:use-module (gnu packages glib)
#:use-module (gnu packages hardware)
#:use-module (gnu packages linux)
+ #:use-module (gnu packages lua)
#:use-module (gnu packages networking)
#:use-module (gnu packages nss)
+ #:use-module (gnu packages pcre)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
#:use-module (gnu packages rsync)
@@ -45,13 +49,60 @@
#:use-module (gnu packages xml)
#:use-module (gnu packages)
#:use-module (guix build-system gnu)
- #:use-module (guix gexp)
#:use-module (guix download)
+ #:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix packages)
+ #:use-module (guix utils)
#:use-module ((guix licenses)
#:prefix license:))
+(define-public haproxy
+ (package
+ (name "haproxy")
+ (version "2.7.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://www.haproxy.org/download/"
+ (version-major+minor version)
+ "/src/haproxy-" version ".tar.gz"))
+ (sha256
+ (base32 "00j5lwvrf8lgfid3108gclxbd46v3mnd4lh0lw4l0nn3f0rf9ip2"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list
+ #:tests? #f ; there are only regression tests, using varnishtest
+ #:make-flags
+ #~(list "LUA_LIB_NAME=lua"
+ "TARGET=linux-glibc"
+ "USE_LUA=1"
+ "USE_OPENSSL=1"
+ "USE_PCRE2=1"
+ "USE_PCRE2_JIT=1"
+ "USE_PROMEX=1"
+ "USE_ZLIB=1"
+ (string-append "CC=" #$(cc-for-target))
+ (string-append "DOCDIR=" #$output "/share/" #$name)
+ (string-append "LUA_INC=" #$(this-package-input "lua") "/include")
+ (string-append "LUA_LIB=" #$(this-package-input "lua") "/lib")
+ (string-append "PREFIX=" #$output))
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'configure))))
+ (inputs
+ (list lua openssl pcre2 zlib))
+ (home-page "https://www.haproxy.org/")
+ (synopsis "Reliable, high performance TCP/HTTP load balancer")
+ (description "HAProxy offers @acronym{HA, high availability}, load
+balancing, and proxying for TCP and HTTP-based applications. It is particularly
+suited to Web sites crawling under very high loads while needing persistence or
+Layer 7 processing. Supporting tens of thousands of connections is clearly
+realistic with today's hardware.")
+ (license (list license:gpl2+
+ license:lgpl2.1
+ license:lgpl2.1+))))
+
(define-public libqb
(package
(name "libqb")
diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index 41ee0a8824..a0227c920c 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -690,7 +690,10 @@ things like:
@item structure from motion
@item augmented reality
@item machine learning
-@end itemize\n")
+@end itemize\n
+
+This package includes the Python bindings for OpenCV, which are also known as
+the OpenCV-Python library.")
(home-page "https://opencv.org/")
(license license:bsd-3)))
diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm
index 0758cf5b27..f7719600a7 100644
--- a/gnu/packages/image-viewers.scm
+++ b/gnu/packages/image-viewers.scm
@@ -24,7 +24,7 @@
;;; Copyright © 2021 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2021 dissent <disseminatedissent@protonmail.com>
;;; Copyright © 2022 Michael Rohleder <mike@rohleder.de>
-;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2022 Tomasz Jeneralczyk <tj@schwi.pl>
;;; Copyright © 2022 Cairn <cairn@pm.me>
;;;
@@ -67,6 +67,7 @@
#:use-module (gnu packages compression)
#:use-module (gnu packages curl)
#:use-module (gnu packages documentation)
+ #:use-module (gnu packages djvu)
#:use-module (gnu packages fontutils)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages gawk)
@@ -101,6 +102,7 @@
#:use-module (gnu packages upnp)
#:use-module (gnu packages version-control)
#:use-module (gnu packages video)
+ #:use-module (gnu packages vim)
#:use-module (gnu packages web)
#:use-module (gnu packages xdisorg)
#:use-module (gnu packages xml)
@@ -231,7 +233,7 @@ actions.")
(define-public geeqie
(package
(name "geeqie")
- (version "1.6")
+ (version "2.0.1")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -239,43 +241,31 @@ actions.")
(commit (string-append "v" version))))
(sha256
(base32
- "1i9yd8lddp6b9s9vjjjzbpqj4bvwidxc6kiba6vdrk7dda5akyky"))
- (file-name (git-file-name name version))
- (patches (search-patches "geeqie-clutter.patch"))))
- (build-system gnu-build-system)
- (arguments
- ;; Enable support for a "map" pane using GPS data.
- `(#:configure-flags '("CFLAGS=-O2 -g -fcommon"
- "--enable-map"
- "--enable-gtk3")
- #:phases (modify-phases %standard-phases
- (add-after 'unpack 'correctly-locate-aux-scripts
- ;; The git checkout has symlinks under the auxdir
- ;; directory pointing to /usr/share/automake-1.16/depcomp
- ;; and /usr/share/automake-1.16/install-sh, which causes
- ;; the configure phase to fail (see:
- ;; https://github.com/BestImageViewer/geeqie/issues/936).
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((automake (assoc-ref inputs "automake")))
- (delete-file "auxdir/depcomp")
- (symlink (car (find-files automake "depcomp"))
- "auxdir/depcomp")
- (delete-file "auxdir/install-sh")
- (symlink (car (find-files automake "install-sh"))
- "auxdir/install-sh")))))))
+ "199s0f3khnycr5vhk2ww3xnnasz7dzwxdl89pxjadq6rpgprfqyh"))
+ (file-name (git-file-name name version))))
+ (build-system meson-build-system)
(inputs
- (list clutter
- libchamplain
- lcms
+ (list djvulibre
exiv2
+ ffmpegthumbnailer
+ gtk+
+ gspell
+ lcms
+ libarchive
+ libchamplain
+ libheif
+ libjpeg
libpng
- gtk+))
+ libraw
+ libtiff
+ poppler
+ libwebp))
(native-inputs
- (list autoconf
- automake
- `(,glib "bin") ; glib-gettextize
+ (list `(,glib "bin") ; glib-gettextize
intltool
- pkg-config))
+ pkg-config
+ xxd
+ yelp-tools))
(home-page "https://www.geeqie.org/")
(synopsis "Lightweight GTK+ based image viewer")
(description
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 630314ac2a..2bd4650e52 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -70,6 +70,7 @@
;;; Copyright © 2022 Stefan <stefan-guix@vodafonemail.de>
;;; Copyright © 2022, 2023 Demis Balbach <db@minikn.xyz>
;;; Copyright © 2023 Bruno Victal <mirai@makinata.eu>
+;;; Copyright © 2023 Yovan Naumovski <yovan@gorski.stream>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -482,7 +483,7 @@ corresponding UPSTREAM-SOURCE (an origin), using the given DEBLOB-SCRIPTS."
;; The current "stable" kernels. That is, the most recently released major
;; versions that are still supported upstream.
-(define-public linux-libre-6.2-version "6.2.7")
+(define-public linux-libre-6.2-version "6.2.8")
(define-public linux-libre-6.2-gnu-revision "gnu")
(define deblob-scripts-6.2
(linux-libre-deblob-scripts
@@ -492,12 +493,12 @@ corresponding UPSTREAM-SOURCE (an origin), using the given DEBLOB-SCRIPTS."
(base32 "0ir5vvbdh6dly5ld8mfp7285g8k88w5bb32hj4wmgyqsbfqc6rf2")))
(define-public linux-libre-6.2-pristine-source
(let ((version linux-libre-6.2-version)
- (hash (base32 "138dpmj8qr5fcji99kmi3sj34ah21bgqgzsz2lbhn37v059100s3")))
+ (hash (base32 "0rgn8k9rhk819bazcaz7fbk5ba1hph02izqrw06ag0rgsj3svl7y")))
(make-linux-libre-source version
(%upstream-linux-source version hash)
deblob-scripts-6.2)))
-(define-public linux-libre-6.1-version "6.1.20")
+(define-public linux-libre-6.1-version "6.1.21")
(define-public linux-libre-6.1-gnu-revision "gnu")
(define deblob-scripts-6.1
(linux-libre-deblob-scripts
@@ -507,7 +508,7 @@ corresponding UPSTREAM-SOURCE (an origin), using the given DEBLOB-SCRIPTS."
(base32 "0cchdhjra74zanyk14brv2l2dvxpg8dn58rn477lgfb44mcnhq33")))
(define-public linux-libre-6.1-pristine-source
(let ((version linux-libre-6.1-version)
- (hash (base32 "1w1iy1i3bpzrs5rhvqbn2awxv5qqgng9n7jd5js66g0sq3l2sckn")))
+ (hash (base32 "0fnr2pw4pi0vnkpv8hfipya09cgdz6ghks7p6vdl2d71dawb2g5k")))
(make-linux-libre-source version
(%upstream-linux-source version hash)
deblob-scripts-6.1)))
@@ -515,7 +516,7 @@ corresponding UPSTREAM-SOURCE (an origin), using the given DEBLOB-SCRIPTS."
;; The "longterm" kernels — the older releases with long-term upstream support.
;; Here are the support timelines:
;; <https://www.kernel.org/category/releases.html>
-(define-public linux-libre-5.15-version "5.15.103")
+(define-public linux-libre-5.15-version "5.15.104")
(define-public linux-libre-5.15-gnu-revision "gnu")
(define deblob-scripts-5.15
(linux-libre-deblob-scripts
@@ -525,12 +526,12 @@ corresponding UPSTREAM-SOURCE (an origin), using the given DEBLOB-SCRIPTS."
(base32 "03hwhwbcicwyx5i30d6m715kwgrxz4h21xhk55wnawlk8zhx3r35")))
(define-public linux-libre-5.15-pristine-source
(let ((version linux-libre-5.15-version)
- (hash (base32 "01fpipy8skmp4dyxgk8fk9k6hc0w0gvk7mm8f8pm7jhwcf0vlxh8")))
+ (hash (base32 "0m3bscml2mvafbj5k9a3qa8akfxms8wfpzsr687lfblr17735ibi")))
(make-linux-libre-source version
(%upstream-linux-source version hash)
deblob-scripts-5.15)))
-(define-public linux-libre-5.10-version "5.10.175")
+(define-public linux-libre-5.10-version "5.10.176")
(define-public linux-libre-5.10-gnu-revision "gnu1")
(define deblob-scripts-5.10
(linux-libre-deblob-scripts
@@ -540,12 +541,12 @@ corresponding UPSTREAM-SOURCE (an origin), using the given DEBLOB-SCRIPTS."
(base32 "1g4vabfswxzf9ahxc06k2ffksf84kcr2csx4m5kx680w0jqqnk80")))
(define-public linux-libre-5.10-pristine-source
(let ((version linux-libre-5.10-version)
- (hash (base32 "1kkv63v5lc0ahkl8sjmwhqxahmwmbxcbf4mfcmkf6d7j50p5cxz2")))
+ (hash (base32 "14zpdrrrpgxx44nxjn0rifrchnmsvvpkzpm1n82kw5q4p9h2q1yf")))
(make-linux-libre-source version
(%upstream-linux-source version hash)
deblob-scripts-5.10)))
-(define-public linux-libre-5.4-version "5.4.237")
+(define-public linux-libre-5.4-version "5.4.238")
(define-public linux-libre-5.4-gnu-revision "gnu1")
(define deblob-scripts-5.4
(linux-libre-deblob-scripts
@@ -555,12 +556,12 @@ corresponding UPSTREAM-SOURCE (an origin), using the given DEBLOB-SCRIPTS."
(base32 "1d6as1yk9svysh07hdybs8glvn8s9f8gwlbjl7f9m920pdam2r60")))
(define-public linux-libre-5.4-pristine-source
(let ((version linux-libre-5.4-version)
- (hash (base32 "09smq8jsbpqfh135snljack2wj41anx8f8i0lmjcqcq5zzhgw25p")))
+ (hash (base32 "07x9ibcshsm451qcpawv3l0z7g8w8jg79h6dfdmbm3jrhpdb58kh")))
(make-linux-libre-source version
(%upstream-linux-source version hash)
deblob-scripts-5.4)))
-(define-public linux-libre-4.19-version "4.19.278")
+(define-public linux-libre-4.19-version "4.19.279")
(define-public linux-libre-4.19-gnu-revision "gnu1")
(define deblob-scripts-4.19
(linux-libre-deblob-scripts
@@ -570,12 +571,12 @@ corresponding UPSTREAM-SOURCE (an origin), using the given DEBLOB-SCRIPTS."
(base32 "1q0fgpbdwc21wj9wnjjb49dp84ch6ymd5na3iaabadwjs2nmb6bd")))
(define-public linux-libre-4.19-pristine-source
(let ((version linux-libre-4.19-version)
- (hash (base32 "0miyadgnd52cgw3bgpmx66kr1pgxh14b2f52fasy57b6wysv0lnv")))
+ (hash (base32 "104qkyflkfkp8iyshpirb9q708vvsgfbxfwgl0dnas3k7nyc6v3k")))
(make-linux-libre-source version
(%upstream-linux-source version hash)
deblob-scripts-4.19)))
-(define-public linux-libre-4.14-version "4.14.310")
+(define-public linux-libre-4.14-version "4.14.311")
(define-public linux-libre-4.14-gnu-revision "gnu1")
(define deblob-scripts-4.14
(linux-libre-deblob-scripts
@@ -585,7 +586,7 @@ corresponding UPSTREAM-SOURCE (an origin), using the given DEBLOB-SCRIPTS."
(base32 "1ccggm19nl7pdcxmsm08fkqy8phz8rqfmww5ypizibdmnrmpn2v9")))
(define-public linux-libre-4.14-pristine-source
(let ((version linux-libre-4.14-version)
- (hash (base32 "0r91f3jj3y0cca4sfs0xa12lbrc62q2yzgval5ainwr74bk7dwlb")))
+ (hash (base32 "1mbwrgjz575qxg4gwi2fxc94kprmiblwap3jix0mj4887zllqgw0")))
(make-linux-libre-source version
(%upstream-linux-source version hash)
deblob-scripts-4.14)))
@@ -2615,7 +2616,7 @@ Zerofree requires the file system to be unmounted or mounted read-only.")
(define-public strace
(package
(name "strace")
- (version "5.18")
+ (version "6.2")
(home-page "https://strace.io")
(source (origin
(method url-fetch)
@@ -2623,7 +2624,7 @@ Zerofree requires the file system to be unmounted or mounted read-only.")
"/strace-" version ".tar.xz"))
(sha256
(base32
- "11qi7pdm0ldycsg9qhsa50icm219mmvy16yw1ih3s9f9kakkwab0"))
+ "1s3pj6a6xx1p1w98ik03d8hc4xssl4ha4aa0039nhqj196j3hz8c"))
(patches (search-patches "strace-readlink-tests.patch"))))
(build-system gnu-build-system)
(arguments
diff --git a/gnu/packages/lisp-check.scm b/gnu/packages/lisp-check.scm
index c6d5c33728..1b4d80de00 100644
--- a/gnu/packages/lisp-check.scm
+++ b/gnu/packages/lisp-check.scm
@@ -402,7 +402,7 @@ easy to use so that you can quickly start testing.")
(synopsis "Interactive test framework for Common Lisp")
(description
"Confidence is a test framework for Common Lisp that focuses on
-simplicty. It avoids bureaucracy and makes it easy to work interactively,
+simplicity. It avoids bureaucracy and makes it easy to work interactively,
without a complicated setup, and with explicit functions and decisions.")
(license license:expat))))
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 20ea82cd6f..e0025b784c 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -192,6 +192,54 @@ portable between implementations.")
(define-public ecl-alexandria
(sbcl-package->ecl-package sbcl-alexandria))
+(define-public sbcl-reader
+ (package
+ (name "sbcl-reader")
+ (version "0.10.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/digikar99/reader")
+ (commit (string-append "v" version))))
+ (sha256
+ (base32 "0pbv6w0d8d4qmfkdsz2rk21bp1las9r7pyvpmd95qjz7kpxrirl7"))
+ (file-name (git-file-name "cl-reader" version))))
+ (build-system asdf-build-system/sbcl)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "reader.lisp"
+ (("echo")
+ (search-input-file inputs "/bin/echo"))))))))
+ (inputs
+ (list coreutils ; Needed for call to echo.
+ sbcl-alexandria
+ sbcl-fiveam ; Tests are written directly in the source files.
+ sbcl-hash-set
+ sbcl-iterate
+ sbcl-split-sequence
+ sbcl-trivial-types))
+ (synopsis "Reader macros for common objects and data structures")
+ (description "This package provides a utility library intended
+at providing configurable reader macros for common tasks such as
+accessors, hash-tables, sets, uiop:run-program, arrays and a few others.")
+ (home-page "https://github.com/digikar99/reader/")
+ (license license:expat)))
+
+(define-public cl-reader
+ (sbcl-package->cl-source-package sbcl-reader))
+
+(define-public ecl-reader
+ (package
+ (inherit (sbcl-package->ecl-package sbcl-reader))
+ (arguments
+ ;; TODO: Tests fail on call to coreutils echo for ecl.
+ `(#:tests? #f))))
+
(define-public sbcl-stdutils
(let ((commit "4a4e5a4036b815318282da5dee2a22825369137b")
(revision "0"))
@@ -259,6 +307,37 @@ text.")
(define-public ecl-langutils
(sbcl-package->ecl-package sbcl-langutils))
+(define-public sbcl-hash-set
+ (let ((commit "6feb20de457f14e24a83815be1097aa02cca5986")
+ (revision "0"))
+ (package
+ (name "sbcl-hash-set")
+ (version (git-version "0.0.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/samebchase/hash-set")
+ (commit commit)))
+ (file-name (git-file-name "cl-hash-set" version))
+ (sha256
+ (base32 "0a966y9yfarhmki4wwzg371ziaygnp13yc6r13w9zz327fkhz8na"))))
+ (build-system asdf-build-system/sbcl)
+ (native-inputs (list sbcl-fiveam))
+ (inputs (list sbcl-alexandria))
+ (home-page "https://github.com/samebchase/hash-set/")
+ (synopsis "Implementation of a hash-set")
+ (description "This package provides an implementation of the
+hash-set data structure. It has constant time lookup, insertion and
+deletion.")
+ (license license:unlicense))))
+
+(define-public cl-hash-set
+ (sbcl-package->cl-source-package sbcl-hash-set))
+
+(define-public ecl-hash-set
+ (sbcl-package->ecl-package sbcl-hash-set))
+
(define-public sbcl-duologue
(let ((commit "ea1ada244a81da65f85b548823c9a6d7c9c145e1")
(revision "0"))
@@ -5739,6 +5818,40 @@ the format used by the popular compression tool bzip2.")
(define-public ecl-chipz
(sbcl-package->ecl-package sbcl-chipz))
+(define-public sbcl-cl-tls
+ (let ((commit "2ab4fc3ae7e79e451126a9bb6bc38ca2cd2cb4ba")
+ (revision "0"))
+ (package
+ (name "sbcl-cl-tls")
+ (version (git-version "0.0.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/shrdlu68/cl-tls")
+ (commit commit)))
+ (file-name (git-file-name "cl-tls" version))
+ (sha256
+ (base32 "1j6gwv21ibkk6xd1xxm54wgwp09dzqg60b8z72hivpnq8gwm0ba7"))))
+ (build-system asdf-build-system/sbcl)
+ (inputs
+ (list sbcl-alexandria
+ sbcl-babel
+ sbcl-cl-base64
+ sbcl-fast-io
+ sbcl-ironclad))
+ (home-page "https://github.com/shrdlu68/cl-tls")
+ (synopsis "Implementation of Transport Layer Security Protocols")
+ (description "This package provides prototype Common Lisp
+implementations of TLS, RFC5246, ASN.1, x{501,509}, and PKCS{1,3,5,8}.")
+ (license license:bsd-3))))
+
+(define-public cl-tls
+ (sbcl-package->cl-source-package sbcl-cl-tls))
+
+(define-public ecl-cl-tls
+ (sbcl-package->ecl-package sbcl-cl-tls))
+
(define-public sbcl-dns-client
(let ((commit "9f252e9c2bb61c57a6cd367e21ad366b0d3e87e0")
(revision "0"))
@@ -5774,6 +5887,49 @@ DNS records.")
(define-public cl-dns-client
(sbcl-package->cl-source-package sbcl-dns-client))
+(define-public sbcl-lisp-pay
+ (let ((commit "c4de776f0a284709931ff3674160ced3b41bd000")
+ (revision "0"))
+ (package
+ (name "sbcl-lisp-pay")
+ (version (git-version "0.0.5" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/K1D77A/lisp-pay")
+ (commit commit)))
+ (file-name (git-file-name "cl-lisp-pay" version))
+ (sha256
+ (base32 "09r6qy4fipriqa0d6g9qm6dq992lr58vh24g5j0adm19i5fnjavh"))))
+ (build-system asdf-build-system/sbcl)
+ (inputs
+ (list sbcl-alexandria
+ sbcl-babel
+ sbcl-cl-base64
+ sbcl-cl-str
+ sbcl-cl-tls
+ sbcl-closer-mop
+ sbcl-dexador
+ sbcl-hu.dwim.defclass-star
+ sbcl-hunchentoot
+ sbcl-ironclad
+ sbcl-jonathan
+ sbcl-lack
+ sbcl-ningle
+ sbcl-shasht))
+ (home-page "https://github.com/K1D77A/lisp-pay/")
+ (synopsis "Wrappers over multiple Payment Processor APIs")
+ (description "This library provides payment API wrappers over
+BTCPay, Paypal, and Stripe.")
+ (license license:expat))))
+
+(define-public cl-lisp-pay
+ (sbcl-package->cl-source-package sbcl-lisp-pay))
+
+(define-public ecl-lisp-pay
+ (sbcl-package->ecl-package sbcl-lisp-pay))
+
(define-public sbcl-drakma
(package
(name "sbcl-drakma")
@@ -5864,6 +6020,46 @@ connections (keep-alive), and SSL.")
;; Tests fail on ECL with 'Socket error in "socket": EINVAL'.
'(#:tests? #f))))
+(define-public sbcl-lunamech-matrix-api
+ (let ((commit "aa54a820149584c237b03d500ad83397fe25dc92")
+ (revision "0"))
+ (package
+ (name "sbcl-lunamech-matrix-api")
+ (version (git-version "0.0.2" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/K1D77A/lunamech-matrix-api")
+ (commit commit)))
+ (file-name (git-file-name "cl-lunamech-matrix-api" version))
+ (sha256
+ (base32 "0a664qq4m5gk4iv5ck63gmsl3218jhjsalawklj56wn2pw0cf8a0"))))
+ (build-system asdf-build-system/sbcl)
+ (inputs
+ (list sbcl-cl-json
+ sbcl-cl-str
+ sbcl-closer-mop
+ sbcl-dexador
+ sbcl-do-urlencode
+ sbcl-drakma
+ sbcl-jonathan
+ sbcl-plump
+ sbcl-quri
+ sbcl-reader
+ sbcl-shasht))
+ (home-page "https://github.com/K1D77A/lunamech-matrix-api/")
+ (synopsis "Implementation of the Matrix API")
+ (description "This package provides an implementation of the Matrix
+API for Common Lisp.")
+ (license license:expat))))
+
+(define-public cl-lunamech-matrix-api
+ (sbcl-package->cl-source-package sbcl-lunamech-matrix-api))
+
+(define-public ecl-lunamech-matrix-api
+ (sbcl-package->ecl-package sbcl-lunamech-matrix-api))
+
(define-public sbcl-trivial-types
(package
(name "sbcl-trivial-types")
@@ -23763,6 +23959,37 @@ Vernacular builds on Overlord and is inspired by Racket.")
(define-public cl-vernacular
(sbcl-package->cl-source-package sbcl-vernacular))
+(define-public sbcl-osc
+ (let ((commit "9f0a9d3da310a3a0f654f48af0203816f3f371ad")
+ (revision "0"))
+ (package
+ (name "sbcl-osc")
+ (version (git-version "0.7" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/zzkt/osc")
+ (commit commit)))
+ (file-name (git-file-name "cl-osc" version))
+ (sha256
+ (base32 "0gh29zcl9pmy3xlmwzpf9www2z06ah6b4jk06sj2cvxbc15nblqa"))))
+ (build-system asdf-build-system/sbcl)
+ (inputs (list sbcl-usocket))
+ (synopsis "Implementation of the Open Sound Control protocol")
+ (description "This package provides a common lisp implementation
+of the Open Sound Control Protocol aka OSC. The code should be close
+to the ansi standard, and does not rely on any external code/ffi/etc+
+to do the basic encoding and decoding of packets.")
+ (home-page "https://github.com/zzkt/osc/")
+ (license (list license:gpl3 license:llgpl)))))
+
+(define-public cl-osc
+ (sbcl-package->cl-source-package sbcl-osc))
+
+(define-public ecl-osc
+ (sbcl-package->ecl-package sbcl-osc))
+
(define-public sbcl-cmn
(package
(name "sbcl-cmn")
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 6ef4c6fdab..9f3dc2c97a 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -1168,16 +1168,15 @@ security functionality including PGP, S/MIME, SSH, and SSL.")
(define-public mu
(package
(name "mu")
- (version "1.8.13")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/djcb/mu")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0y4f5p7pwmaj8733rjzg29038dw33057qlsbsq2wapvp24wcjymr"))))
+ (version "1.10.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/djcb/mu/releases/download/v"
+ version "/mu-" version ".tar.xz"))
+ (sha256
+ (base32
+ "0fmcxypvl77k7si5g3c0pak13hy2ilz8a6567m7p2apjr33j223z"))))
(build-system meson-build-system)
(native-inputs
(list pkg-config
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 1853c77a14..95bd5a6578 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -1235,14 +1235,14 @@ in the terminal or with an external viewer.")
(define-public gnuplot
(package
(name "gnuplot")
- (version "5.4.4")
+ (version "5.4.6")
(source (origin
(method url-fetch)
(uri (string-append "mirror://sourceforge/gnuplot/gnuplot/"
version "/gnuplot-"
version ".tar.gz"))
(sha256
- (base32 "00h97y8njhvfjbdvc0njw0znxbrlfynd1iazn8w3anvzhsvh08rp"))))
+ (base32 "06bly8cpqjdf744jg7yrgba9rdcm3gl4zf63y3c69v80ha8jgz02"))))
(build-system gnu-build-system)
(native-inputs
(list pkg-config texlive-tiny))
@@ -3041,47 +3041,47 @@ can solve two kinds of problems:
(define-public octave-cli
(package
(name "octave-cli")
- (version "7.3.0")
+ (version "8.1.0")
(source
(origin
- (method url-fetch)
- (uri (string-append "mirror://gnu/octave/octave-"
- version ".tar.xz"))
- (sha256
- (base32
- "1wap9p9imxxqpnm27rxcvpjahk1wg440lzlygjb6iyncxdmfw255"))))
+ (method url-fetch)
+ (uri (string-append "mirror://gnu/octave/octave-"
+ version ".tar.xz"))
+ (sha256
+ (base32
+ "00lis18dsb13v9nvz0z4cs7v4y634jc0vb04lxfw9pshwriikglv"))))
(build-system gnu-build-system)
(inputs
- `(("alsa-lib" ,alsa-lib)
- ("arpack" ,arpack-ng)
- ("bdb" ,bdb)
- ("curl" ,curl)
- ("fftw" ,fftw)
- ("fftwf" ,fftwf)
- ("fltk" ,fltk)
- ("fontconfig" ,fontconfig)
- ("freetype" ,freetype)
- ("gl2ps" ,gl2ps)
- ("glpk" ,glpk)
- ("glu" ,glu)
- ("graphicsmagick" ,graphicsmagick)
-
- ;; TODO: libjpeg-turbo is indirectly required through libtiff. In
- ;; the next rebuild cycle, add an absolute reference for -ljpeg in
- ;; libtiff.la instead of having to provide it here.
- ("libjpeg" ,libjpeg-turbo)
+ (list alsa-lib
+ arpack-ng
+ bdb
+ curl
+ fftw
+ fftwf
+ fltk
+ fontconfig
+ freetype
+ gl2ps
+ glpk
+ glu
+ graphicsmagick
- ("hdf5" ,hdf5)
- ("lapack" ,lapack)
- ("libsndfile" ,libsndfile)
- ("libxft" ,libxft)
- ("mesa" ,mesa)
- ("pcre" ,pcre)
- ("portaudio" ,portaudio)
- ("qhull" ,qhull)
- ("readline" ,readline)
- ("suitesparse" ,suitesparse)
- ("zlib" ,zlib)))
+ ;; TODO: libjpeg-turbo is indirectly required through libtiff. In
+ ;; the next rebuild cycle, add an absolute reference for -ljpeg in
+ ;; libtiff.la instead of having to provide it here.
+ libjpeg-turbo
+
+ hdf5
+ lapack
+ libsndfile
+ libxft
+ mesa
+ pcre
+ portaudio
+ qhull
+ readline
+ suitesparse
+ zlib))
(native-inputs
(list gfortran
pkg-config
@@ -3121,8 +3121,7 @@ can solve two kinds of problems:
(substitute* "libinterp/corefcn/help.h"
(("\"makeinfo\"")
(string-append
- "\"" (assoc-ref inputs "texinfo") "/bin/makeinfo\"")))
- #t)))))
+ "\"" (assoc-ref inputs "texinfo") "/bin/makeinfo\""))))))))
(home-page "https://www.gnu.org/software/octave/")
(synopsis "High-level language for numerical computation (no GUI)")
(description "GNU Octave is a high-level interpreted language that is
diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 5ba7d166c0..f6aa29fc8e 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -38,6 +38,7 @@
;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2022 Giovanni Biscuolo <g@xelera.eu>
;;; Copyright © 2023 Giacomo Leidi <goodoldpaul@autistici.org>
+;;; Copyright © 2023 Yovan Naumovski <yovan@gorski.stream>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1321,7 +1322,7 @@ Encryption to Gajim.")
(define-public dino
(package
(name "dino")
- (version "0.4.0")
+ (version "0.4.2")
(source
(origin
(method url-fetch)
@@ -1329,7 +1330,7 @@ Encryption to Gajim.")
(string-append "https://github.com/dino/dino/releases/download/v"
version "/dino-" version ".tar.gz"))
(sha256
- (base32 "115p7mjk0q68nvv8asrm6hsv0dzsz7hy2bnvhwhxmcfbilr8fq68"))))
+ (base32 "1vbyrnivibsn4jzmfb6sfq5fxhb0xh1cnhgcmg1rafq751q55cg1"))))
(build-system cmake-build-system)
(outputs '("out" "debug"))
(arguments
@@ -2842,7 +2843,7 @@ as well as on desktop platforms. It's based on libpurple and ModemManager.")
(define-public mosquitto
(package
(name "mosquitto")
- (version "1.6.12")
+ (version "2.0.15")
(source
(origin
(method url-fetch)
@@ -2850,10 +2851,10 @@ as well as on desktop platforms. It's based on libpurple and ModemManager.")
version ".tar.gz"))
(sha256
(base32
- "1yq7y329baa1ly488rw125c3mvsnsa7kjkik602xv1xpkz8p73al"))))
+ "1ils0ckxz86gvr37k2gfl4q9gs12625dhhb7i6lcg49z5v9v2da7"))))
(build-system cmake-build-system)
(inputs
- (list openssl))
+ (list openssl libxslt))
(synopsis "Message broker")
(description "This package provides Eclipse Mosquitto, a message broker
that implements the MQTT protocol versions 5.0, 3.1.1 and 3.1. Mosquitto
diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm
index 6b7c78c71b..ef45511546 100644
--- a/gnu/packages/mpd.scm
+++ b/gnu/packages/mpd.scm
@@ -600,7 +600,7 @@ mpdevil loads all tags and covers on demand.")
(define-public mympd
(package
(name "mympd")
- (version "10.2.4")
+ (version "10.2.6")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -609,7 +609,7 @@ mpdevil loads all tags and covers on demand.")
(file-name (git-file-name name version))
(sha256
(base32
- "0544vx9x103394mz2x92ycfj5lh59xrzcvagi4q0jb9b1hh44s6p"))))
+ "1adi1pdygj7wlfi6k3978b6ny2cziai4f761a61j9vxa2ywf7wbb"))))
(build-system cmake-build-system)
(arguments
(list #:tests? #f)) ; no test target
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index ecb1d16615..e7ad1c5599 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -30,7 +30,7 @@
;;; Copyright © 2019 Vasile Dumitrascu <va511e@yahoo.com>
;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2019 Timotej Lazar <timotej.lazar@araneo.si>
-;;; Copyright © 2019, 2020, 2021 Brice Waegeneire <brice@waegenei.re>
+;;; Copyright © 2019, 2021 Brice Waegeneire <brice@waegenei.re>
;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
;;; Copyright © 2019, 2020 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
;;; Copyright © 2019 Daniel Schaefer <git@danielschaefer.me>
@@ -58,6 +58,7 @@
;;; Copyright © 2023 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2023 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; Copyright © 2023 Bruno Victal <mirai@makinata.eu>
+;;; Copyright © 2023 Yovan Naumovski <yovan@gorski.stream>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -200,7 +201,7 @@ runs on top of IP or UDP, and supports both v4 and v6 versions.")
(define-public arp-scan
(package
(name "arp-scan")
- (version "1.9.8")
+ (version "1.10.0")
(source
(origin
(method git-fetch)
@@ -210,7 +211,7 @@ runs on top of IP or UDP, and supports both v4 and v6 versions.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "18pck3hi7caykpkry5ri16w4w8m11g8gvh3qx5rhwsc6d9xa2a6d"))))
+ (base32 "1d603by2v7gj6bdxn1d23l425q115dk5qfk3ywbj6wbsjysqhbq5"))))
(build-system gnu-build-system)
(inputs
(list libpcap))
@@ -2912,6 +2913,39 @@ networks.")
speedtest.net.")
(license license:asl2.0)))
+(define-public atftp
+ (package
+ (name "atftp")
+ (version "0.8.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://git.code.sf.net/p/atftp/code")
+ (commit (string-append "v" version))))
+ (sha256
+ (base32
+ "019qrh2wpvr577ksvs3s82q6kiqm5i6869aj7qba326b59lhkxrc"))
+ (file-name (git-file-name name version))))
+ (build-system gnu-build-system)
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'autoreconf
+ (lambda _
+ (invoke "autoreconf" "-vif"))))))
+ (native-inputs (list autoconf automake perl pkg-config))
+ (inputs (list pcre2 procps readline tcp-wrappers))
+ (home-page "https://sourceforge.net/projects/atftp/")
+ (synopsis "Advanced TFTP server and client")
+ (description
+ "This package provides a multi-threaded TFTP server that implements all
+options, including all extensions, as specified in RFC 1350, RFC 2090, RFC
+2347, RFC 2348, RFC 2349 and RFC7440. Atftpd also supports a multicast
+protocol known as mtftp, which was defined in the PXE specification.
+
+The server is socket activated by default but supports being started from
+@command{inetd} as well as in daemon mode.")
+ (license license:gpl2+)))
+
(define-public tftp-hpa
(package
(name "tftp-hpa")
@@ -4236,46 +4270,6 @@ cables.")
"file://COPYING.slirpvde"
"See COPYING.slirpvde in the distribution."))))))
-(define-public haproxy
- (package
- (name "haproxy")
- (version "2.1.7")
- (source (origin
- (method url-fetch)
- (uri (string-append "https://www.haproxy.org/download/"
- (version-major+minor version)
- "/src/haproxy-" version ".tar.gz"))
- (sha256
- (base32
- "0fd3c1znid5a9w3gcf77b85hm2a2558w9s02c4b7xzkmivqnqbir"))))
- (build-system gnu-build-system)
- (arguments
- `(#:make-flags
- (let* ((out (assoc-ref %outputs "out")))
- (list (string-append "PREFIX=" out)
- (string-append "DOCDIR=" out "/share/" ,name)
- "TARGET=linux-glibc"
- "USE_LUA=1"
- "USE_OPENSSL=1"
- "USE_ZLIB=1"
- "USE_PCRE_2=1"))
- #:tests? #f ; there are only regression tests, using varnishtest
- #:phases
- (modify-phases %standard-phases
- (delete 'configure))))
- (inputs
- (list lua openssl pcre2 zlib))
- (home-page "https://www.haproxy.org/")
- (synopsis "Reliable, high performance TCP/HTTP load balancer")
- (description "HAProxy offers @acronym{HA, high availability}, load
-balancing, and proxying for TCP and HTTP-based applications. It is particularly
-suited to Web sites crawling under very high loads while needing persistence or
-Layer 7 processing. Supporting tens of thousands of connections is clearly
-realistic with today's hardware.")
- (license (list license:gpl2+
- license:lgpl2.1
- license:lgpl2.1+))))
-
(define-public lldpd
(package
(name "lldpd")
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index f494d1112b..3b4fcf108b 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1111,14 +1111,14 @@ concrete syntax of the language (Quotations, Syntax Extensions).")
(define-public hevea
(package
(name "hevea")
- (version "2.35")
+ (version "2.36")
(source (origin
(method url-fetch)
(uri (string-append "http://hevea.inria.fr/old/"
"hevea-" version ".tar.gz"))
(sha256
(base32
- "1jwydkb9ldb1sx815c364dxgr569f2rbbzgxbn2kanrybpdbm2gi"))))
+ "0j06f8gb8f5is34kzmzy3znb0jkm2qd2l6rcl5v5qa9af3bmjrsx"))))
(build-system gnu-build-system)
(inputs
(list ocaml))
diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm
index 562d228cf4..537d01e164 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -59,6 +59,7 @@
#:use-module (gnu packages crypto)
#:use-module (gnu packages curl)
#:use-module (gnu packages databases)
+ #:use-module (gnu packages debian)
#:use-module (gnu packages dejagnu)
#:use-module (gnu packages dbm)
#:use-module (gnu packages docbook)
@@ -87,6 +88,7 @@
#:use-module (gnu packages nettle)
#:use-module (gnu packages networking)
#:use-module (gnu packages ninja)
+ #:use-module (gnu packages node)
#:use-module (gnu packages nss)
#:use-module (gnu packages patchutils)
#:use-module (gnu packages perl)
@@ -98,6 +100,7 @@
#:use-module (gnu packages python-check)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
+ #:use-module (gnu packages ruby)
#:use-module (gnu packages serialization)
#:use-module (gnu packages sqlite)
#:use-module (gnu packages ssh)
@@ -117,6 +120,7 @@
#:use-module (guix build-system guile)
#:use-module (guix build-system meson)
#:use-module (guix build-system python)
+ #:use-module (guix build-system ruby)
#:use-module (guix build-system trivial)
#:use-module (guix download)
#:use-module (guix gexp)
@@ -1363,8 +1367,8 @@ environments.")
"0k9zkdyyzir3fvlbcfcqy17k28b51i20rpbjwlx2i1mwd2pw9cxc")))))))
(define-public guix-build-coordinator
- (let ((commit "804165f14ccf613b7d76b2bda83fbfd49019f7e4")
- (revision "74"))
+ (let ((commit "3c9354e1c0b0767e0121ecbd03abfe37c895e34b")
+ (revision "76"))
(package
(name "guix-build-coordinator")
(version (git-version "0" revision commit))
@@ -1375,7 +1379,7 @@ environments.")
(commit commit)))
(sha256
(base32
- "0qga8a7795cig211hya53qjvd2bxcpabpz8izc8zxrmz490wz24j"))
+ "19gc4ya56inxnjpf1br2sdva0k4jyc1jn5q84qdfpiwn1ryb0jjd"))
(file-name (string-append name "-" version "-checkout"))))
(build-system gnu-build-system)
(arguments
@@ -1414,7 +1418,7 @@ environments.")
"guile-gnutls"
,@(if (hurd-target?)
'()
- '("guile-fibers")))))
+ '("guile-fibers-next")))))
(wrap-program file
`("PATH" ":" prefix
(,bin
@@ -2005,6 +2009,88 @@ applications")
sandboxed desktop applications on GNU/Linux.")
(license license:lgpl2.1+)))
+(define-public fpm
+ (package
+ (name "fpm")
+ (version "1.15.1")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/jordansissel/fpm")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1m2zxf7wyk7psvm611yxs68hnwm0pyqilsmcq3x791hz7rvbg68w"))
+ (patches (search-patches "fpm-newer-clamp-fix.patch"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'patch-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* '("lib/fpm/util.rb"
+ "spec/fpm/util_spec.rb"
+ "spec/fpm/package/rpm_spec.rb")
+ (("\"/bin/sh\"")
+ (string-append "\"" (search-input-file inputs "bin/sh")
+ "\"")))))
+ (add-after 'extract-gemspec 'relax-requirements
+ (lambda _
+ (substitute* "fpm.gemspec"
+ (("\"clamp\", \"~> 1.0.0\"")
+ "\"clamp\", \">= 1.0.0\""))))
+ (add-after 'extract-gemspec 'disable-problematic-tests
+ ;; Disable some tests which are failing (see:
+ ;; https://github.com/jordansissel/fpm/issues/2000).
+ (lambda _
+ ;; There are 4 'NoMethodError' test failures in the
+ ;; command_spec suite, for unknown reasons.
+ (delete-file "spec/fpm/command_spec.rb")
+ (substitute* "spec/fpm/package_spec.rb"
+ (("@oldtmp = ENV\\[\"TMP\"]" all)
+ "skip('fails with guix')"))
+ (substitute* "spec/fpm/package/cpan_spec.rb"
+ ;; This test is marked as expected to fail (pending) when
+ ;; TRAVIS_OS_NAME is set, but passes with Guix; skip it.
+ (("it \"should unpack tarball containing" all)
+ (string-append "x" all)))
+ (substitute* "spec/fpm/package/gem_spec.rb"
+ ;; This test fails for unknown reason; perhaps a patched
+ ;; shebang.
+ (("it 'should not change the shebang'" all)
+ (string-append "x" all)))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; Set TRAVIS_OS_NAME to skip tests known to cause
+ ;; problems in minimal environments.
+ (setenv "TRAVIS_OS_NAME" "GNU Guix")
+ (invoke "rspec")))))))
+ (native-inputs
+ (list dpkg
+ libarchive
+ node
+ perl-app-cpanminus
+ python
+ ruby-rspec
+ squashfs-tools
+ zstd))
+ (inputs
+ (list bash-minimal
+ ruby-arr-pm
+ ruby-backports
+ ruby-cabin
+ ruby-clamp
+ ruby-pleaserun
+ ruby-rexml
+ ruby-stud))
+ (home-page "https://github.com/jordansissel/fpm/")
+ (synopsis "Package building and mangling tool")
+ (description "@command{fpm} is a command to convert directories, RPMs,
+Python eggs, Ruby gems, and more to RPMs, debs, Solaris packages and more.")
+ (license license:expat)))
+
(define-public akku
(package
(name "akku")
diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm
index 58b78f27f6..3c638e4ff9 100644
--- a/gnu/packages/parallel.scm
+++ b/gnu/packages/parallel.scm
@@ -64,14 +64,14 @@
(define-public parallel
(package
(name "parallel")
- (version "20230222")
+ (version "20230322")
(source
(origin
(method url-fetch)
(uri (string-append "mirror://gnu/parallel/parallel-"
version ".tar.bz2"))
(sha256
- (base32 "03lqkhh9pa9kyrpfkcd4jlwidnjj0bq2ykp7h2vxss3n17maadkd"))
+ (base32 "1jkv5c0ddnwbmx7ay3zxn14sxibhi4ff58waqm6rvg0cdnxb3iz5"))
(snippet
'(begin
(use-modules (guix build utils))
diff --git a/gnu/packages/patches/fpm-newer-clamp-fix.patch b/gnu/packages/patches/fpm-newer-clamp-fix.patch
new file mode 100644
index 0000000000..9fbb15ee29
--- /dev/null
+++ b/gnu/packages/patches/fpm-newer-clamp-fix.patch
@@ -0,0 +1,33 @@
+Retrieved from: https://github.com/jordansissel/fpm/pull/1561.patch
+
+From 956a218a7b35de08ea35da3b702ffdc716656b68 Mon Sep 17 00:00:00 2001
+From: Jordan Sissel <jls@semicomplete.com>
+Date: Mon, 15 Oct 2018 21:05:47 -0700
+Subject: [PATCH] Check if an option has a default value before we try to look
+ it up.
+
+This fixes fpm when used with clamp 1.3.0 or above.
+
+Fixes #1543
+---
+ lib/fpm/command.rb | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/lib/fpm/command.rb b/lib/fpm/command.rb
+index a204001e1..a99ddb627 100644
+--- a/lib/fpm/command.rb
++++ b/lib/fpm/command.rb
+@@ -394,7 +394,12 @@ def execute
+ set = proc do |object, attribute|
+ # if the package's attribute is currently nil *or* the flag setting for this
+ # attribute is non-default, use the value.
+- if object.send(attribute).nil? || send(attribute) != send("default_#{attribute}")
++
++ # Not all options have a default value, so we assume `nil` if there's no default. (#1543)
++ # In clamp >= 1.3.0, options without `:default => ..` will not have any # `default_xyz`
++ # methods generated, so we need to check for the presence of this method first.
++ default = respond_to?("default_#{attribute}") ? send("default_#{attribute}") : nil
++ if object.send(attribute).nil? || send(attribute) != default
+ logger.info("Setting from flags: #{attribute}=#{send(attribute)}")
+ object.send("#{attribute}=", send(attribute))
+ end
diff --git a/gnu/packages/patches/geeqie-clutter.patch b/gnu/packages/patches/geeqie-clutter.patch
deleted file mode 100644
index ab7cc957d8..0000000000
--- a/gnu/packages/patches/geeqie-clutter.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From c99084ac5fc2fb854ff8e8abd4bd3298fb08fb43 Mon Sep 17 00:00:00 2001
-From: Colin Clark <colin.clark@cclark.uk>
-Date: Sat, 9 Jan 2021 11:35:41 +0000
-Subject: [PATCH] Fix #829: segfault with clutter-gtk
-
-https://github.com/BestImageViewer/geeqie/issues/829
-
-This fix might cause other problems which might be cured by calling:
-LIBGL_ALWAYS_INDIRECT=1 geeqie
-
-or, worst case:
-geeqie --disable-clutter
----
- src/main.c | 5 -----
- 1 file changed, 5 deletions(-)
-
-diff --git a/src/main.c b/src/main.c
-index f497240d..4af654fe 100644
---- a/src/main.c
-+++ b/src/main.c
-@@ -904,11 +904,6 @@ gint main(gint argc, gchar *argv[])
- #ifdef HAVE_GTHREAD
- #if !GLIB_CHECK_VERSION(2,32,0)
- g_thread_init(NULL);
--#endif
--#ifdef HAVE_CLUTTER
--/* FIXME: see below */
-- putenv("LIBGL_ALWAYS_INDIRECT=1");
-- XInitThreads();
- #endif
- gdk_threads_init();
- gdk_threads_enter();
---
-2.34.0
-
diff --git a/gnu/packages/patches/guile-fix-invalid-unicode-handling.patch b/gnu/packages/patches/guile-fix-invalid-unicode-handling.patch
new file mode 100644
index 0000000000..20ee1a2cf5
--- /dev/null
+++ b/gnu/packages/patches/guile-fix-invalid-unicode-handling.patch
@@ -0,0 +1,83 @@
+Reported upstream at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62290 and
+patch merged as cba2e7e3fec3c781230570f5d1ef070625eeeda8.
+
+From 31a1c3c4783e8e66b93500737f23f209d8115f77 Mon Sep 17 00:00:00 2001
+From: Christopher Baines <mail@cbaines.net>
+Date: Fri, 17 Mar 2023 12:48:39 +0000
+Subject: [PATCH] Fix some invalid unicode handling issues with suspendable
+ ports.
+
+Based on the implementation in ports.c. I don't understand what this
+code is really doing, but the suspendable ports implementation differs
+from the similar C code for a couple of inequalities.
+
+* module/ice-9/suspendable-ports.scm (decode-utf8, bad-utf8-len): Flip a
+couple of inequalities.
+* test-suite/tests/ports.test ("string ports"): Add additional invalid
+UTF-8 test case.
+---
+ module/ice-9/suspendable-ports.scm | 8 ++++----
+ test-suite/tests/ports.test | 7 +++++++
+ 2 files changed, 11 insertions(+), 4 deletions(-)
+
+diff --git a/module/ice-9/suspendable-ports.scm b/module/ice-9/suspendable-ports.scm
+index a823f1d37..9fac1df62 100644
+--- a/module/ice-9/suspendable-ports.scm
++++ b/module/ice-9/suspendable-ports.scm
+@@ -419,7 +419,7 @@
+ (= (logand u8_2 #xc0) #x80)
+ (case u8_0
+ ((#xe0) (>= u8_1 #xa0))
+- ((#xed) (>= u8_1 #x9f))
++ ((#xed) (<= u8_1 #x9f))
+ (else #t)))
+ (kt (integer->char
+ (logior (ash (logand u8_0 #x0f) 12)
+@@ -436,7 +436,7 @@
+ (= (logand u8_3 #xc0) #x80)
+ (case u8_0
+ ((#xf0) (>= u8_1 #x90))
+- ((#xf4) (>= u8_1 #x8f))
++ ((#xf4) (<= u8_1 #x8f))
+ (else #t)))
+ (kt (integer->char
+ (logior (ash (logand u8_0 #x07) 18)
+@@ -462,7 +462,7 @@
+ ((< buffering 2) 1)
+ ((not (= (logand (ref 1) #xc0) #x80)) 1)
+ ((and (eq? first-byte #xe0) (< (ref 1) #xa0)) 1)
+- ((and (eq? first-byte #xed) (< (ref 1) #x9f)) 1)
++ ((and (eq? first-byte #xed) (> (ref 1) #x9f)) 1)
+ ((< buffering 3) 2)
+ ((not (= (logand (ref 2) #xc0) #x80)) 2)
+ (else 0)))
+@@ -471,7 +471,7 @@
+ ((< buffering 2) 1)
+ ((not (= (logand (ref 1) #xc0) #x80)) 1)
+ ((and (eq? first-byte #xf0) (< (ref 1) #x90)) 1)
+- ((and (eq? first-byte #xf4) (< (ref 1) #x8f)) 1)
++ ((and (eq? first-byte #xf4) (> (ref 1) #x8f)) 1)
+ ((< buffering 3) 2)
+ ((not (= (logand (ref 2) #xc0) #x80)) 2)
+ ((< buffering 4) 3)
+diff --git a/test-suite/tests/ports.test b/test-suite/tests/ports.test
+index 66e10e3dd..1b30e1a68 100644
+--- a/test-suite/tests/ports.test
++++ b/test-suite/tests/ports.test
+@@ -1059,6 +1059,13 @@
+ eof))
+
+ (test-decoding-error (#xf0 #x88 #x88 #x88) "UTF-8"
++ (error ;; 2nd byte should be in the 90..BF range
++ error ;; 88: not a valid starting byte
++ error ;; 88: not a valid starting byte
++ error ;; 88: not a valid starting byte
++ eof))
++
++ (test-decoding-error (#xf4 #xa4 #xbd #xa4) "UTF-8"
+ (error ;; 2nd byte should be in the 90..BF range
+ error ;; 88: not a valid starting byte
+ error ;; 88: not a valid starting byte
+--
+2.39.1
+
diff --git a/gnu/packages/patches/ruby-hiredis-use-system-hiredis.patch b/gnu/packages/patches/ruby-hiredis-use-system-hiredis.patch
new file mode 100644
index 0000000000..1b238f5099
--- /dev/null
+++ b/gnu/packages/patches/ruby-hiredis-use-system-hiredis.patch
@@ -0,0 +1,52 @@
+Retrieved 2023-03-05 from
+https://sources.debian.org/data/main/r/ruby-hiredis/0.6.3-2/debian/patches/use_system_libhiredis.patch.
+
+From: Apollon Oikonomopoulos <apoikos@gmail.com>
+Date: Mon, 20 Jan 2020 09:28:45 -0300
+Subject: Use system libhiredis
+
+Last-Update: 2013-04-10
+Forwarded: no
+
+Use Debian's libhiredis version instead of downloading one and statically
+linking against it.
+---
+ ext/hiredis_ext/extconf.rb | 18 +++---------------
+ 1 file changed, 3 insertions(+), 15 deletions(-)
+
+diff --git a/ext/hiredis_ext/extconf.rb b/ext/hiredis_ext/extconf.rb
+index da39eb5..ffa3abf 100644
+--- a/ext/hiredis_ext/extconf.rb
++++ b/ext/hiredis_ext/extconf.rb
+@@ -9,12 +9,6 @@ end
+
+ RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']
+
+-hiredis_dir = File.join(File.dirname(__FILE__), %w{.. .. vendor hiredis})
+-unless File.directory?(hiredis_dir)
+- STDERR.puts "vendor/hiredis missing, please checkout its submodule..."
+- exit 1
+-end
+-
+ RbConfig::CONFIG['configure_args'] =~ /with-make-prog\=(\w+)/
+ make_program = $1 || ENV['make']
+ make_program ||= case RUBY_PLATFORM
+@@ -27,15 +21,9 @@ else
+ end
+
+ if build_hiredis
+- # Make sure hiredis is built...
+- Dir.chdir(hiredis_dir) do
+- success = system("#{make_program} static")
+- raise "Building hiredis failed" if !success
+- end
+-
+- # Statically link to hiredis (mkmf can't do this for us)
+- $CFLAGS << " -I#{hiredis_dir}"
+- $LDFLAGS << " #{hiredis_dir}/libhiredis.a"
++ # Debian: use system hiredis
++ $CFLAGS << " -I/usr/include/hiredis"
++ $LDFLAGS << " -lhiredis"
+
+ have_func("rb_thread_fd_select")
+ create_makefile('hiredis/ext/hiredis_ext')
diff --git a/gnu/packages/patchutils.scm b/gnu/packages/patchutils.scm
index 05a9a62dbf..0d88a2d943 100644
--- a/gnu/packages/patchutils.scm
+++ b/gnu/packages/patchutils.scm
@@ -168,7 +168,7 @@ refreshed, and more.")
(define-public colordiff
(package
(name "colordiff")
- (version "1.0.20")
+ (version "1.0.21")
(source
(origin
(method url-fetch)
@@ -177,7 +177,7 @@ refreshed, and more.")
(string-append "http://www.colordiff.org/archive/colordiff-"
version ".tar.gz")))
(sha256
- (base32 "1kbv3lsyzzrwca4v3ajpnv8q5j0h53r94lxiqgmikxmrxrxh3cp3"))))
+ (base32 "05g64z4ls1i70rpzznjxy2cpjgywisnwj9ssx9nq1w7hgqjz8c4v"))))
(build-system gnu-build-system)
(arguments
`(#:tests? #f ; no tests
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index b3176d565b..8d9e92c223 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -552,6 +552,27 @@ users can force the decision of which backend to use by setting the environment
variable ANY_MOOSE to be Moose or Mouse.")
(license (package-license perl))))
+(define-public perl-app-cpanminus
+ (package
+ (name "perl-app-cpanminus")
+ (version "1.7046")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/M/MI/MIYAGAWA/App-cpanminus-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "0qpq1x24dcrm7bm2qj814nkmxg8mzkdn6wcirjd8yd578jdrv31y"))))
+ (build-system perl-build-system)
+ (home-page "https://metacpan.org/release/App-cpanminus")
+ (synopsis "CPAN package manager")
+ (description "App::cpanminus is a script to get, unpack, build and install
+modules from CPAN and does nothing else. It's dependency free (can bootstrap
+itself), requires zero configuration, and stands alone. When running, it
+requires only 10MB of RAM.")
+ (license (package-license perl))))
+
(define-public perl-app-xml-docbook-builder
(package
(name "perl-app-xml-docbook-builder")
diff --git a/gnu/packages/protobuf.scm b/gnu/packages/protobuf.scm
index b580f8b2a7..82cf8f452d 100644
--- a/gnu/packages/protobuf.scm
+++ b/gnu/packages/protobuf.scm
@@ -4,7 +4,7 @@
;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
;;; Copyright © 2017, 2018, 2019, 2022 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
-;;; Copyright © 2020, 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2020, 2021, 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
@@ -49,6 +49,7 @@
#:use-module (gnu packages python-check)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages rpc)
+ #:use-module (gnu packages rails)
#:use-module (gnu packages ruby)
#:use-module (srfi srfi-1))
@@ -512,7 +513,7 @@ source files.")
(define-public ruby-protobuf
(package
(name "ruby-protobuf")
- (version "3.10.3")
+ (version "3.10.7")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -521,7 +522,7 @@ source files.")
(file-name (git-file-name name version))
(sha256
(base32
- "1yzz7jgpp6qip5d6qhzbkf5gqaydfk3z3c1ngccwzp6w6wa75g8a"))))
+ "12hp1clg83jfl35x1h2ymzpj5w83wrnqw7hjfc6mqa8lsvpw535r"))))
(build-system ruby-build-system)
(arguments
`(#:phases
@@ -529,8 +530,7 @@ source files.")
(add-after 'unpack 'do-not-use-bundler-for-tests
(lambda _
(substitute* "spec/spec_helper.rb"
- (("Bundler\\.setup.*") ""))
- #t))
+ (("Bundler\\.setup.*") ""))))
(add-after 'unpack 'relax-version-requirements
(lambda _
(substitute* ((@@ (guix build ruby-build-system) first-gemspec))
@@ -539,33 +539,30 @@ source files.")
(("\"rubocop\",.*")
"'rubocop'\n")
(("\"parser\",.*")
- "'parser'\n"))
- #t))
+ "'parser'\n"))))
(add-after 'unpack 'patch-protoc
(lambda* (#:key inputs #:allow-other-keys)
- (let ((protoc (assoc-ref inputs "protobuf")))
- (substitute* "lib/protobuf/tasks/compile.rake"
- (("\"protoc\"")
- (string-append "\"" protoc "/bin/protoc" "\"")))
- #t)))
+ (substitute* "lib/protobuf/tasks/compile.rake"
+ (("\"protoc\"")
+ (string-append "\"" (search-input-file inputs "bin/protoc")
+ "\"")))))
(add-after 'unpack 'skip-failing-test
;; See: https://github.com/ruby-protobuf/protobuf/issues/419
(lambda _
(substitute* "spec/lib/protobuf/rpc/connectors/ping_spec.rb"
(("expect\\(::IO\\)\\.to receive\\(:select\\).*" all)
- (string-append " pending\n" all)))
- #t))
+ (string-append " pending\n" all)))))
(add-after 'replace-git-ls-files 'replace-more-git-ls-files
(lambda _
(substitute* ((@@ (guix build ruby-build-system) first-gemspec))
(("`git ls-files -- \\{test,spec,features\\}/*`")
"`find test spec features -type f | sort`")
(("`git ls-files -- bin/*`")
- "`find bin -type f | sort`"))
- #t))
+ "`find bin -type f | sort`"))))
(replace 'check
- (lambda _
- (invoke "rspec"))))))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rspec")))))))
(native-inputs
(list ruby-benchmark-ips
ruby-ffi-rzmq
@@ -583,26 +580,12 @@ source files.")
(inputs
(list protobuf))
(propagated-inputs
- (list ruby-activesupport ruby-middleware ruby-thor ruby-thread-safe))
+ (list ruby-activesupport
+ ruby-middleware
+ ruby-thor
+ ruby-thread-safe))
(home-page "https://github.com/ruby-protobuf/protobuf")
(synopsis "Implementation of Google's Protocol Buffers in Ruby")
(description "Protobuf is an implementation of Google's Protocol Buffers
in pure Ruby.")
(license license:expat)))
-
-;;; This is a modified ruby-protobuf package used by ruby-cucumber-messages
-;;; until https://github.com/ruby-protobuf/protobuf/pull/411 and
-;;; https://github.com/ruby-protobuf/protobuf/pull/415 are merged upstream.
-(define-public ruby-protobuf-cucumber
- (hidden-package
- (package
- (inherit ruby-protobuf)
- (name "ruby-protobuf-cucumber")
- (version "3.10.8")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "protobuf-cucumber" version))
- (sha256
- (base32
- "1rd6naabhpfb1i5dr6fp5mqwaawsx0mqm73h5ycwkgbm1n2si872")))))))
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 073243b63d..e53dded72a 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2015, 2016, 2020, 2021, 2022 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2015, 2016, 2020, 2021, 2022, 2023 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2015 Federico Beffa <beffa@fbengineering.ch>
;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
@@ -169,6 +169,57 @@ the SciPy stack. It provides many user-friendly and efficient numerical
routines such as routines for numerical integration and optimization.")
(license license:bsd-3)))
+(define-public python-scikit-allel
+ (package
+ (name "python-scikit-allel")
+ (version "1.3.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "scikit-allel" version))
+ (sha256
+ (base32 "1vg88ng6gd175gzk39iz1drxig5l91dyx398w2kbw3w8036zv8gj"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ '(list "-k"
+ (string-append
+ ;; AttributeError: 'Dataset' object has no attribute 'asstr'
+ "not test_vcf_to_hdf5"
+ " and not test_vcf_to_hdf5_exclude"
+ " and not test_vcf_to_hdf5_rename"
+ " and not test_vcf_to_hdf5_group"
+ " and not test_vcf_to_hdf5_ann"
+ ;; Does not work with recent hmmlearn
+ " and not test_roh_mhmm_0pct"
+ " and not test_roh_mhmm_100pct"))
+ #:phases
+ '(modify-phases %standard-phases
+ (add-before 'check 'build-ext
+ (lambda _
+ (invoke "python" "setup.py" "build_ext" "--inplace"))))))
+ (propagated-inputs
+ (list python-dask
+ python-numpy))
+ (native-inputs
+ (list python-cython
+ ;; The following are all needed for the tests
+ htslib
+ python-h5py
+ python-hmmlearn
+ python-numexpr
+ python-pytest
+ python-scipy
+ python-setuptools-scm
+ python-zarr))
+ (home-page "https://github.com/cggh/scikit-allel")
+ (synopsis "Explore and analyze genetic variation data")
+ (description
+ "This package provides utilities for exploratory analysis of large scale
+genetic variation data.")
+ (license license:expat)))
+
(define-public python-scikit-fuzzy
(package
(name "python-scikit-fuzzy")
@@ -245,53 +296,33 @@ logic, also known as grey logic.")
"Scikit-image is a collection of algorithms for image processing.")
(license license:bsd-3)))
-(define-public python-scikit-allel
+(define-public python-scikit-optimize
(package
- (name "python-scikit-allel")
- (version "1.3.5")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "scikit-allel" version))
- (sha256
- (base32 "1vg88ng6gd175gzk39iz1drxig5l91dyx398w2kbw3w8036zv8gj"))))
- (build-system python-build-system)
- (arguments
- (list
- #:phases
- #~(modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "python" "setup.py" "build_ext" "--inplace")
- (invoke "python" "-m" "pytest" "-v" "allel"
- ;; AttributeError: 'Dataset' object has no attribute 'asstr'
- "-k" (string-append
- "not test_vcf_to_hdf5"
- " and not test_vcf_to_hdf5_exclude"
- " and not test_vcf_to_hdf5_rename"
- " and not test_vcf_to_hdf5_group"
- " and not test_vcf_to_hdf5_ann"))))))))
+ (name "python-scikit-optimize")
+ (version "0.9.0")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "scikit-optimize" version))
+ (sha256
+ (base32
+ "0230ya8bwrzxjwcy2vz23a3hg6caggnnmg2vq1f9zz2797kckn3p"))))
+ (build-system pyproject-build-system)
(propagated-inputs
- (list python-dask
- python-numpy))
+ (list python-joblib
+ python-matplotlib
+ python-numpy
+ python-pyaml
+ python-scikit-learn
+ python-scipy))
(native-inputs
- (list python-cython
- ;; The following are all needed for the tests
- htslib
- python-h5py
- python-hmmlearn
- python-numexpr
- python-pytest
- python-scipy
- python-setuptools-scm
- python-zarr))
- (home-page "https://github.com/cggh/scikit-allel")
- (synopsis "Explore and analyze genetic variation data")
- (description
- "This package provides utilities for exploratory analysis of large scale
-genetic variation data.")
- (license license:expat)))
+ (list python-pytest))
+ (home-page "https://scikit-optimize.github.io/")
+ (synopsis "Sequential model-based optimization toolbox")
+ (description "Scikit-Optimize, or @code{skopt}, is a simple and efficient
+library to minimize (very) expensive and noisy black-box functions. It
+implements several methods for sequential model-based optimization.
+@code{skopt} aims to be accessible and easy to use in many contexts.")
+ (license license:bsd-3)))
(define-public python-trimesh
(package
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index eae05edbd4..bf29f4d4b0 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1755,6 +1755,51 @@ compositions like @code{XOR} and @code{NAND} are emulated on top of them.
Expressions are constructed from parsed strings or directly in Python.")
(license license:bsd-2)))
+(define-public python-hatchling
+ (package
+ (name "python-hatchling")
+ (version "1.13.0")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "hatchling" version))
+ (sha256
+ (base32
+ "1isk1kqra0sm2sj2yp39sgk62mx0bp1jnbkwdcl3a1vjrji7blpq"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:tests? #false ;there are none
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'do-not-depend-on-hatchling
+ (lambda _
+ ;; We don't use hatchling.
+ (delete-file "pyproject.toml")
+ (call-with-output-file "pyproject.toml"
+ (lambda (port)
+ (format port "\
+[build-system]
+build-backend = 'setuptools.build_meta'
+requires = ['setuptools']
+")))
+ (call-with-output-file "setup.cfg"
+ (lambda (port)
+ (format port "\
+[metadata]
+name = hatchling
+version = '~a' " #$version))))))))
+ (propagated-inputs
+ (list python-editables
+ python-importlib-metadata
+ python-packaging
+ python-pathspec
+ python-pluggy
+ python-tomli))
+ (home-page "https://pypi.org/project/hatchling/")
+ (synopsis "Extensible Python build backend")
+ (description "Hatchling is an extensible Python build backend.")
+ (license license:expat)))
+
(define-public python-hdf4
(package
(name "python-hdf4")
@@ -2846,6 +2891,84 @@ from @code{lxml}. It aims to provide a low memory, compatible implementation
of @code{xmlfile}.")
(license license:expat)))
+(define-public python-omero-py
+ (package
+ (name "python-omero-py")
+ (version "5.13.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ome/omero-py")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0n94v5dpmh873hjqd9k9ky85iab4xh37ibmi13rqpclv01ibvvxa"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ '(list "-m" "not broken" "-rf" "test" "-s"
+ ;; TestImport tries to download Java things; TestSessions
+ ;; and TestBuildQuery require networking.
+ "-k" "not TestImport and not TestSessions and not TestBuildQuery")
+ #:modules '((guix build pyproject-build-system)
+ (guix build utils)
+ (ice-9 match)
+ (srfi srfi-1)
+ (srfi srfi-26))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'find-artifacts
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((zip-file
+ (match inputs
+ (((labels . files) ...)
+ (find (cut string-suffix? "omero-blitz-5.5.5-python.zip" <>)
+ files)))))
+ (setenv "ZIP_FILE"
+ (or zip-file (error "failed to find artifact file"))))))
+ ;; Some tests need this, such as TestTempFileManager
+ (add-after 'build 'set-HOME
+ (lambda _ (setenv "HOME" "/tmp")))
+ ;; The sanity check mistakes omero_model_TypeAnnotationI.py for a
+ ;; module to load.
+ (delete 'sanity-check)
+ ;; The argument parser is picky and interprets the "-real" part as
+ ;; the first argument.
+ (add-after 'wrap 'rename-executable
+ (lambda _
+ (with-directory-excursion (string-append #$output "/bin")
+ (rename-file ".omero-real" ".omero")
+ (substitute* "omero"
+ (("bin/.omero-real") "bin/.omero"))))))))
+ (propagated-inputs
+ (list python-appdirs
+ python-future
+ python-numpy
+ python-pillow
+ python-pyyaml
+ python-requests
+ python-tables
+ python-zeroc-ice-3.6))
+ (native-inputs
+ (list python-mox3
+ python-pytest
+ python-pytest-rerunfailures
+ python-pytest-xdist
+ unzip
+ (origin
+ (method url-fetch)
+ (uri "https://artifacts.openmicroscopy.org/artifactory/\
+ome.releases/org/openmicroscopy/omero-blitz/5.5.5/omero-blitz-5.5.5-python.zip")
+ (sha256
+ (base32 "0wyja1zv19c1r3m31gsp555jzj3cg2v2pl00zlybpw3qd36yffwc")))))
+ (home-page "https://github.com/ome/omero-py")
+ (synopsis "Python bindings to the OMERO.blitz server")
+ (description "This package provides Python bindings to the OMERO.blitz
+server.")
+ (license license:gpl2)))
+
(define-public python-openpyxl
(package
(name "python-openpyxl")
@@ -31997,6 +32120,37 @@ functions
markdown-compliant strings.")
(license license:expat)))
+(define-public python-zeroc-ice
+ (package
+ (name "python-zeroc-ice")
+ (version "3.7.9")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "zeroc-ice" version))
+ (sha256
+ (base32
+ "0bqkrjxp2fbz34x3wxkxji39kxinypzg8q2994sibiay29mpipxb"))))
+ (build-system pyproject-build-system)
+ (inputs (list openssl))
+ (home-page "https://zeroc.com")
+ (synopsis "RPC framework")
+ (description
+ "Ice is a comprehensive RPC framework. Ice helps you network your
+software by taking care of all interactions with low-level network programming
+interfaces.")
+ (license license:gpl2)))
+
+(define-public python-zeroc-ice-3.6
+ (package
+ (inherit python-zeroc-ice)
+ (version "3.6.5")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "zeroc-ice" version))
+ (sha256
+ (base32
+ "0mikjfvq26kh8asnn9v55z41pap4c5ypymqnwwi4xkavc3mzyda2"))))))
+
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above by existing packages with similar
diff --git a/gnu/packages/rails.scm b/gnu/packages/rails.scm
index 8f5bda4638..c830620b82 100644
--- a/gnu/packages/rails.scm
+++ b/gnu/packages/rails.scm
@@ -2,6 +2,8 @@
;;; Copyright © 2016 Matthew Jordan <matthewjordandevops@yandex.com>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2019, 2021, 2022 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2019 Christopher Baines <mail@cbaines.net>
+;;; Copyright © 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -24,40 +26,145 @@
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix packages)
+ #:use-module (guix utils)
+ #:use-module (gnu packages base)
+ #:use-module (gnu packages databases)
#:use-module (gnu packages node)
#:use-module (gnu packages ruby)
+ #:use-module (gnu packages sqlite)
+ #:use-module (gnu packages version-control)
#:use-module (guix build-system ruby))
+(define %ruby-rails-version "7.0.4.3")
+
+(define ruby-rails-monorepo
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rails/rails")
+ (commit (string-append "v" %ruby-rails-version))))
+ (file-name (git-file-name "ruby-rails" %ruby-rails-version))
+ (sha256
+ (base32
+ "0f5f8r8wdmdmbyl07b0z555arai4ys2j8dj3fy0mq63y9bfhcqqk"))))
+
+(define-public ruby-activesupport
+ (package
+ (name "ruby-activesupport")
+ (version %ruby-rails-version)
+ (source ruby-rails-monorepo)
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'delete-gemfiles
+ (lambda _
+ (delete-file "Gemfile")
+ (delete-file "Gemfile.lock")))
+ (add-after 'delete-gemfiles 'chdir
+ (lambda _
+ (chdir "activesupport")))
+ (add-before 'check 'check-setup
+ (lambda* (#:key native-inputs inputs #:allow-other-keys)
+ ;; Multiple tests require to set the timezone.
+ (setenv "TZDIR" (search-input-directory (or native-inputs inputs)
+ "share/zoneinfo"))
+ ;; The test suite requires a memcached and a redis server.
+ (invoke "memcached" "-d")
+ (invoke "redis-server" "--daemonize" "yes")))
+ (add-before 'check 'delete-problematic-tests
+ (lambda _
+ ;; These tests fail non-deterministically.
+ (substitute* "test/cache/behaviors.rb"
+ ((".*behaviors/cache_store_behavior.*")
+ "")
+ ((".*behaviors/encoded_key_cache_behavior.*")
+ ""))
+ (delete-file "test/evented_file_update_checker_test.rb")
+ ;; These tests require cache_store_behavior, disabled above.
+ (delete-file "test/cache/stores/file_store_test.rb")
+ (delete-file "test/cache/stores/mem_cache_store_test.rb")
+ (delete-file "test/cache/stores/memory_store_test.rb")
+ (delete-file "test/cache/stores/redis_cache_store_test.rb"))))))
+ (native-inputs
+ (list memcached
+ redis
+ ruby-builder
+ ruby-connection-pool
+ ruby-dalli
+ ruby-hiredis
+ ruby-libxml
+ ruby-listen
+ ruby-rack
+ ruby-redis
+ ruby-rexml
+ tzdata-for-tests))
+ (propagated-inputs
+ (list ruby-concurrent
+ ruby-i18n
+ ;; This is sub-optimal, but apparently necessary (see:
+ ;; https://github.com/rails/rails/commit/
+ ;; 9766eb4a833c26c64012230b96dd1157ebb8e8a2).
+ ruby-minitest-5.15
+ ruby-tzinfo
+ ruby-tzinfo-data))
+ (synopsis "Ruby on Rails utility library")
+ (description "ActiveSupport is a toolkit of support libraries and Ruby
+core extensions extracted from the Rails framework. It includes support for
+multibyte strings, internationalization, time zones, and testing.")
+ (home-page "https://rubyonrails.org/")
+ (license license:expat)))
+
+(define-public ruby-globalid
+ (package
+ (name "ruby-globalid")
+ (version "1.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "globalid" version))
+ (sha256
+ (base32
+ "0kqm5ndzaybpnpxqiqkc41k4ksyxl41ln8qqr6kb130cdxsf2dxk"))))
+ (build-system ruby-build-system)
+ (arguments
+ '(#:tests? #f)) ;no included tests
+ (propagated-inputs
+ (list ruby-activesupport))
+ (synopsis "Generate URIs idenfitying model instances in Ruby")
+ (description
+ "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
+uniquely identify it.")
+ (home-page "https://rubyonrails.org/")
+ (license license:expat)))
+
(define-public ruby-spring
(package
(name "ruby-spring")
- (version "1.7.2")
+ (version "4.1.1")
(source
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/rails/spring")
- (commit (string-append "v" version))))
+ (url "https://github.com/rails/spring")
+ (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
- "0smwrndjmnr7g7jjskw05zin3gh6kx5db6yrkiqi6i9wl5mrn9n5"))))
+ "0p8hidxqnk8s1gfm1s1xb06gbbahdxjmzy6x3ybi25nkmdp0anb6"))))
(build-system ruby-build-system)
(arguments
- `(#:test-target "test:unit"
- #:phases
- (modify-phases %standard-phases
- (add-before 'check 'remove-bump
- (lambda _
- (substitute* "spring.gemspec"
- (("gem.add_development_dependency 'bump'") "")
- (("gem.add_development_dependency 'activesupport'.*")
- "gem.add_development_dependency 'activesupport'\n"))
- (substitute* "Rakefile"
- (("require \\\"bump/tasks\\\"") ""))
- #t)))))
- (native-inputs
- (list bundler ruby-activesupport))
+ (list #:test-target "test:unit"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'remove-bump
+ (lambda _
+ (substitute* "spring.gemspec"
+ (("gem.add_development_dependency 'bump'") ""))
+ (substitute* "Rakefile"
+ (("require \\\"bump/tasks\\\"") "")))))))
+ (native-inputs (list bundler ruby-activesupport))
(synopsis "Ruby on Rails application preloader")
(description
"Spring is a Ruby on Rails application preloader. It speeds up
@@ -124,45 +231,42 @@ API.")
(define-public ruby-autoprefixer-rails
(package
(name "ruby-autoprefixer-rails")
- (version "9.4.7")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "autoprefixer-rails" version))
- (sha256
- (base32
- "0fxbfl3xrrjj84n98x24yzxbz4nvm6c492dxj41kkrl9z97ga13i"))))
+ (version "10.4.13.0")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/ai/autoprefixer-rails")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1i34apjlav1qz8mdg2fyf0hvs5z32inv1snycdkhmqpkfj2ri2hh"))))
(build-system ruby-build-system)
(arguments
'(#:test-target "spec"
#:phases
(modify-phases %standard-phases
- (add-after 'extract-gemspec 'remove-unnecessary-dependencies
+ (add-after 'extract-gemspec 'relax-requirements
(lambda _
- ;; Remove the testing of compass, as its use is deprecated, and
- ;; it's unpackaged for Guix.
- (substitute* "autoprefixer-rails.gemspec"
- ((".*%q<compass>.*") "\n")
- (("\"spec/compass_spec\\.rb\"\\.freeze, ") ""))
- (delete-file "spec/compass_spec.rb")
-
(substitute* "Gemfile"
;; Remove overly strict requirement on sprockets
((", '>= 4\\.0\\.0\\.beta1'") "")
;; The mini_racer gem isn't packaged yet, and it's not directly
;; required, as other backends for ruby-execjs can be used.
- (("gem 'mini_racer'") "")
- ;; For some reason, this is required for the gems to be picked
- ;; up
- (("gemspec") "gemspec\ngem 'tzinfo-data'\ngem 'sass'"))
- #t)))))
+ (("gem \"mini_racer\"") "")
+ ;; For some reason, this is required for the tzinfo-data gem to
+ ;; be picked up.
+ (("gemspec") "gemspec\ngem 'tzinfo-data'\n"))
+ (substitute* "autoprefixer-rails.gemspec"
+ ((".*rubocop.*") ""))))))) ;provided by 'standard'
(native-inputs
(list bundler
ruby-rails
ruby-rspec-rails
- ;; This is needed for a test, but I'm unsure why
- ruby-sass
- ;; This is used as the ruby-execjs runtime
+ ruby-sassc-rails
+ ruby-sprockets
+ ruby-standard
+ ;; This is used at runtime by ruby-execjs.
node))
(propagated-inputs
(list ruby-execjs))
@@ -176,67 +280,133 @@ Can I Use website.")
(define-public ruby-activemodel
(package
- (name "ruby-activemodel")
- (version "6.1.3")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "activemodel" version))
- (sha256
- (base32
- "07m85r00cd1dzxg65zr9wjrdqppw51b5ka9c5mrz92vnw18kfb70"))))
- (build-system ruby-build-system)
- (arguments
- '(;; No included tests
- #:tests? #f))
- (propagated-inputs
- (list ruby-activesupport))
- (synopsis "Toolkit for building modeling frameworks like Active Record")
- (description
- "This package provides a toolkit for building modeling frameworks like
+ (name "ruby-activemodel")
+ (version %ruby-rails-version)
+ (source ruby-rails-monorepo)
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'chdir
+ (lambda _
+ (chdir "activemodel")))
+ (add-after 'chdir 'delete-problematic-tests
+ (lambda _
+ ;; We do not want to depend on ruby-railties at this stage.
+ (delete-file "test/cases/railtie_test.rb"))))))
+ (native-inputs (list ruby-bcrypt))
+ (propagated-inputs (list ruby-activesupport))
+ (synopsis "Toolkit for building modeling frameworks like Active Record")
+ (description
+ "This package provides a toolkit for building modeling frameworks like
Active Record. ActiveSupport handles attributes, callbacks, validations,
serialization, internationalization, and testing.")
- (home-page "https://rubyonrails.org/")
- (license license:expat)))
+ (home-page "https://rubyonrails.org/")
+ (license license:expat)))
(define-public ruby-activerecord
(package
- (name "ruby-activerecord")
- (version "6.1.3")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "activerecord" version))
- (sha256
- (base32
- "03kr6vslwd9iw89jidjpjlp7prr2rf7kpsfa4fz03g9by0kliivs"))))
- (build-system ruby-build-system)
- (arguments
- '(;; No included tests
- #:tests? #f))
- (propagated-inputs
- (list ruby-activemodel ruby-activesupport ruby-arel))
- (synopsis "Ruby library to connect to relational databases")
- (description
- "Active Record connects classes to relational database table to establish
+ (name "ruby-activerecord")
+ (version %ruby-rails-version)
+ (source ruby-rails-monorepo)
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'chdir
+ (lambda _
+ (chdir "activerecord")))
+ (delete 'check)
+ (add-after 'install 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; Avoid running the database tests, which require railties
+ ;; and/or database servers.
+ (invoke "ruby" "-Itest" "test/cases/base_test.rb"))))
+ (add-before 'check 'set-GEM_PATH
+ (lambda _
+ (setenv "GEM_PATH" (string-append
+ (getenv "GEM_PATH") ":"
+ #$output "/lib/ruby/vendor_ruby"))))
+ (add-before 'check 'check-setup
+ (lambda* (#:key native-inputs inputs #:allow-other-keys)
+ ;; A few tests require to set the timezone.
+ (setenv "TZDIR" (search-input-directory (or native-inputs inputs)
+ "share/zoneinfo")))))))
+ (native-inputs (list tzdata-for-tests))
+ (propagated-inputs (list ruby-activemodel ruby-activesupport ruby-sqlite3))
+ (synopsis "Ruby library to connect to relational databases")
+ (description
+ "Active Record connects classes to relational database table to establish
an almost zero-configuration persistence layer for applications.")
- (home-page "https://rubyonrails.org")
- (license license:expat)))
+ (home-page "https://rubyonrails.org")
+ (license license:expat)))
(define-public ruby-rspec-rails
(package
(name "ruby-rspec-rails")
- (version "3.8.2")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "rspec-rails" version))
- (sha256
- (base32
- "1pf6n9l4sw1arlax1bdbm1znsvl8cgna2n6k6yk1bi8vz2n73ls1"))))
+ (version "6.0.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rspec/rspec-rails")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0wmrpwv2vgrwmby01pld6r6sdfa265lb6pd3fp2kifs40nn7ff6b"))))
(build-system ruby-build-system)
(arguments
- '(#:tests? #f)) ; No included tests
+ (list
+ ;; Run the 'spec' instead of the 'default' Rake target to avoid running
+ ;; the acceptance test suite, which doesn't seem to allow being run
+ ;; offline (see: https://github.com/rspec/rspec-rails/issues/2660).
+ #:test-target "spec"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'relax-requirements
+ (lambda _
+ (substitute* "Gemfile"
+ ;; Remove a few extraneous requirements.
+ ((".*yard.*") "")
+ ((".*github-markup.*") "")
+ ((".*redcarpet.*") "")
+ ((".*relish.*") "")
+ ((".*rubocop.*") ""))
+ (substitute* "Gemfile-rspec-dependencies"
+ ((", :git => \"https://github.com/rspec.*")
+ "\n"))
+ (substitute* "Gemfile-rails-dependencies"
+ (("gem 'puma', '< 6.0.0'")
+ "gem 'puma', '>= 6.0.0'"))
+ (substitute* "rspec-rails.gemspec"
+ (("'aruba', '~> 0.14.12'")
+ "'aruba', '>= 0.14.12'")
+ (("'cucumber', '~> 7.0'")
+ "'cucumber', '>= 7.0'"))))
+ (replace 'replace-git-ls-files
+ (lambda _
+ (substitute* "rspec-rails.gemspec"
+ (("`git ls-files -- lib/\\*`")
+ "`find lib -type f |sort`"))))
+ (add-before 'check 'patch-tests
+ (lambda _
+ (substitute* "spec/rspec/rails_spec.rb"
+ (("`git ls-files -z`")
+ "`find . -type f -not -regex '.*\\.gem$' -print0 | \
+sort -z | cut -zc3-`")))))))
+ (native-inputs
+ (list ruby-ammeter-bootstrap
+ ruby-aruba
+ ruby-capybara
+ ruby-cucumber
+ ruby-puma
+ ruby-rails
+ ruby-rspec
+ ruby-selenium-webdriver
+ ruby-sqlite3))
(propagated-inputs
(list ruby-actionpack
ruby-activesupport
@@ -313,21 +483,23 @@ useful when writing tests.")
(define-public ruby-actiontext
(package
(name "ruby-actiontext")
- (version "6.1.3")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "actiontext" version))
- (sha256
- (base32
- "04k4z4xj40sbzbgx0x9m6i8k0nc22jb6dkrlslj16p2z2dfnwhqg"))))
+ (version %ruby-rails-version)
+ (source ruby-rails-monorepo)
(build-system ruby-build-system)
- (arguments
- '(;; No included tests
- #:tests? #f))
+ (arguments
+ (list
+ #:tests? #f ;avoid a cycle with ruby-rails
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'chdir
+ (lambda _
+ (chdir "actiontext"))))))
(propagated-inputs
- (list ruby-actionpack ruby-activerecord ruby-activestorage
- ruby-activesupport ruby-nokogiri))
+ (list ruby-actionpack
+ ruby-activerecord
+ ruby-activestorage
+ ruby-activesupport
+ ruby-nokogiri))
(synopsis "Edit and display rich text in Rails applications")
(description
"ActionText edits and displays rich text in Rails applications.")
@@ -337,21 +509,27 @@ useful when writing tests.")
(define-public ruby-actionview
(package
(name "ruby-actionview")
- (version "6.1.3")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "actionview" version))
- (sha256
- (base32
- "1s5kc1abi7id1g54lz1npgc42zl7pbz172wp8pi7j3s7qljafzw5"))))
- (build-system ruby-build-system)
- (arguments
- '(;; No included tests
- #:tests? #f))
+ (version %ruby-rails-version)
+ (source ruby-rails-monorepo)
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ ;; XXX: This gem appears to load action_controller, provided by
+ ;; ruby-actionpack, but actionpack propagates ruby-actionview,
+ ;; introducing a circular dependency.
+ #:tests? #f
+ #:test-target "test:template"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'chdir
+ (lambda _
+ (chdir "actionview"))))))
(propagated-inputs
- (list ruby-activesupport ruby-builder ruby-erubi
- ruby-rails-dom-testing ruby-rails-html-sanitizer))
+ (list ruby-activesupport
+ ruby-builder
+ ruby-erubi
+ ruby-rails-dom-testing
+ ruby-rails-html-sanitizer))
(synopsis "Conventions and helpers for building web pages")
(description
"ActionView provides conventions and helpers for building web pages in
@@ -361,104 +539,200 @@ Ruby.")
(define-public ruby-actionpack
(package
- (name "ruby-actionpack")
- (version "6.1.3")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "actionpack" version))
- (sha256
- (base32
- "030yyaskzlic5cp4d9zbwwr3rhf4k6hsls44a7ihsfd6r8mlivq5"))))
- (build-system ruby-build-system)
- (arguments
- '(;; No included tests
- #:tests? #f))
- (propagated-inputs
- (list ruby-actionview
- ruby-activesupport
- ruby-rack
- ruby-rack-test
- ruby-rails-dom-testing
- ruby-rails-html-sanitizer))
- (synopsis "Conventions for building and testing MVC web applications")
- (description
- "ActionPack provides conventions for building and testing MVC web
+ (name "ruby-actionpack")
+ (version %ruby-rails-version)
+ (source ruby-rails-monorepo)
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'chdir
+ (lambda _
+ (chdir "actionpack")))
+ (add-before 'check 'delete-problematic-tests
+ (lambda _
+ (let-syntax ((skip-tests
+ (syntax-rules ()
+ ((_ file test ...)
+ (substitute* file
+ ;; ActiveSupport test case.
+ (((string-append "test \"" test "\".*") all)
+ (string-append
+ all " skip 'fails on guix'\n")) ...
+ ;; MiniTest test case.
+ (((string-append "def " test ".*") all)
+ (string-append
+ all " skip('fails on guix')\n")) ...)))))
+
+ (with-directory-excursion "test"
+ (for-each delete-file
+ ;; These tests depend on rails, which depends on
+ ;; this package.
+ '("dispatch/mount_test.rb"
+ "dispatch/prefix_generation_test.rb"
+ "dispatch/routing_assertions_test.rb"
+ "dispatch/routing/inspector_test.rb"
+ "controller/live_stream_test.rb"
+ "controller/integration_test.rb"
+ "controller/test_case_test.rb"))
+
+ ;; The following test failures have been reported upstream
+ ;; (see: https://github.com/rails/rails/issues/47615).
+ (skip-tests "controller/new_base/render_streaming_test.rb"
+ ;; These tests fail due to white space
+ ;; characters in the compared strings.
+ "rendering with streaming no layout"
+ "rendering with streaming enabled at the \
+class level"
+ "rendering with streaming given to render"
+ "rendering with layout exception"
+ "rendering with template exception"
+ "rendering with streaming do not override \
+explicit cache control given to render")
+
+ (skip-tests "dispatch/system_testing/driver_test.rb"
+ ;; These tests require Firefox.
+ "define extra capabilities using headless_firefox"
+ "define extra capabilities using firefox")
+
+ (skip-tests "dispatch/session/cache_store_test.rb"
+ ;; This test fails with: "NoMethodError:
+ ;; undefined method `hash_for' for
+ ;; #<Rack::Test::CookieJar:0x0000000003572170>".
+ "test_getting_session_value_after_session_reset"))))))))
+ (native-inputs
+ (list ruby-activemodel
+ ruby-capybara
+ ruby-selenium-webdriver
+ ruby-zeitwerk))
+ (propagated-inputs
+ (list ruby-actionview
+ ruby-activesupport
+ ruby-rack
+ ruby-rack-cache
+ ruby-rack-session
+ ruby-rack-test
+ ruby-rails-dom-testing
+ ruby-rails-html-sanitizer))
+ (synopsis "Conventions for building and testing MVC web applications")
+ (description
+ "ActionPack provides conventions for building and testing MVC web
applications. These work with any Rack-compatible server.")
- (home-page "https://rubyonrails.org/")
- (license license:expat)))
+ (home-page "https://rubyonrails.org/")
+ (license license:expat)))
(define-public ruby-actioncable
(package
- (name "ruby-actioncable")
- (version "6.1.3")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "actioncable" version))
- (sha256
- (base32
- "1cgb1l0gml1vklxka2djpi5q5b4bgzgm5pahzfjvvgm5vzvrvi9v"))))
- (build-system ruby-build-system)
- (arguments
- '(;; No included tests
- #:tests? #f))
- (propagated-inputs
- (list ruby-actionpack ruby-activesupport ruby-nio4r
- ruby-websocket-driver))
- (synopsis "Integrate integrates WebSockets with Rails applications")
- (description
- "Action Cable integrates WebSockets with Rails applications. Through
+ (name "ruby-actioncable")
+ (version %ruby-rails-version)
+ (source ruby-rails-monorepo)
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'chdir
+ (lambda _
+ (chdir "actioncable")))
+ (delete 'check) ;moved after install phase
+ (add-after 'install 'check
+ (assoc-ref %standard-phases 'check))
+ (add-before 'check 'set-GEM_PATH
+ (lambda _
+ (setenv "GEM_PATH" (string-append
+ (getenv "GEM_PATH") ":"
+ #$output "/lib/ruby/vendor_ruby"))))
+ (add-before 'check 'disable-problematic-tests
+ (lambda _
+ ;; There are multiple client test failures (see:
+ ;; https://github.com/rails/rails/issues/47617).
+ (delete-file "test/client_test.rb")))
+ (add-before 'check 'start-redis
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "redis-server" "--daemonize" "yes")))))))
+ (native-inputs
+ (list redis
+ ruby-activerecord
+ ruby-pg
+ ruby-puma
+ ruby-redis
+ ruby-websocket-client-simple))
+ (propagated-inputs
+ (list ruby-actionpack
+ ruby-activesupport
+ ruby-nio4r
+ ruby-websocket-driver))
+ (synopsis "Integrate integrates WebSockets with Rails applications")
+ (description
+ "Action Cable integrates WebSockets with Rails applications. Through
WebSockets it allows for real-time features in web applications.")
- (home-page "https://rubyonrails.org/")
- (license license:expat)))
+ (home-page "https://rubyonrails.org/")
+ (license license:expat)))
(define-public ruby-activejob
(package
- (name "ruby-activejob")
- (version "6.1.3")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "activejob" version))
- (sha256
- (base32
- "175d8q0achdlsxjsvq0w9znvfqfkgbj75kbmdrvg4fb277wwplmf"))))
- (build-system ruby-build-system)
- (arguments
- '(;; No included tests
- #:tests? #f))
- (propagated-inputs
- (list ruby-activesupport ruby-globalid))
- (synopsis "Declare job classes for multiple backends")
- (description
- "ActiveJob allows declaring job classes in a common way across Rails
-applications.")
- (home-page "https://rubyonrails.org/")
- (license license:expat)))
+ (name "ruby-activejob")
+ (version %ruby-rails-version)
+ (source ruby-rails-monorepo)
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'chdir
+ (lambda _
+ (chdir "activejob")))
+ (add-after 'chdir 'delete-problematic-tests
+ (lambda _
+ (substitute* "Rakefile"
+ ;; Remove the adapters that aren't yet packaged or would
+ ;; introduce cyclic dependencies.
+ (("backburner ") "")
+ (("resque ") "")
+ (("sidekiq ") "")
+ (("sneakers ") "")
+ (("sucker_punch ") ""))
+ (substitute* "test/cases/exceptions_test.rb"
+ (("ActiveJob::QueueAdapters::SneakersAdapter") "")))))))
+ (native-inputs
+ (list ruby-queue-classic
+ ruby-delayed-job
+ ruby-que
+ ruby-zeitwerk))
+ (propagated-inputs
+ (list ruby-activesupport
+ ruby-globalid))
+ (synopsis "Declare job classes for multiple backends")
+ (description "ActiveJob allows declaring job classes in a common way
+across Rails applications.")
+ (home-page "https://rubyonrails.org/")
+ (license license:expat)))
(define-public ruby-activestorage
(package
(name "ruby-activestorage")
- (version "6.1.3")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "activestorage" version))
- (sha256
- (base32
- "0gkxvbi5w8zmdxpiyz3b10kzz8cxqqh9bj81sjl3fp8wa3v2ld4i"))))
+ (version %ruby-rails-version)
+ (source ruby-rails-monorepo)
(build-system ruby-build-system)
(arguments
- '(;; No included tests
- #:tests? #f))
+ (list
+ ;; The test suite is disabled, because it activestorage requires
+ ;; 'rails', which would introduce a dependency cycle.
+ #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'chdir
+ (lambda _
+ (chdir "activestorage"))))))
(propagated-inputs
(list ruby-actionpack
ruby-activejob
ruby-activerecord
ruby-activesupport
ruby-marcel
- ruby-mimemagic))
+ ruby-mini-mime))
(synopsis "Integrate file storage services in to Rails applications")
(description
"ActiveStorage integrates file storage services with Rails applications,
@@ -469,25 +743,27 @@ allowing files to be attached to ActiveRecord models.")
(define-public ruby-actionmailbox
(package
(name "ruby-actionmailbox")
- (version "6.1.3")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "actionmailbox" version))
- (sha256
- (base32
- "0wv2p24xn4f0kj8kiyagkn934hzrcp98vzjqxwd4r75qq0cijadp"))))
+ (version %ruby-rails-version)
+ (source ruby-rails-monorepo)
(build-system ruby-build-system)
- (arguments
- '(;; No included tests
- #:tests? #f))
+ (arguments
+ (list
+ #:tests? #f ;avoid a cycle with ruby-rails
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'chdir
+ (lambda _
+ (chdir "actionmailbox"))))))
(propagated-inputs
(list ruby-actionpack
ruby-activejob
ruby-activerecord
ruby-activestorage
ruby-activesupport
- ruby-mail))
+ ruby-mail
+ ruby-net-imap
+ ruby-net-pop
+ ruby-net-smtp))
(synopsis "Receive and process incoming emails in Rails applications")
(description
"ActionMailbox receives and processes incoming emails in Rails applications.")
@@ -496,69 +772,560 @@ allowing files to be attached to ActiveRecord models.")
(define-public ruby-actionmailer
(package
- (name "ruby-actionmailer")
- (version "6.1.3")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "actionmailer" version))
- (sha256
- (base32
- "0lic4mc6wqi3p9ipdqljl64vd9ndabm0k8hww0m07sfdhwsl5ba9"))))
- (build-system ruby-build-system)
- (arguments
- '(;; No included tests
- #:tests? #f))
- (propagated-inputs
- (list ruby-actionpack
- ruby-actionview
- ruby-activejob
- ruby-activesupport
- ruby-mail
- ruby-rails-dom-testing))
- (synopsis "Work with emails using the controller/view pattern")
- (description
- "Compose, deliver, receive, and test emails using the controller/view
+ (name "ruby-actionmailer")
+ (version %ruby-rails-version)
+ (source ruby-rails-monorepo)
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:tests? #f ;avoid a cycle with ruby-rails
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'chdir
+ (lambda _
+ (chdir "actionmailer"))))))
+ (propagated-inputs
+ (list ruby-actionpack
+ ruby-actionview
+ ruby-activejob
+ ruby-activesupport
+ ruby-mail
+ ruby-net-imap
+ ruby-net-pop
+ ruby-net-smtp
+ ruby-rails-dom-testing))
+ (synopsis "Work with emails using the controller/view pattern")
+ (description
+ "Compose, deliver, receive, and test emails using the controller/view
pattern. Including support for multipart email and attachments.")
- (home-page "https://rubyonrails.org/")
- (license license:expat)))
+ (home-page "https://rubyonrails.org/")
+ (license license:expat)))
+
+;; A variant where the ruby-rspec-rails dependency purposefully omitted to
+;; avoid a dependency cycle with that same package.
+(define ruby-ammeter-bootstrap
+ (package
+ (name "ruby-ammeter-bootstrap")
+ (version "1.1.5")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "ammeter" version))
+ (sha256
+ (base32
+ "1bcslj6y3lgaknd9fpj32m1r4is7blyxygxzmwidq9cjwkrn4msh"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'remove-rails-requirement
+ (lambda _
+ (substitute* "Gemfile"
+ (("gem 'rspec-rails', rspec_version")
+ "")
+ (("gem 'rails', rails_version")
+ "")))))))
+ (propagated-inputs (list ruby-activesupport ruby-railties))
+ (synopsis "Write specs for your Rails 3+ generators")
+ (description "The @code{ammeter} gem makes it easy to write specs for
+Rails generators. An existing user is @code{rspec-rails}, which uses
+@code{ammeter} to spec its own generators.")
+ (home-page "https://github.com/alexrothenberg/ammeter")
+ (license license:expat)))
+
+(define-public ruby-ammeter
+ (package/inherit ruby-ammeter-bootstrap
+ (name "ruby-ammeter")
+ ;; TODO: The test suite requires multiple packages which are not packaged
+ ;; yet.
+ (arguments (list #:tests? #f))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs ruby-ammeter-bootstrap)
+ (append ruby-rspec-rails)))))
+
+(define-public ruby-bootsnap
+ (package
+ (name "ruby-bootsnap")
+ (version "1.16.0")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/Shopify/bootsnap")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1gaih5v4jjndrkn0crrr5mxnwc3cd0f3i955n62ghk29zabvd7wf"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:test-target "default"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'relax-requirements
+ (lambda _
+ (substitute* "Gemfile"
+ ;; Rubocop and byebug are not actually needed to run the
+ ;; tests.
+ ((".*rubocop.*") "")
+ ((".*byebug.*") ""))))
+ (replace 'replace-git-ls-files
+ (lambda _
+ (substitute* "bootsnap.gemspec"
+ (("`git ls-files -z ext lib`")
+ "`find ext lib -type f -print0 | sort -z`")))))))
+ (native-inputs (list ruby-mocha ruby-rake-compiler))
+ (propagated-inputs (list ruby-msgpack))
+ (synopsis "Accelerator for large Ruby/Rails application")
+ (description "Bootsnap is a library that plugs into Ruby, with optional
+support for YAML, to optimize and cache expensive computations.")
+ (home-page "https://github.com/Shopify/bootsnap")
+ (license license:expat)))
+
+;;; A private variant used to bootstrap railties.
+(define ruby-importmap-rails-bootstrap
+ (package
+ (name "ruby-importmap-rails-bootstrap")
+ (version "1.1.5")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/rails/importmap-rails")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1d8pqqqrvsnm8rpr7qkpcxpscif61xymi509v1c62laadvhcmklg"))))
+ (build-system ruby-build-system)
+ (arguments (list #:tests? #f)) ;avoid all extra dependencies
+ ;; Leave out ruby-railties, for bootstrapping purposes.
+ (propagated-inputs (list ruby-actionpack))
+ (synopsis "Tool to manage modern JavaScript in Rails")
+ (description "Import maps can import JavaScript modules using logical
+names that map to versioned/digested files -- directly from the browser. It
+makes it possible to build modern JavaScript applications using JavaScript
+libraries made for ES modules (ESM) without the need for transpiling or
+bundling, which removes the need for Webpack, Yarn, npm, or any other part of
+the JavaScript toolchain. All that is needed is the asset pipeline that is
+already included in Rails.")
+ (home-page "https://github.com/rails/importmap-rails")
+ (license license:expat)))
+
+(define-public ruby-importmap-rails
+ (package/inherit ruby-importmap-rails-bootstrap
+ (name "ruby-importmap-rails")
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'relax-requirements
+ (lambda _
+ (delete-file "gemfiles/rails_7_propshaft.gemfile.lock")
+ (substitute* "gemfiles/rails_7_propshaft.gemfile"
+ ;; Remove appraisal, and add tzinfo-data, which needs to
+ ;; be in the Gemfile to become available.
+ ((".*appraisal.*")
+ "gem 'tzinfo-data'\n")
+ ;; This gem is for managing *installation* of
+ ;; webdrivers... we do not want that.
+ ((".*gem \"webdrivers\".*") ""))))
+ (add-before 'check 'set-BUNDLE_GEMFILE
+ (lambda _
+ ;; The default Gemfile is for Rails 6.
+ (setenv "BUNDLE_GEMFILE"
+ "gemfiles/rails_7_propshaft.gemfile")))
+ (add-before 'check 'disable-problematic-tests
+ (lambda _
+ ;; The integration tests require networking; disable them.
+ (delete-file "test/npm_integration_test.rb")
+ (delete-file "test/packager_integration_test.rb"))))))
+ (native-inputs
+ (list ruby-byebug
+ ruby-capybara
+ ruby-propshaft
+ ruby-rails
+ ruby-rexml
+ ruby-selenium-webdriver
+ ruby-sqlite3
+ ruby-stimulus-rails
+ ruby-turbo-rails
+ ruby-tzinfo
+ ruby-tzinfo-data))
+ (propagated-inputs
+ (list ruby-actionpack
+ ruby-railties))))
+
+(define-public ruby-marcel
+ (package
+ (name "ruby-marcel")
+ (version "1.0.2")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rails/marcel")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1i1x24afmn09n48fj4yz2pdm6vlfnq14gism0cgxsyqmlrvsxajn"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:test-target "default"
+ #:phases #~(modify-phases %standard-phases
+ (add-before 'check 'disable-problematic-tests
+ (lambda _
+ (substitute* "test/mime_type_test.rb"
+ ;; One test fails because of the newer rack
+ ;; version used (see:
+ ;; https://github.com/rails/marcel/issues/91).
+ (("test \"gets content type.*" all)
+ (string-append
+ all " skip('fails on guix')\n"))))))))
+ (native-inputs (list ruby-byebug ruby-nokogiri ruby-rack))
+ (propagated-inputs (list ruby-mimemagic))
+ (synopsis "MIME type detection using magic numbers, filenames and extensions")
+ (description
+ "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
+Extensions} type detection using magic numbers, filenames, and extensions")
+ (home-page "https://github.com/rails/marcel")
+ (license license:expat)))
+
+(define-public ruby-propshaft
+ (package
+ (name "ruby-propshaft")
+ (version "0.7.0")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "propshaft" version))
+ (sha256
+ (base32
+ "19s5qvfady49b9b6dcvz6nsna1lvckw509ddh3ihmdz0w4qrjy49"))))
+ (build-system ruby-build-system)
+ (propagated-inputs (list ruby-actionpack ruby-activesupport ruby-rack
+ ruby-railties))
+ (synopsis "Asset pipeline library for Rails")
+ (description "Propshaft is an asset pipeline library for Rails. It's
+built for an era where bundling assets to save on HTTP connections is no
+longer urgent, where JavaScript and CSS are either compiled by dedicated
+Node.js bundlers or served directly to the browsers, and where increases in
+bandwidth have made the need for minification less pressing. These factors
+allow for a dramatically simpler and faster asset pipeline compared to
+previous options, like Sprockets.")
+ (home-page "https://github.com/rails/propshaft")
+ (license license:expat)))
+;;; Pro-tip: to get a summary of the failures, run
+;;; 'M-x occur [1-9][0-9]* \(failures\|errors\)' on the build log.
(define-public ruby-railties
(package
- (name "ruby-railties")
- (version "6.1.3")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "railties" version))
- (sha256
- (base32
- "1685y5dcfgcq0b38j13vrpkhiiblmrl64wa9w065669bkgmkw4ra"))))
- (build-system ruby-build-system)
- (arguments
- '(;; No included tests
- #:tests? #f))
- (propagated-inputs
- (list ruby-actionpack ruby-activesupport ruby-method-source ruby-rake
- ruby-thor))
- (synopsis "Rails internals, including application bootup and generators")
- (description
- "@code{railties} provides the core Rails internals including handling
-application bootup, plugins, generators, and Rake tasks.")
- (home-page "https://rubyonrails.org/")
- (license license:expat)))
+ (name "ruby-railties")
+ (version %ruby-rails-version)
+ (source ruby-rails-monorepo)
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'delete-gemfiles
+ (lambda _
+ ;; Delete Gemfile and Gemfile.lock, as they contains too many
+ ;; dependencies not actually useful here.
+ (delete-file "Gemfile")
+ (delete-file "Gemfile.lock")))
+ (add-after 'extract-gemspec 'chdir
+ (lambda _
+ (chdir "railties")))
+ (add-after 'chdir 'disable-bundler
+ (lambda _
+ (substitute* (append (list "Rakefile")
+ (find-files "test" "\\.rb$")
+ (find-files "lib" "\\.tt$"))
+ ;; Do not use Bundler, which causes errors such as not finding
+ ;; the gem of this package (railties), or preferring the other
+ ;; in-source gems.
+ (("`bundle exec") "`")
+ ((".*require \"bundler/setup\".*") "")
+ ((".*Bundler.require.*") ""))
+ ;; Adjust a runtime substitution that uses a removed
+ ;; Bundler.require in its pattern; instead of matching
+ ;; "Bundler.require", it now appends to the 'require
+ ;; "rails/all"' line in the generated 'application.rb' template
+ ;; generated from
+ ;; "lib/rails/generators/rails/app/templates/config/application.rb.tt".
+ (substitute* "test/isolation/abstract_unit.rb"
+ (("contents.sub!\\(/\\^Bundler\\\\.require\\.\\*/, \"([^\"]*)"
+ _ replacement)
+ (format #f "contents.sub!('require \"rails/all\"', \"\\\\0\\n~a"
+ replacement)))))
+ (add-after 'chdir 'do-not-load-other-gems-from-source
+ (lambda _
+ ;; The Rakefile adds '-I' Ruby options so that the other Rails
+ ;; libraries are loaded from source; since they are already
+ ;; packaged separately, use these instead.
+ (substitute* "Rakefile"
+ ((".*\"\\.\\./activesupport/lib\",.*") "")
+ ((".*\"\\.\\./actionpack/lib\",.*") "")
+ ((".*\"\\.\\./actionview/lib\",.*") "")
+ ((".*\"\\.\\./activemodel/lib\".*") ""))))
+ (add-after 'chdir 'patch-paths
+ (lambda _
+ (substitute* "lib/rails/generators/base.rb"
+ (("/usr/bin/env") (which "env")))))
+ (delete 'check) ;moved after install phase
+ (add-after 'install 'check
+ (assoc-ref %standard-phases 'check))
+ (add-before 'check 'prepare-for-tests
+ (lambda _
+ (define (touch file-name)
+ (call-with-output-file file-name (const #t)))
+ ;; Otherwise, the test suite attempts to use yarn to fetch
+ ;; NodeJS modules.
+ (mkdir-p "../actionview/lib/assets/compiled")
+ (touch "../actionview/lib/assets/compiled/rails-ujs.js")
+ (mkdir-p "test/isolation/assets/node_modules")
+ ;; Git requires to be able to write to HOME.
+ (setenv "HOME" "/tmp")))
+ (add-before 'check 'disable-problematic-tests
+ (lambda _
+ (let-syntax ((skip-tests
+ (syntax-rules ()
+ ((_ file test ...)
+ (substitute* file
+ ;; ActiveSupport test case.
+ (((string-append "test \"" test "\".*") all)
+ (string-append
+ all " skip 'fails on guix'\n")) ...
+ ;; MiniTest test case.
+ (((string-append "def " test ".*") all)
+ (string-append
+ all " skip('fails on guix')\n")) ...)))))
+ (with-directory-excursion "test"
+ ;; This test requires 'rails' and Bundler.
+ (delete-file "application/server_test.rb")
+ ;; These tests are incompatible with MiniTest 5.17 (see:
+ ;; https://github.com/rails/rails/issues/47657).
+ (skip-tests "generators_test.rb"
+ "test_invoke_with_config_values"
+ "test_simple_invoke"
+ "test_should_give_higher_preference_to_rails_generators"
+ "test_nested_fallbacks_for_generators"
+ "test_fallbacks_for_generators_on_invoke"
+ "test_invoke_with_default_values"
+ "test_invoke_with_nested_namespaces")
+ ;; These tests requires the assets which we lack.
+ (delete-file "application/assets_test.rb")
+ (delete-file "railties/generators_test.rb")
+ (skip-tests "generators/shared_generator_tests.rb"
+ ;; This test checks that bin/rails has /usr/bin/env has a
+ ;; shebang and fails.
+ "test_shebang_when_is_the_same_as_default_use_env")
+ (skip-tests "generators/app_generator_test.rb"
+ ;; This test requires networking.
+ "test_template_from_url"
+ ;; This test requires Bundler.
+ "test_generation_use_original_bundle_environment"
+ ;; This test requires assets.
+ "test_css_option_with_cssbundling_gem"
+ ;; These tests require the rails/command
+ ;; namespace provided by the 'ruby-rails'
+ ;; package, which depends on this one.
+ "test_css_option_with_asset_pipeline_tailwind"
+ "test_hotwire")
+ (skip-tests
+ "generators/plugin_generator_test.rb"
+ ;; These tests require assets.
+ "test_model_with_existent_application_record_in_mountable_engine"
+ "test_dummy_application_loads_plugin"
+ "test_generate_application_mailer_when_does_not_exist_in_\
+mountable_engine"
+ "test_generate_mailer_layouts_when_does_not_exist_in_mountable_engine"
+ "test_ensure_that_migration_tasks_work_with_mountable_option"
+ "test_generating_controller_inside_mountable_engine"
+ "test_generate_application_job_when_does_not_exist_in_mountable_engine"
+ "test_run_default"
+ ;; This test expects a /usr/bin/env shebang.
+ "test_shebang")
+ ;; The following generator tests require assets.
+ (skip-tests "generators/plugin_test_runner_test.rb"
+ "test_run_default")
+ (skip-tests
+ "generators/scaffold_controller_generator_test.rb"
+ "test_controller_tests_pass_by_default_inside_full_engine"
+ "test_controller_tests_pass_by_default_inside_mountable_engine")
+ (skip-tests
+ "generators/scaffold_generator_test.rb"
+ "test_scaffold_tests_pass_by_default_inside_mountable_engine"
+ "test_scaffold_tests_pass_by_default_inside_api_mountable_engine"
+ "test_scaffold_tests_pass_by_default_inside_api_full_engine"
+ "test_scaffold_on_invoke_inside_mountable_engine"
+ "test_scaffold_tests_pass_by_default_inside_full_engine"
+ "test_scaffold_tests_pass_by_default_inside_namespaced_\
+mountable_engine")
+ (skip-tests "generators/test_runner_in_engine_test.rb"
+ "test_run_default"
+ "test_rerun_snippet_is_relative_path")
+ ;; The actions_test tests depend on assets or the rails gem.
+ (delete-file "generators/actions_test.rb")
+ (skip-tests "engine/commands_test.rb"
+ "test_server_command_work_inside_engine"
+ "test_runner_command_work_inside_engine")
+ ;; These tests fails because of cleanup code
+ ;; when the environment lacks a PTY device (see:
+ ;; https://github.com/rails/rails/issues/47656).
+ (delete-file "engine/commands_test.rb")
+ ;; The following tests require the 'rails' gem.
+ (skip-tests "application/test_runner_test.rb"
+ "test_run_app_without_rails_loaded"
+ "test_generated_scaffold_works_with_rails_test"
+ "test_load_fixtures_when_running_test_suites"
+ "test_run_in_parallel_with_unmarshable_exception"
+ "test_run_in_parallel_with_unknown_object")
+ (skip-tests
+ "application/test_test.rb"
+ "automatically synchronizes test schema after rollback"
+ "hooks for plugins"
+ "sql structure migrations when adding column to existing table"
+ "sql structure migrations"
+ "ruby schema migrations")
+ ;; These tests require a PostgreSQL server accepting
+ ;; connections under /var/run/postgresql.
+ (skip-tests
+ "application/rake_test.rb"
+ "test_not_protected_when_previous_migration_was_not_production")
+ (delete-file "application/rake/dbs_test.rb")
+ (delete-file "application/rake/migrations_test.rb")
+ (delete-file "application/rake/multi_dbs_test.rb")
+ (skip-tests "engine/test_test.rb"
+ "automatically synchronize test schema")
+ (skip-tests "isolation/abstract_unit.rb" "use_postgresql")
+ (skip-tests "railties/engine_test.rb"
+ "active_storage:install task works within engine"
+ "active_storage:update task works within engine"
+ "rake environment can be called in the engine"
+ "mountable engine should copy migrations within engine_path"
+ ;; This test fails because we do not use the
+ ;; in-source active/action gems.
+ "i18n files have lower priority than application ones"
+ ;; This test fails when not using Bundler.
+ "setting priority for engines with config.railties_order")
+ ;; This test requires a database server or networking.
+ (delete-file "application/bin_setup_test.rb")
+ (skip-tests "application/middleware/cache_test.rb"
+ ;; This test produces "miss, store" instead of
+ ;; "fresh".
+ "test_cache_works_with_expires"
+ ;; This one produces "miss" instead of "stale,
+ ;; valid, store".
+ "test_cache_works_with_etags"
+ ;; Likewise.
+ "test_cache_works_with_last_modified")))))
+ (add-before 'check 'set-paths
+ (lambda _
+ (setenv "PATH" (string-append (getenv "PATH") ":"
+ #$output "/bin"))
+ (setenv "GEM_PATH" (string-append
+ (getenv "GEM_PATH") ":"
+ #$output "/lib/ruby/vendor_ruby")))))))
+ (native-inputs
+ (list git-minimal/pinned
+ ruby-actioncable
+ ruby-actionmailbox
+ ruby-actionmailer
+ ruby-actiontext
+ ruby-actionview
+ ruby-activejob
+ ruby-activemodel
+ ruby-activerecord
+ ruby-activestorage
+ ruby-bcrypt
+ ruby-bootsnap
+ ruby-capybara
+ ruby-dalli
+ ruby-importmap-rails-bootstrap
+ ruby-listen
+ ruby-minitest-retry
+ ruby-mysql2
+ ruby-pg
+ ruby-selenium-webdriver
+ ruby-sprockets-rails
+ ruby-webrick
+ sqlite))
+ (propagated-inputs
+ (list ruby-actionpack
+ ruby-activesupport
+ ruby-method-source
+ ruby-rake
+ ruby-thor
+ ruby-zeitwerk))
+ (synopsis "Rails internals, including application bootup and generators")
+ (description "@code{railties} provides the core Rails internals including
+handling application bootup, plugins, generators, and Rake tasks.")
+ (home-page "https://rubyonrails.org")
+ (license license:expat)))
+
+(define-public ruby-sassc-rails
+ (package
+ (name "ruby-sassc-rails")
+ (version "2.1.2")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "sassc-rails" version))
+ (sha256
+ (base32
+ "1d9djmwn36a5m8a83bpycs48g8kh1n2xkyvghn7dr6zwh4wdyksz"))))
+ (build-system ruby-build-system)
+ ;; The test suite currently fails with multiple "FrozenError: can't modify
+ ;; frozen Array: []" errors, apparently caused by Rails 7 (see:
+ ;; https://github.com/sass/sassc-rails/pull/178/files).
+ (arguments (list #:tests? #f
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'relax-requirements
+ (lambda _
+ (substitute* "sassc-rails.gemspec"
+ (("%q<rake>.freeze, \\[\"~> 10.0\"]")
+ "%q<rake>.freeze, [\">= 10.0\"]")))))))
+ (native-inputs (list ruby-mocha ruby-pry ruby-tzinfo-data))
+ (propagated-inputs (list ruby-railties ruby-sassc ruby-sprockets
+ ruby-sprockets-rails ruby-tilt))
+ (synopsis "SassC-Ruby integration with Rails")
+ (description "This Ruby library integrates SassC-Ruby into Rails.")
+ (home-page "https://github.com/sass/sassc-rails")
+ (license license:expat)))
+
+(define-public ruby-sprockets
+ (package
+ (name "ruby-sprockets")
+ (version "4.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "sprockets" version))
+ (sha256
+ (base32
+ "0k0236g4h3ax7v6vp9k0l2fa0w6f1wqp7dn060zm4isw4n3k89sw"))))
+ (build-system ruby-build-system)
+ (arguments
+ '(;; No included tests
+ #:tests? #f))
+ (propagated-inputs
+ (list ruby-concurrent ruby-rack))
+ (synopsis "Sprockets is a Rack-based asset packaging system")
+ (description
+ "Sprockets is a Rack-based asset packaging system that concatenates and
+serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
+ (home-page "https://github.com/rails/sprockets")
+ (license license:expat)))
(define-public ruby-sprockets-rails
(package
(name "ruby-sprockets-rails")
- (version "3.2.1")
+ (version "3.4.2")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "sprockets-rails" version))
(sha256
(base32
- "0ab42pm8p5zxpv3sfraq45b9lj39cz9mrpdirm30vywzrwwkm5p1"))))
+ "1b9i14qb27zs56hlcc2hf139l0ghbqnjpmfi0054dxycaxvk5min"))))
(build-system ruby-build-system)
(arguments
'(;; No included tests
@@ -572,10 +1339,56 @@ application bootup, plugins, generators, and Rake tasks.")
"https://github.com/rails/sprockets-rails")
(license license:expat)))
+(define-public ruby-stimulus-rails
+ (package
+ (name "ruby-stimulus-rails")
+ (version "1.2.1")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "stimulus-rails" version))
+ (sha256
+ (base32
+ "12hfdzh6cwahbd6p4r0r0d14n3laj3cqasx9w18wga9fq70bq6w3"))))
+ (build-system ruby-build-system)
+ (propagated-inputs (list ruby-railties))
+ (synopsis "Modest JavaScript framework for Rails")
+ (description "This package provides a modest JavaScript framework for the
+HTML you already have.")
+ (home-page "https://stimulus.hotwired.dev")
+ (license license:expat)))
+
+(define-public ruby-turbo-rails
+ (package
+ (name "ruby-turbo-rails")
+ (version "1.4.0")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "turbo-rails" version))
+ (sha256
+ (base32
+ "0vm3iqgr3kxyyz5i09lhvfszp4pw1gw5j5rhhv1gmasv4kq2p3qh"))))
+ (build-system ruby-build-system)
+ ;; The test suite depends on JavaScript modules fetched via 'yarn'.
+ (arguments (list #:tests? #f))
+ (propagated-inputs (list ruby-actionpack ruby-activejob ruby-railties))
+ (synopsis "High performance web application framework")
+ (description
+ "Turbo aims to be as fast as single-page web application without having
+to write any JavaScript. Turbo accelerates links and form submissions without
+requiring server-side changes to the generated HTML. It allows carving up a
+page into independent frames, which can be lazy-loaded and operated as
+independent components. Finally, it helps making partial page updates using
+just HTML and a set of CRUD-like container tags. These three techniques
+reduce the amount of custom JavaScript that many web applications need to
+write by an order of magnitude. And for the few dynamic bits that are left,
+Stimulus can be used.")
+ (home-page "https://github.com/hotwired/turbo-rails")
+ (license license:expat)))
+
(define-public ruby-web-console
(package
(name "ruby-web-console")
- (version "4.1.0")
+ (version "4.2.0")
(source
(origin
;; Download from GitHub as test files are not provided in the gem.
@@ -586,7 +1399,7 @@ application bootup, plugins, generators, and Rake tasks.")
(file-name (git-file-name name version))
(sha256
(base32
- "0azk8nmimnjbh74vxgwcj9jr588rj7kb5rrlclcjfjsw9jqjzckc"))))
+ "07mg9nq7h48n01hps1m0g2nk94zknab6mrcxsv8x2vaf2xfgjilg"))))
(build-system ruby-build-system)
(arguments
'(#:phases
@@ -602,10 +1415,9 @@ application bootup, plugins, generators, and Rake tasks.")
(("group :development") "[].each")
;; tzinfo-data is propagated by ruby-activesupport, but it
;; needs to be in the Gemfile to become available.
- (("group :test do") "group :test do\n gem 'tzinfo-data'"))
- #t)))))
+ (("group :test do") "group :test do\n gem 'tzinfo-data'")))))))
(propagated-inputs
- (list ruby-actionview ruby-activemodel ruby-bindex ruby-railties))
+ (list ruby-actionview ruby-activemodel ruby-arel ruby-bindex ruby-railties))
(native-inputs
(list bundler ruby-rails ruby-mocha ruby-simplecov))
(synopsis "Debugging tool for your Ruby on Rails applications")
@@ -642,57 +1454,59 @@ for locks.")
(home-page "https://closuretree.github.io/with_advisory_lock/")
(license license:expat)))
+;;; This is a meta-package which propagates all the individual Rails
+;;; components.
(define-public ruby-rails
(package
- (name "ruby-rails")
- (version "6.1.3")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "rails" version))
- (sha256
- (base32
- "0hdancysa617lzyy5gmrcmnpgyb1mz1lawy0l34ycz2wary7y2bz"))))
- (build-system ruby-build-system)
- (arguments
- '(#:phases
- (modify-phases %standard-phases
- ;; This gem acts as glue between the gems that actually make up
- ;; Rails. The important thing to check is that the gemspec matches up
- ;; with the Guix packages and Rubygems can successfully activate the
- ;; Rails gem.
- ;;
- ;; The following check phase tests this.
- (delete 'check)
- (add-after 'install 'check
- (lambda* (#:key tests? outputs #:allow-other-keys)
- (setenv "GEM_PATH"
- (string-append
- (getenv "GEM_PATH")
- ":"
- (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
- (when tests?
- (invoke "ruby" "-e" "gem 'rails'"))
- #t)))))
- (propagated-inputs
- (list ruby-actioncable
- ruby-actionmailbox
- ruby-actionmailer
- ruby-actionpack
- ruby-actiontext
- ruby-actionview
- ruby-activejob
- ruby-activemodel
- ruby-activerecord
- ruby-activestorage
- ruby-activesupport
- bundler
- ruby-railties
- ruby-sprockets-rails))
- (synopsis "Full-stack web framework optimized for programmer happiness")
- (description
- "Ruby on Rails is a full-stack web framework optimized for programmer
+ (name "ruby-rails")
+ (version %ruby-rails-version)
+ (source ruby-rails-monorepo)
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'delete-extraneous-gemspec-files
+ (lambda _
+ ;; They would otherwise be picked up instead of rails.gemspec at
+ ;; the root of the repository.
+ (for-each (lambda (f)
+ (unless (string-suffix? "rails.gemspec" f)
+ (delete-file f)))
+ (find-files "." "\\.gemspec"))))
+ ;; This gem acts as glue between the gems that actually make up
+ ;; Rails. The important thing to check is that the gemspec matches
+ ;; up with the Guix packages and Rubygems can successfully activate
+ ;; the Rails gem.
+ ;;
+ ;; The following check phase tests this.
+ (delete 'check)
+ (add-after 'install 'check
+ (lambda* (#:key tests? outputs #:allow-other-keys)
+ (when tests?
+ (setenv "GEM_PATH"
+ (string-append (getenv "GEM_PATH") ":" #$output
+ "/lib/ruby/vendor_ruby"))
+ (invoke "ruby" "-e" "gem 'rails'")))))))
+ (propagated-inputs
+ (list bundler
+ ruby-actioncable
+ ruby-actionmailbox
+ ruby-actionmailer
+ ruby-actionpack
+ ruby-actiontext
+ ruby-actionview
+ ruby-activejob
+ ruby-activemodel
+ ruby-activerecord
+ ruby-activestorage
+ ruby-activesupport
+ ruby-railties
+ ruby-sprockets-rails))
+ (synopsis "Full-stack web framework optimized for programmer happiness")
+ (description
+ "Ruby on Rails is a full-stack web framework optimized for programmer
happiness and sustainable productivity. It encourages beautiful code by
favoring convention over configuration.")
- (home-page "https://rubyonrails.org/")
- (license license:expat)))
+ (home-page "https://rubyonrails.org/")
+ (license license:expat)))
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 44e2c7c0ca..3bf0f0f534 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -74,6 +74,7 @@
#:use-module (gnu packages ncurses)
#:use-module (gnu packages networking)
#:use-module (gnu packages node)
+ #:use-module (gnu packages perl)
#:use-module (gnu packages protobuf)
#:use-module (gnu packages python)
#:use-module (gnu packages python-xyz)
@@ -81,12 +82,16 @@
#:use-module (gnu packages rsync)
#:use-module (gnu packages sqlite)
#:use-module (gnu packages tls)
+ #:use-module (gnu packages valgrind)
#:use-module (gnu packages version-control)
+ #:use-module (gnu packages web-browsers)
#:use-module (gnu packages serialization)
#:use-module (guix packages)
+ #:use-module (guix deprecation)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix gexp)
+ #:use-module (guix modules)
#:use-module (guix utils)
#:use-module (guix build-system gnu)
#:use-module (gnu packages xml)
@@ -433,6 +438,25 @@ packaging native C and Java extensions in Ruby.")
(home-page "https://github.com/rake-compiler/rake-compiler")
(license license:expat)))
+(define-public ruby-rake-compiler-dock
+ (package
+ (name "ruby-rake-compiler-dock")
+ (version "1.3.0")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "rake-compiler-dock" version))
+ (sha256
+ (base32
+ "0yr5f72irvhmnk12q7bbr4qw0xwy7diqkbcvb4lygjbg7rvk3k8k"))))
+ (build-system ruby-build-system)
+ (arguments (list #:tests? #f)) ;test suite requires docker
+ (synopsis "Cross compiler environment for building Ruby gems")
+ (description "The code{rake-compiler-dock} gem provides a cross compiler
+environment for building gems on a variety of platforms (GNU/Linux, JRuby,
+Windows and Mac).")
+ (home-page "https://github.com/rake-compiler/rake-compiler-dock")
+ (license license:expat)))
+
(define-public ruby-rsync
(package
(name "ruby-rsync")
@@ -489,6 +513,54 @@ an extensible architecture with a swappable backend.")
(home-page "https://github.com/ruby-i18n/i18n")
(license license:expat)))
+(define-public ruby-io-console
+ (package
+ (name "ruby-io-console")
+ (version "0.6.0")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/ruby/io-console/")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0gwxrp29b6awkid1sf85sbh529mnq6hb86m8c2443cm6nc4vr8qb"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'delete-rakelib-files
+ (lambda _
+ ;; These depend on git and other extraneous
+ ;; dependencies, and are loaded by rake.
+ (delete-file-recursively "rakelib"))))))
+ (native-inputs (list ruby-rake-compiler))
+ (synopsis "Console capabilities library for IO instances")
+ (description "IO.console adds console capabilities to Ruby IO instances.")
+ (home-page "https://github.com/ruby/io-console")
+ (license license:bsd-2)))
+
+(define-public ruby-irb
+ (package
+ (name "ruby-irb")
+ (version "1.6.3")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "irb" version))
+ (sha256
+ (base32
+ "1h9s07n5v3z029v18924ws9vdkdc80n6llp9ccx77yg1krv2g0f3"))))
+ (build-system ruby-build-system)
+ ;; XXX: Disable the test suite, as it requires debug, which requires this
+ ;; package (dependency cycle).
+ (arguments (list #:tests? #f))
+ (propagated-inputs (list ruby-reline))
+ (synopsis "Ruby command-line tool for REPL (Read Eval Print Loop)")
+ (description "IRB is an interactive Ruby command-line tool for REPL (Read
+Eval Print Loop).")
+ (home-page "https://github.com/ruby/irb")
+ (license license:bsd-2)))
+
(define-public ruby-iruby
(package
(name "ruby-iruby")
@@ -551,13 +623,13 @@ notebook).")
(define-public ruby-rspec-support
(package
(name "ruby-rspec-support")
- (version "3.8.0")
+ (version "3.12.0")
(source (origin
(method url-fetch)
(uri (rubygems-uri "rspec-support" version))
(sha256
(base32
- "0p3m7drixrlhvj2zpc38b11x145bvm311x6f33jjcxmvcm0wq609"))))
+ "12y52zwwb3xr7h91dy9k3ndmyyhr3mjcayk0nnarnrzz8yr48kfx"))))
(build-system ruby-build-system)
(arguments
'(#:tests? #f)) ; avoid dependency cycles
@@ -569,13 +641,13 @@ notebook).")
(define-public ruby-rspec-core
(package
(name "ruby-rspec-core")
- (version "3.8.0")
+ (version "3.12.1")
(source (origin
(method url-fetch)
(uri (rubygems-uri "rspec-core" version))
(sha256
(base32
- "1p1s5bnbqp3sxk67y0fh0x884jjym527r0vgmhbm81w7aq6b7l4p"))))
+ "0da45cvllbv39sdbsl65vp5djb2xf5m10mxc9jm7rsqyyxjw4h1f"))))
(build-system ruby-build-system)
(arguments
'(#:tests? #f)) ; avoid dependency cycles
@@ -598,6 +670,28 @@ groups.")
"0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
(propagated-inputs `())))
+(define-public ruby-date
+ (package
+ (name "ruby-date")
+ (version "3.3.3")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ruby/date")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1jiqjnaap1jk1r8z37iicnzqha1rhc713qmcir17f4vnz8ac8v75"))))
+ (build-system ruby-build-system)
+ (arguments (list #:test-target "default"))
+ (native-inputs (list ruby-rake-compiler))
+ (synopsis "Ruby @code{Object} subclass with date comparison capability")
+ (description "This package provides a subclass of @code{Object} that
+includes the @code{Comparable} module for handling dates.")
+ (home-page "https://github.com/ruby/date")
+ (license license:bsd-2)))
+
(define-public ruby-diff-lcs
(package
(name "ruby-diff-lcs")
@@ -622,13 +716,13 @@ standard diff-like tool.")
(define-public ruby-rspec-expectations
(package
(name "ruby-rspec-expectations")
- (version "3.8.2")
+ (version "3.12.2")
(source (origin
(method url-fetch)
(uri (rubygems-uri "rspec-expectations" version))
(sha256
(base32
- "18l21hy1zdc2pgc2yb17k3n2al1khpfr0z6pijlm852iz6vj0dkm"))))
+ "03ba3lfdsj9zl00v1yvwgcx87lbadf87livlfa5kgqssn9qdnll6"))))
(build-system ruby-build-system)
(arguments
'(#:tests? #f)) ; avoid dependency cycles
@@ -675,14 +769,14 @@ re-sourced, but they will be rendered in a single-line format.")
(define-public ruby-given-core
(package
(name "ruby-given-core")
- (version "3.8.0")
+ (version "3.8.2")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "given_core" version))
(sha256
(base32
- "1lzyqllbbv6as3qgwz2007mvy7wy247bgkch9adnmh1zfa73bkrg"))))
+ "0w1pyhgb2am7c267s8v06dpd9qhmsk2x4hfr2aq8l8lh49ma227s"))))
(build-system ruby-build-system)
(arguments '(#:tests? #f)) ;no test suite for the core package
(propagated-inputs
@@ -697,14 +791,14 @@ when defining specifications.")
(define-public ruby-rspec-given
(package
(name "ruby-rspec-given")
- (version "3.8.0")
+ (version "3.8.2")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "rspec-given" version))
(sha256
(base32
- "1783bazja10kbha8hk15khvybsq88siyax02cpkk688604h54nji"))))
+ "0xzzxjjzwrsp84p12sd6ab3jbm9kh7sbnqpxgc9mlfq3s3ll0fdj"))))
(build-system ruby-build-system)
(arguments
`(#:test-target "rs"
@@ -717,8 +811,7 @@ when defining specifications.")
(("Given::VERSION") (format #f "~s" ,version))
;; Fix the error: "cannot load such file -- example_helper"
(("sh \"rspec")
- "sh \"rspec -Ilib:examples"))
- #t))
+ "sh \"rspec -Ilib:examples"))))
(add-after 'extract-gemspec 'delete-failing-tests
;; See: https://github.com/jimweirich/rspec-given/issues/57.
(lambda _
@@ -728,8 +821,7 @@ when defining specifications.")
(("\"examples/integration/failing_messages_spec.rb\".freeze, ")
""))
(delete-file "spec/lib/given/natural_assertion_spec.rb")
- (delete-file "examples/integration/failing_messages_spec.rb")
- #t)))))
+ (delete-file "examples/integration/failing_messages_spec.rb"))))))
(native-inputs
(list ruby-rspec ruby-minitest))
(propagated-inputs
@@ -807,13 +899,13 @@ eq(1)\\}}.")
(define-public ruby-rspec-mocks
(package
(name "ruby-rspec-mocks")
- (version "3.8.0")
+ (version "3.12.4")
(source (origin
(method url-fetch)
(uri (rubygems-uri "rspec-mocks" version))
(sha256
(base32
- "06y508cjqycb4yfhxmb3nxn0v9xqf17qbd46l1dh4xhncinr4fyp"))))
+ "1dcfh85m3ksir6n8gydsal4d85chpww1b2nahb05nl8xhgh0r2ij"))))
(build-system ruby-build-system)
(arguments
'(#:tests? #f)) ; avoid dependency cycles
@@ -837,6 +929,63 @@ support for stubbing and mocking.")
(propagated-inputs
(list ruby-diff-lcs))))
+(define-public ruby-rspec-block-is-expected
+ (package
+ (name "ruby-rspec-block-is-expected")
+ (version "1.0.2")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/pboling/rspec-block_is_expected")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1w8mj00k8am24yw7lbhg616m111p7h7bbfxaw7np4i7wnlwzm8fk"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ (substitute* "Rakefile"
+ (("require 'rubocop/rake_task'") "")
+ (("RuboCop::RakeTask.new") ""))
+ ;; Contains extraneous requirements not actually
+ ;; needed for the test suite.
+ (delete-file "Gemfile"))))))
+ (native-inputs (list ruby-rspec-pending-for ruby-rspec-expectations))
+ (propagated-inputs (list ruby-rspec-core))
+ (synopsis "Simplify testing of blocks in RSpec")
+ (description "This RSpec plugin allows you to use @code{block_is_expected}
+similarly to how you would use @code{is_expected} if a block was wrapping the
+subject.")
+ (home-page "https://github.com/pboling/rspec-block_is_expected")
+ (license license:expat)))
+
+(define-public ruby-rspec-pending-for
+ (package
+ (name "ruby-rspec-pending-for")
+ (version "0.1.16")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/pboling/rspec-pending_for")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "107l560vm0kx25w5iy5rsk9ly8dxzr81b31284j514f4hkd0qv3m"))))
+ (build-system ruby-build-system)
+ (native-inputs (list ruby-rspec ruby-simplecov))
+ (propagated-inputs (list ruby-rspec-core ruby-ruby-engine
+ ruby-ruby-version))
+ (synopsis "Skip RSpec tests for specific Ruby engines or versions")
+ (description "This RSpec plugin makes it easy to mark test cases as
+pending or skipped for a specific Ruby engine (e.g. MRI or JRuby) or version
+combinations.")
+ (home-page "https://github.com/pboling/rspec-pending_for")
+ (license license:expat)))
+
(define-public ruby-rspec-rerun
(package
(name "ruby-rspec-rerun")
@@ -860,6 +1009,42 @@ RSpec tests.")
(home-page "https://github.com/dblock/rspec-rerun")
(license license:expat)))
+(define-public ruby-rspec-stubbed-env
+ ;; There is no release nor tag (see:
+ ;; https://github.com/pboling/rspec-stubbed_env/issues/7).
+ (let ((revision "0")
+ (commit "9d767dec77a6d130f6ad83c48a00a5c81b14b9fa"))
+ (package
+ (name "ruby-rspec-stubbed-env")
+ (version (git-version "1.0.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pboling/rspec-stubbed_env")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1dy4m04h613dp0s59rknjd6h4lqs1h17mffc5kd8kh046mk8nr1p"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:test-target "spec"
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'streamline-requirements
+ (lambda _
+ ;; Remove extraneous development dependencies.
+ (substitute* "rspec-stubbed_env.gemspec"
+ ((".*bundler.*") "")
+ ((".*rubocop.*") "")))))))
+ (native-inputs (list ruby-simplecov))
+ (propagated-inputs (list ruby-rspec))
+ (synopsis "RSpec plugin to stub environment variables")
+ (description
+ "This RSpec plugin can be used to stub environment variables in a scoped
+context for testing.")
+ (home-page "https://github.com/pboling/rspec-stubbed_env")
+ (license license:expat))))
+
(define-public ruby-rspec-wait
(package
(name "ruby-rspec-wait")
@@ -892,13 +1077,13 @@ interactions.")
(define-public ruby-rspec
(package
(name "ruby-rspec")
- (version "3.8.0")
+ (version "3.12.0")
(source (origin
(method url-fetch)
(uri (rubygems-uri "rspec" version))
(sha256
(base32
- "15ppasvb9qrscwlyjz67ppw1lnxiqnkzx5vkx1bd8x5n3dhikxc3"))))
+ "171rc90vcgjl8p1bdrqa92ymrj8a87qf6w20x05xq29mljcigi6c"))))
(build-system ruby-build-system)
(arguments
'(#:tests? #f)) ; avoid dependency cycles
@@ -923,18 +1108,49 @@ expectations and mocks frameworks.")
(propagated-inputs
(list ruby-rspec-core-2 ruby-rspec-mocks-2 ruby-rspec-expectations-2))))
+(define-public ruby-rspec-debug
+ (package
+ (name "ruby-rspec-debug")
+ (version "0.2.0")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/ko1/rspec-debug")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "125p1zxjznkk765nyqvkksw8x1nbm7xk4sjc1wza2fyp5hvyiddn"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:test-target "spec"
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'relax-dependencies
+ (lambda _
+ (substitute* "Gemfile"
+ (("~>") ">=")))))))
+ (native-inputs (list ruby-rspec))
+ (propagated-inputs (list ruby-debug))
+ (synopsis "Invoke Ruby debugger when spec fails")
+ (description "This package can be used to have the execution stopped for
+inspection in the Ruby debugger upon encountering a failure. To use it, set
+the @env{RSPEC_DEBUG} environment variable to @samp{true} then invoke the
+@command{rspec} command as usual.")
+ (home-page "https://github.com/ko1/rspec-debug")
+ (license license:expat)))
+
;; Bundler is yet another source of circular dependencies, so we must disable
;; its test suite as well.
(define-public bundler
(package
(name "bundler")
- (version "2.1.4")
+ (version "2.4.10")
(source (origin
(method url-fetch)
(uri (rubygems-uri "bundler" version))
(sha256
(base32
- "12glbb1357x91fvd004jgkw7ihlkpc9dwr349pd7j83isqhls0ah"))))
+ "08d1nj2h4yl6c1bnrwl2pk1kcskpgi6fvyd8fs36lfh68jlnz05r"))))
(build-system ruby-build-system)
(arguments
'(#:tests? #f)) ; avoid dependency cycles
@@ -1214,14 +1430,14 @@ under the hood.")
(define-public ruby-slim
(package
(name "ruby-slim")
- (version "4.1.0")
+ (version "5.1.0")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "slim" version))
(sha256
(base32
- "0gjx30g84c82qzg32bd7giscvb4206v7mvg56kc839w9wjagn36n"))))
+ "1rp437r8hr9kdgabb7c96yw4z2wyrajl4cxiij038y10f8i6hbn4"))))
(build-system ruby-build-system)
(arguments
`(#:phases
@@ -1235,18 +1451,16 @@ under the hood.")
"def skipped_test_render_with_markdown"))
(substitute* "test/translator/test_translator.rb"
(("raise (\"Missing test for.*)" _ tail)
- (string-append "print " tail)))
- #t))
+ (string-append "print " tail)))))
;; See: https://salsa.debian.org/ruby-team/ruby-slim/-/commit/
;; 824862bd99d1675bc699d8fc71ba965a785c1f44.
(add-after 'unpack 'prevent-bundler-interference
(lambda _
(substitute* "Rakefile"
(("require 'bundler/setup'") "nil")
- (("Bundler::GemHelper\\.install_tasks") "nil"))
- #t)))))
+ (("Bundler::GemHelper\\.install_tasks") "nil")))))))
(native-inputs
- (list ruby-rack-test ruby-sinatra))
+ (list ruby-rack-test ruby-rspec-core ruby-sinatra))
(propagated-inputs
(list ruby-temple ruby-tilt))
(synopsis "Minimalist template language for Ruby")
@@ -1408,15 +1622,19 @@ Style Sheets (CSS) rule sets in Ruby.")
"0mbxzw7r7hv43db9422flc24ib9d8bdy1nasbni2h998jc5a5lb6"))))
(build-system ruby-build-system)
(arguments
- `(#:phases (modify-phases %standard-phases
- (add-after 'unpack 'do-not-use-bundler
- (lambda _
- (substitute* "spec/spec_helper.rb"
- ((".*[Bb]undler.*") ""))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "rspec" "-Ilib" "-rprawn-svg")))))))
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'do-not-use-bundler
+ (lambda _
+ (substitute* "spec/spec_helper.rb"
+ ((".*[Bb]undler.*") ""))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; This test fails due to the recent rspec 3.12 used
+ ;; (see: https://github.com/mogest/prawn-svg/issues/151).
+ (delete-file "spec/prawn/svg/interface_spec.rb")
+ (invoke "rspec" "-Ilib" "-rprawn-svg")))))))
(native-inputs (list ruby-rspec))
(propagated-inputs (list ruby-css-parser ruby-prawn))
(synopsis "SVG renderer for the Prawn PDF library")
@@ -1537,64 +1755,139 @@ logic.")
(home-page "https://github.com/typhoeus/typhoeus")
(license license:expat)))
-(define-public ruby-rubocop-rspec
+;;; A minimal variant used to build ruby-rubocop itself.
+(define ruby-rubocop-capybara-minimal
(package
- (name "ruby-rubocop-rspec")
- (version "2.2.0")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/rubocop-hq/rubocop-rspec")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0gdpjpympb6qc77bang759z7z6lckf14ghkx8v6614agxg8l3g5y"))))
+ (name "ruby-rubocop-capybara")
+ (version "2.17.1")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/rubocop/rubocop-capybara")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "137y21b6g0kj1001zp95gwchx2cvgz8pglw2ik1cw647lh77qdsp"))))
(build-system ruby-build-system)
+ (arguments (list #:tests? #f))
+ (synopsis "Capybara plugin for RuboCop")
+ (description "This package provides a RuboCop plugin that can be used for
+code style checking of Capybara test files (RSpec, Cucumber, Minitest).")
+ (home-page "https://github.com/rubocop/rubocop-capybara")
+ (license license:expat)))
+
+(define-public ruby-rubocop-capybara
+ (package
+ (inherit ruby-rubocop-capybara-minimal)
(arguments
- '(#:test-target "internal_investigation"
- #:phases
- (modify-phases %standard-phases
- (add-before 'check 'set-HOME
- (lambda _
- (setenv "HOME" "/tmp")
- #t)))))
- (propagated-inputs
- (list ruby-rubocop ruby-rubocop-ast))
+ (list #:test-target "spec"
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ (substitute* "Gemfile"
+ (("gem 'rubocop-rspec', '~> 2.16.0'")
+ "gem 'rubocop-rspec', '>= 2.16.0'")))))))
(native-inputs
- (list ruby-rack ruby-rspec ruby-rubocop-performance ruby-simplecov
- ruby-yard))
+ (list ruby-bump
+ ruby-rack
+ ruby-rake
+ ruby-rspec
+ ruby-rubocop
+ ruby-rubocop-performance-minimal
+ ruby-rubocop-rake-minimal
+ ruby-rubocop-rspec-minimal
+ ruby-simplecov
+ ruby-yard))))
+
+;;; A minimal variant used to build ruby-rubocop itself.
+(define ruby-rubocop-rake-minimal
+ (package
+ (name "ruby-rubocop-rake")
+ (version "0.6.0")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/rubocop/rubocop-rake")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1r53szwglikbir1fvpz4i51p915khrrkl6rp61zcx3dcrclkr3ld"))))
+ (build-system ruby-build-system)
+ (arguments (list #:tests? #f)) ;avoid extra dependencies
+ (synopsis "RuboCop plugin for Rake")
+ (description "This package provides a RuboCop plugin for Rake.")
+ (home-page "https://github.com/rubocop/rubocop-rake")
+ (license license:expat)))
+
+(define-public ruby-rubocop-rake
+ (package
+ (inherit ruby-rubocop-rake-minimal)
+ (arguments
+ (list #:test-target "spec"))
+ (native-inputs
+ (list ruby-rake
+ ruby-rspec
+ ruby-rubocop
+ ruby-rubocop-rspec))
+ (propagated-inputs
+ (list ruby-rubocop))))
+
+;;; A minimal variant used to build ruby-rubocop itself.
+(define ruby-rubocop-rspec-minimal
+ (package
+ (name "ruby-rubocop-rspec")
+ (version "2.19.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rubocop/rubocop-rspec")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0mgjyrzi8r44v3gb8xscdwspirz9kqkaf7zlsjhhlxr0di0rlj2r"))))
+ (build-system ruby-build-system)
+ (arguments (list #:tests? #f)) ;avoid extra dependencies
(synopsis "Code style checking for RSpec files")
(description "This package provides a plugin for the RuboCop code style
enforcing & linting tool.")
- (home-page "https://github.com/rubocop-hq/rubocop-rspec")
+ (home-page "https://github.com/rubocop/rubocop-rspec")
(license license:expat)))
-(define-public ruby-rubocop-rspec-minimal
- (hidden-package
- (package
- (inherit ruby-rubocop-rspec)
- (arguments
- (substitute-keyword-arguments (package-arguments ruby-rubocop-rspec)
- ((#:tests? _ #f) #f)))
- (propagated-inputs '())
- (native-inputs '()))))
+(define-public ruby-rubocop-rspec
+ (package
+ (inherit ruby-rubocop-rspec-minimal)
+ (arguments '(#:test-target "spec"))
+ (native-inputs
+ (list ruby-bump
+ ruby-rack
+ ruby-rspec
+ ruby-rubocop-performance-minimal
+ ruby-rubocop-rake-minimal
+ ruby-simplecov
+ ruby-yard))
+ (propagated-inputs
+ (list ruby-rubocop
+ ruby-rubocop-ast
+ ruby-rubocop-capybara))))
(define-public ruby-rubocop-performance
(package
(name "ruby-rubocop-performance")
- (version "1.9.2")
+ (version "1.16.0")
(source
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/rubocop-hq/rubocop-performance")
+ (url "https://github.com/rubocop/rubocop-performance")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
- "04lmkmz6c0ccs5miikrww7lakp7y6xz00g7b47ay7rn7sx5j6qyf"))))
+ "1axafki2mpdz38y7i0afmnxcan5wj54l8crp8pbs7h1cip7y4s49"))))
(build-system ruby-build-system)
(arguments
`(#:tests? #f ; tests require a git checkout of rubocop's source code.
@@ -1604,12 +1897,11 @@ enforcing & linting tool.")
(lambda _
(substitute* "rubocop-performance.gemspec"
(("`git ls-files -z config lib LICENSE.txt README.md`")
- "`find config lib LICENSE.txt README.md -type f -print0 |sort -z`"))
- #t))
+ "`find config lib LICENSE.txt README.md \
+-type f -print0 |sort -z`"))))
(add-before 'check 'set-HOME
(lambda _
- (setenv "HOME" "/tmp")
- #t)))))
+ (setenv "HOME" "/tmp"))))))
(propagated-inputs
(list ruby-rubocop ruby-rubocop-ast))
(native-inputs
@@ -1690,10 +1982,47 @@ only what they care about.")
(home-page "https://github.com/searls/gimme")
(license license:expat))))
+(define-public ruby-stud
+ (package
+ (name "ruby-stud")
+ (version "0.0.23")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "stud" version))
+ (sha256
+ (base32
+ "0qpb57cbpm9rwgsygqxifca0zma87drnlacv49cqs2n5iyi6z8kb"))))
+ (build-system ruby-build-system)
+ (native-inputs (list ruby-rspec))
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ ;; No Rakefile is included, so run rspec directly.
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rspec")))))))
+ (synopsis "Retries, worker supervision, resource pools and more for Ruby")
+ (description "The Stud Ruby library adds a few things missing from the
+standard Ruby library such as:
+@table @code
+@item {Stud::Try}
+Retry on failure, with back-off, where failure is any exception.
+@item {Stud::Pool}
+Generic resource pools.
+@item {Stud::Task}
+Tasks (threads that can return values, exceptions, etc.)
+@item {Stud.interval}
+Interval execution (do X every N seconds).
+@item {Stud::Buffer}
+Batch and flush behavior.
+@end itemize")
+ (home-page "https://github.com/jordansissel/ruby-stud")
+ (license license:asl2.0)))
+
(define-public ruby-standard
(package
(name "ruby-standard")
- (version "0.4.7")
+ (version "1.25.3")
(source
(origin
(method git-fetch) ;no test suite in distributed gem
@@ -1703,22 +2032,38 @@ only what they care about.")
(file-name (git-file-name name version))
(sha256
(base32
- "0ylx0lm2pbbgr5h7fban592w96bl3wxmvfcpcdfrhkxnpg5kiwgv"))))
+ "0q42gv7wgrc818a5hm599sy07vjq69hbijzpkpgh6jws6x7wzyh3"))))
(build-system ruby-build-system)
(arguments
- ;; TODO: the tests are currently broken due to using a newer Rubocop.
- `(#:tests? #f
- #:phases
+ `(#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'relax-version-requiremens
+ (add-after 'unpack 'set-HOME
(lambda _
- (delete-file "Gemfile")
- (delete-file "Gemfile.lock")
- #t)))))
+ ;; Some tests fail otherwise.
+ (setenv "HOME" "/tmp")))
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ (substitute* "standard.gemspec"
+ (("\"rubocop\", \"1.44.1\"")
+ "\"rubocop\", \">= 1.44.1\"")
+ (("\"rubocop-performance\", \"1.15.2\"")
+ "\"rubocop-performance\", \">= 1.15.2\""))))
+ (add-after 'unpack 'delete-problematic-tests
+ ;; These tests fail for unknown reasons (see:
+ ;; https://github.com/testdouble/standard/issues/532).
+ (lambda _
+ (for-each
+ delete-file
+ '("test/standard_test.rb"
+ "test/standard/cop/block_single_line_braces_test.rb")))))))
(native-inputs
- (list ruby-gimme ruby-pry ruby-simplecov))
+ (list ruby-gimme
+ ruby-pry
+ ruby-simplecov))
(propagated-inputs
- (list ruby-rubocop ruby-rubocop-performance))
+ (list ruby-language-server-protocol
+ ruby-rubocop
+ ruby-rubocop-performance))
(synopsis "Ruby Style Guide, with linter & automatic code fixer")
(description "Standard is a port of StandardJS. Like StandardJS, it aims
to save time in the following ways:
@@ -2024,6 +2369,34 @@ format.")
(home-page "https://github.com/nicksieger/ci_reporter")
(license license:expat)))
+(define-public ruby-console
+ (package
+ (name "ruby-console")
+ (version "1.16.2")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "console" version))
+ (sha256
+ (base32
+ "0y1bv3kd1l9p0k5n3anvvjxdrcq113pyngz2g29i9mvdgbbx7kq2"))))
+ (build-system ruby-build-system)
+ ;; XXX: Disable test suite to avoid dependency cycles with ruby-samovar.
+ (arguments (list #:tests? #f))
+ (propagated-inputs (list ruby-fiber-local))
+ (synopsis "Console logging library for Ruby")
+ (description "This gem provides beautiful console logging for Ruby
+applications. It implements fast, buffered log output and has the following
+features:
+@itemize
+@item Thread safe global logger with per-fiber context
+@item Carry along context with nested loggers
+@item Enable/disable log levels per class
+@item Detailed logging of exceptions
+@item Beautiful logging to the terminal or structured logging using JSON.
+@end itemize")
+ (home-page "https://github.com/socketry/console")
+ (license license:expat)))
+
(define-public ruby-contracts
(package
(name "ruby-contracts")
@@ -2088,6 +2461,34 @@ code in Merb and Rails.")
(home-page "https://github.com/jnunemaker/crack")
(license license:expat)))
+(define-public ruby-clamp
+ (package
+ (name "ruby-clamp")
+ (version "1.3.2")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "clamp" version))
+ (sha256
+ (base32
+ "08m0syh06bhx8dqn560ivjg96l5cs5s3l9jh2szsnlcdcyl9jsjg"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:test-target "spec"
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'do-not-require-rubocop
+ (lambda _
+ (substitute* "Rakefile"
+ (("require \"rubocop/rake_task\"")
+ "")
+ (("RuboCop::RakeTask.new")
+ "")))))))
+ (native-inputs (list ruby-rspec))
+ (synopsis "Command-line parsing library for Ruby")
+ (description "Clamp provides an object-model for command-line utilities.
+It handles parsing of command-line options, and generation of usage help.")
+ (home-page "https://github.com/mdub/clamp")
+ (license license:expat)))
+
(define-public ruby-cliver
(package
(name "ruby-cliver")
@@ -2225,19 +2626,48 @@ complexity.")
(define-public ruby-oauth2
(package
(name "ruby-oauth2")
- (version "1.4.2")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "oauth2" version))
- (sha256
- (base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036"))))
- (build-system ruby-build-system)
- (arguments
- '(#:tests? #f)) ; no included tests
+ (version "2.0.9")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://gitlab.com/oauth-xx/oauth2")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "191j1f4gjw8wij1jy2fvddgi8cv1mm0ki7v0b0795clix1avnj29"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ (substitute* "Gemfile"
+ (("^linting = .*")
+ "linting = false\n")
+ (("^coverage = .*")
+ "coverage = false\n")
+ (("^debug = .*")
+ "debug = false\n"))
+ (substitute* "spec/spec_helper.rb"
+ (("^RUN_COVERAGE = .*")
+ "RUN_COVERAGE = false\n")
+ (("^ALL_FORMATTERS = .*")
+ "ALL_FORMATTERS = false\n")))))))
+ (native-inputs
+ (list ruby-addressable
+ ruby-backports
+ ruby-rexml
+ ruby-rspec-block-is-expected
+ ruby-rspec-pending-for
+ ruby-rspec-stubbed-env
+ ruby-silent-stream))
(propagated-inputs
- (list ruby-faraday ruby-jwt ruby-multi-json ruby-multi-xml
- ruby-rack))
+ (list ruby-faraday
+ ruby-jwt
+ ruby-multi-json
+ ruby-multi-xml
+ ruby-rack
+ ruby-snaky-hash))
(synopsis "Ruby wrapper for the OAuth 2.0")
(description
"This package provides a Ruby wrapper for the OAuth 2.0 protocol built
@@ -2248,18 +2678,32 @@ with a similar style to the original OAuth spec.")
(define-public ruby-omniauth
(package
(name "ruby-omniauth")
- (version "2.0.3")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "omniauth" version))
- (sha256
- (base32 "105mzgvmn2kjaacxw01h4wqv33r7hfn5z8fxlkk3jcjar14j71bh"))))
+ (version "2.1.1")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/omniauth/omniauth")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1mm7a4ll7ymamrbsl63yi6i34qpwmh2nh5a9kj961gja1iz2gyd1"))))
(build-system ruby-build-system)
- (propagated-inputs
- (list ruby-hashie ruby-rack ruby-rack-protection))
- (native-inputs
- (list ruby-rspec))
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ (substitute* "spec/helper.rb"
+ ;; This condition is used to require coveralls and
+ ;; simplecov; override it to avoid these extraneous
+ ;; requirements.
+ (("RUBY_VERSION >= '1.9'")
+ "false")
+ (("require 'rack/freeze'") "")))))))
+ (native-inputs (list ruby-rspec))
+ (propagated-inputs (list ruby-hashie ruby-rack ruby-rack-test
+ ruby-rack-protection))
(synopsis "Generalized Rack framework for multiple-provider authentication")
(description
"This package provides a generalized Rack framework for multiple-provider
@@ -2270,32 +2714,28 @@ authentication.")
(define-public ruby-omniauth-oauth2
(package
(name "ruby-omniauth-oauth2")
- (version "1.7.1")
+ (version "1.8.0")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "omniauth-oauth2" version))
(sha256
(base32
- "10fr2b58sp7l6nfdvxpbi67374hkrvsf507cvda89jjs0jacy319"))))
+ "0y4y122xm8zgrxn5nnzwg6w39dnjss8pcq2ppbpx9qn7kiayky5j"))))
(build-system ruby-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'remove-unnecessary-dependencies
- (lambda _
- ;; The coveralls gem submits coverage information to an online
- ;; service, and is unnecessary when running the tests
- (substitute* "Gemfile"
- ((".*coveralls\"") ""))
- (substitute* "spec/helper.rb"
- (("require \"coveralls\"") "")
- (("Coveralls::SimpleCov::Formatter") ""))
- #t)))))
- (propagated-inputs
- (list ruby-oauth2 ruby-omniauth))
- (native-inputs
- (list bundler ruby-rspec ruby-simplecov ruby-rack-test ruby-webmock))
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ (substitute* "spec/helper.rb"
+ ;; This condition is used to require coveralls and
+ ;; simplecov; override it to avoid these extraneous
+ ;; requirements.
+ (("RUBY_VERSION >= \"1.9\"")
+ "false")))))))
+ (propagated-inputs (list ruby-oauth2 ruby-omniauth))
+ (native-inputs (list ruby-rspec ruby-rack-test ruby-webmock))
(synopsis "Abstract OAuth2 strategy for OmniAuth")
(description
"This library provides a generic OAuth2 strategy for OmniAuth. It
@@ -2598,72 +3038,73 @@ Ruby.")
(home-page "https://github.com/maik/xml-simple")
(license license:ruby)))
+(define-public ruby-xpath
+ (package
+ (name "ruby-xpath")
+ (version "3.2.0")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "xpath" version))
+ (sha256
+ (base32
+ "0bh8lk9hvlpn7vmi6h4hkcwjzvs2y0cmkk3yjjdr8fxvj6fsgzbd"))))
+ (build-system ruby-build-system)
+ (arguments (list #:phases #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rspec" "spec" )))))))
+ (native-inputs (list ruby-pry ruby-rspec))
+ (propagated-inputs (list ruby-nokogiri))
+ (synopsis "Ruby DSL for generating XPath expressions")
+ (description "XPath is a Ruby domain-specific language (DSL) for
+generating XPath expressions.")
+ (home-page "https://github.com/teamcapybara/xpath")
+ (license license:expat)))
+
(define-public ruby-thor
(package
(name "ruby-thor")
- (version "1.0.1")
+ (version "1.2.1")
(source (origin
;; Pull from git because the gem has no tests.
(method git-fetch)
(uri (git-reference
- (url "https://github.com/erikhuda/thor")
+ (url "https://github.com/rails/thor")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
- "1anrx5vynk57hn5c8ig5pgkmcsbj9q5mvckd5rviw1jid7n89k57"))))
+ "1vjm628ks5kw8q6dskh38dqyz2j8c3n694wsqkj4jb4jrn6rkfzx"))))
(build-system ruby-build-system)
(arguments
- '(#:phases (modify-phases %standard-phases
- (add-after 'unpack 'fix-readline-tests
- (lambda _
- ;; Ensure Readline is initialized before running the
- ;; test to avoid a type clash with the mock ::Readline.
- ;; See <https://github.com/erikhuda/thor/pull/717>.
- (substitute* "spec/line_editor/readline_spec.rb"
- (("unless defined\\? ::Readline" all)
- (string-append "Thor::LineEditor::Readline.available?\n"
- all)))
- #t))
- (add-after 'unpack 'remove-coveralls-dependency
- (lambda _
- ;; Do not hook the test suite into the online
- ;; coveralls service.
- (substitute* "Gemfile"
- ((".*coveralls.*") ""))
- (substitute* "spec/helper.rb"
- (("require \"coveralls\"") "")
- (("Coveralls::SimpleCov::Formatter") "")
- ;; Also drop the WebMock dependency which is only
- ;; present to allow a coveralls.io connection, and
- ;; would otherwise introduce a circular dependency.
- (("require \"webmock/rspec\"") "")
- (("WebMock\\.disable_net_connect.*") ""))
- #t))
- (add-after 'unpack 'disable-network-tests
- (lambda _
- ;; These tests attempt to look up example.com.
- (substitute* "spec/actions/file_manipulation_spec.rb"
- (("it \"accepts (https?) remote sources" _ proto)
- (string-append "xit \"accepts " proto " remote sources")))
- #t))
- (add-after 'unpack 'disable-quality-tests
- (lambda _
- ;; These tests attempt to check the git repository for
- ;; tabs vs spaces, double vs single quotes, etc, and
- ;; depend on the git checkout.
- (delete-file "spec/quality_spec.rb")
- #t))
- (add-before 'check 'make-files-writable
- (lambda _
- ;; The tests needs rw access to the test suite.
- (for-each make-file-writable (find-files "spec"))
- #t))
- (replace 'check
- (lambda _
- (invoke "rspec" "spec"))))))
- (native-inputs
- (list ruby-rspec ruby-simplecov))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-coveralls-dependency
+ (lambda _
+ ;; Do not hook the test suite into the online coveralls service.
+ (substitute* "Gemfile"
+ ((".*coveralls.*") ""))
+ (substitute* "spec/helper.rb"
+ (("require \"coveralls\"") "")
+ (("Coveralls::SimpleCov::Formatter") ""))))
+ (add-after 'unpack 'disable-problematic-tests
+ (lambda _
+ ;; These tests attempt to check the git repository for
+ ;; tabs vs spaces, double vs single quotes, etc, and
+ ;; depend on the git checkout.
+ (delete-file "spec/quality_spec.rb")
+ (substitute* "spec/parser/options_spec.rb"
+ ;; This test fails for unknown reasons (see:
+ ;; https://github.com/rails/thor/issues/814).
+ (("it \"raises an error for unknown switches" all)
+ (string-append "x" all)))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rspec" "spec" )))))))
+ (native-inputs (list ruby-rspec ruby-simplecov ruby-webmock))
(synopsis "Ruby toolkit for building command-line interfaces")
(description "Thor is a toolkit for building powerful command-line
interfaces.")
@@ -3230,46 +3671,88 @@ Ruby Gems.")
(define-public ruby-rubyzip
(package
- (name "ruby-rubyzip")
- (version "1.2.1")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "rubyzip" version))
- (sha256
- (base32
- "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
- (build-system ruby-build-system)
- (arguments
- '(#:phases
- (modify-phases %standard-phases
- (add-before 'check 'patch-tests
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "test/gentestfiles.rb"
- (("/usr/bin/zip")
- (string-append
- (assoc-ref inputs "zip") "/bin/zip")))
- (substitute* "test/input_stream_test.rb"
- (("/usr/bin/env ruby") (which "ruby")))
- #t)))))
- (native-inputs
- (list bundler ruby-simplecov zip unzip))
- (synopsis "Ruby module is for reading and writing zip files")
- (description
- "The rubyzip module provides ways to read from and create zip files.")
- (home-page "https://github.com/rubyzip/rubyzip")
- (license license:bsd-2)))
+ (name "ruby-rubyzip")
+ (version "2.3.2")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rubyzip/rubyzip")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "03p8c990n6c1r4g64w0vv7z2iaswisl07l2f1lbh1s78cvmlmfxx"))))
+ (build-system ruby-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'disable-rubocop
+ (lambda _
+ (substitute* "Rakefile"
+ (("require 'rubocop/rake_task'") "")
+ (("RuboCop::RakeTask.new") ""))))
+ (add-before 'check 'patch-tests
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "test/gentestfiles.rb"
+ (("/usr/bin/zip") (which "zip")))
+ (substitute* "test/input_stream_test.rb"
+ (("/usr/bin/env ruby") (which "ruby")))))
+ (add-before 'check 'disable-problematic-tests
+ (lambda _
+ (let-syntax ((skip-tests
+ (syntax-rules ()
+ ((_ file test ...)
+ (substitute* file
+ (((string-append "def " test ".*") all)
+ (string-append
+ all " skip('fails on guix')\n")) ...)))))
+ ;; The test failures were reported here:
+ ;; https://github.com/rubyzip/rubyzip/issues/552.
+ (skip-tests "test/stored_support_test.rb"
+ "test_read")
+ (skip-tests "test/stored_support_test.rb"
+ "test_encrypted_read")
+ (skip-tests "test/output_stream_test.rb"
+ "test_put_next_entry_using_zip_entry_creates_\
+entries_with_correct_timestamps")
+ (skip-tests "test/file_options_test.rb"
+ "test_restore_times_true")))))))
+ (native-inputs
+ (list bundler ruby-simplecov zip unzip))
+ (synopsis "Ruby module is for reading and writing zip files")
+ (description
+ "The rubyzip module provides ways to read from and create zip files.")
+ (home-page "https://github.com/rubyzip/rubyzip")
+ (license license:bsd-2)))
+
+(define-public ruby-silent-stream
+ (package
+ (name "ruby-silent-stream")
+ (version "1.0.6")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "silent_stream" version))
+ (sha256
+ (base32
+ "10381fpvjzfjvhgfyv700607fpa29firgf52w5w5536m4fh6x63m"))))
+ (build-system ruby-build-system)
+ (synopsis "ActiveSupport stream silencing without ActiveSupport")
+ (description "SilentStream is an extraction of some parts of
+ActiveSupport's Kernel Reporting Core Extentions around silencing IO
+streams.")
+ (home-page "https://github.com/pboling/silent_stream")
+ (license license:expat)))
(define-public ruby-simplecov-html
(package
(name "ruby-simplecov-html")
- (version "0.10.2")
+ (version "0.12.3")
(source (origin
(method url-fetch)
(uri (rubygems-uri "simplecov-html" version))
(sha256
(base32
- "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
+ "0yx01bxa8pbf9ip4hagqkp5m0mqfnwnw2xk8kjraiywz4lrss6jb"))))
(build-system ruby-build-system)
(arguments `(#:tests? #f)) ; there are no tests
(native-inputs
@@ -3277,32 +3760,124 @@ Ruby Gems.")
(synopsis "Default HTML formatter for SimpleCov code coverage tool")
(description "This package provides the default HTML formatter for
the SimpleCov code coverage tool for Ruby version 1.9 and above.")
- (home-page "https://github.com/colszowka/simplecov-html")
+ (home-page "https://github.com/simplecov-ruby/simplecov-html")
+ (license license:expat)))
+
+(define-public ruby-simplecov-json-formatter
+ (package
+ (name "ruby-simplecov-json-formatter")
+ (version "0.1.4")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "simplecov_json_formatter" version))
+ (sha256
+ (base32
+ "0a5l0733hj7sk51j81ykfmlk2vd5vaijlq9d5fn165yyx3xii52j"))))
+ (build-system ruby-build-system)
+ ;; The test suite is disabled because it requires simplecov, which
+ ;; requires this, introducing a dependency cycle.
+ (arguments (list #:tests? #f))
+ (synopsis "JSON formatter for SimpleCov")
+ (description "This package provides a JSON formatter for SimpleCov, the
+Ruby code coverage tool.")
+ (home-page
+ "https://github.com/codeclimate-community/simplecov_json_formatter")
(license license:expat)))
(define-public ruby-simplecov
(package
(name "ruby-simplecov")
- (version "0.17.1")
+ (version "0.22.0")
(source (origin
(method url-fetch)
(uri (rubygems-uri "simplecov" version))
(sha256
(base32
- "1135k46nik05sdab30yxb8264lqiz01c8v000g16cl9pjc4mxrdw"))))
+ "198kcbrjxhhzca19yrdcd6jjj9sb51aaic3b0sc3pwjghg3j49py"))))
(build-system ruby-build-system)
;; Simplecov depends on rubocop for code style checking at build time.
;; Rubocop needs simplecov at build time.
(arguments `(#:tests? #f))
(propagated-inputs
- (list ruby-json ruby-docile ruby-simplecov-html))
- (native-inputs
- (list bundler))
+ (list ruby-json
+ ruby-docile
+ ruby-simplecov-html
+ ruby-simplecov-json-formatter))
(synopsis "Code coverage framework for Ruby")
(description "SimpleCov is a code coverage framework for Ruby with a
powerful configuration library and automatic merging of coverage across test
suites.")
- (home-page "https://github.com/colszowka/simplecov")
+ (home-page "https://github.com/simplecov-ruby/simplecov")
+ (license license:expat)))
+
+(define-public ruby-simplecov-lcov
+ (package
+ (name "ruby-simplecov-lcov")
+ (version "0.8.0")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "simplecov-lcov" version))
+ (sha256
+ (base32
+ "1h8kswnshgb9zidvc88f4zjy4gflgz3854sx9wrw8ppgnwfg6581"))))
+ (build-system ruby-build-system)
+ ;; The test suite fails half of its tests; it seems to rely on older
+ ;; versions of simplecov, rspec, possibly others (see:
+ ;; https://github.com/fortissimo1997/simplecov-lcov/issues/29).
+ (arguments (list #:tests? #f
+ #:test-target "spec"))
+ (native-inputs
+ (list ruby-activesupport
+ ruby-coveralls
+ ruby-rspec
+ ruby-simplecov))
+ (synopsis "SimpleCov formatter to generate a lcov style coverage")
+ (description "This package provides a SimpleCov formatter to generate a
+lcov-style coverage report.")
+ (home-page "https://github.com/fortissimo1997/simplecov-lcov")
+ (license license:expat)))
+
+(define-public ruby-snaky-hash
+ (package
+ (name "ruby-snaky-hash")
+ (version "2.0.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference ;for tests
+ (url "https://gitlab.com/oauth-xx/snaky_hash")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0zmixxzi2g2d75zii65bq037j4g67p25l6aqddbmmwizspsp5az6"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ (substitute* "Gemfile"
+ (("^linting = .*")
+ "linting = false\n")
+ (("^coverage = .*")
+ "coverage = false\n")
+ (("^debug = .*")
+ "debug = false\n"))
+ (substitute* "spec/spec_helper.rb"
+ (("^RUN_COVERAGE = .*")
+ "RUN_COVERAGE = false\n")
+ (("^ALL_FORMATTERS = .*")
+ "ALL_FORMATTERS = false\n"))))
+ (add-before 'build 'drop-signing-key-requirement
+ (lambda _
+ (substitute* "snaky_hash.gemspec"
+ (("spec.signing_key =.*")
+ "spec.signing_key = nil")))))))
+ (native-inputs (list ruby-rspec ruby-rspec-block-is-expected))
+ (propagated-inputs (list ruby-hashie ruby-version-gem))
+ (synopsis "Hash keys and look-ups normalization Ruby library")
+ (description "The SnakyHash Ruby library provides classes for normalizing
+hash keys and look-ups, and a pseudo-object interface.")
+ (home-page "https://gitlab.com/oauth-xx/snaky_hash")
(license license:expat)))
(define-public ruby-useragent
@@ -3413,6 +3988,94 @@ output.")
(home-page "https://github.com/whitequark/bacon-colored_output")
(license license:expat)))
+(define-public ruby-bake
+ (package
+ (name "ruby-bake")
+ (version "0.18.2")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/ioquatix/bake")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "19yi1fxzz9n580gig3p3j6nxbgcfcassa6b0q07jkqrzxdqn7xhn"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'sanitize-dependencies
+ (lambda _
+ ;; These dependencies are not needed to build and run tests
+ ;; and contain circular dependencies.
+ (substitute* "gems.rb"
+ ((".*'bake-modernize'.*") "")
+ ((".*'bake-gem'.*") "")
+ ((".*'bake-github-pages'.*") "")
+ ((".*'utopia-project'.*") ""))))
+ (add-before 'build 'drop-signing-key-requirement
+ (lambda _
+ (substitute* "bake.gemspec"
+ (("spec.signing_key =.*")
+ "spec.signing_key = nil"))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rspec")))))))
+ (native-inputs (list ruby-covered ruby-rspec))
+ (propagated-inputs (list ruby-samovar))
+ (synopsis "Replacement for rake with a simpler syntax")
+ (description "Bake is a task execution tool, inspired by Rake, but
+codifying many of the use cases which are typically implemented in an ad-hoc
+manner.")
+ (home-page "https://github.com/ioquatix/bake")
+ (license license:expat)))
+
+(define-public ruby-bake-test
+ (package
+ (name "ruby-bake-test")
+ (version "0.2.0")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "bake-test" version))
+ (sha256
+ (base32
+ "1p6kfpncj0s4zyynrrq6c735jvh0dnwyv7kfqym4rpyka4f85qdp"))))
+ (build-system ruby-build-system)
+ ;; XXX: Disable the test suite to avoid a circular dependency with
+ ;; ruby-sus.
+ (arguments (list #:tests? #f))
+ (propagated-inputs (list ruby-bake))
+ (synopsis "Test suite automatic runner for Ruby")
+ (description "@command{bake-test} automatically discovers how to run local
+test suites for Ruby projects. It supports @command{rspec}, @command{sus}, as
+well as @samp{rake}.")
+ (home-page "https://github.com/ioquatix/bake-test")
+ (license license:expat)))
+
+(define-public ruby-bake-test-external
+ (package
+ (name "ruby-bake-test-external")
+ (version "0.3.2")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "bake-test-external" version))
+ (sha256
+ (base32
+ "0749xc7jkz1c5gsq1giwhrqy6s6xqm48bdvs414372881wki2jmh"))))
+ (build-system ruby-build-system)
+ ;; The test suite relies on git and network access to clone external
+ ;; repositories.
+ (arguments (list #:tests? #f))
+ (propagated-inputs (list ruby-bake))
+ (synopsis "Continuous integration extension for Bake")
+ (description "Bake Test External adds a @samp{test:external} action to the
+@command{bake} command to run the test suites of dependent projects to check
+for breakage.")
+ (home-page "https://github.com/ioquatix/bake-test-external")
+ (license license:expat)))
+
(define-public ruby-connection-pool
(package
(name "ruby-connection-pool")
@@ -3491,6 +4154,68 @@ interface for Ruby programs.")
;; Some parts are covered by the Ruby license, see file headers.
(license (list license:expat license:ruby))))
+(define-public ruby-fiber-local
+ (package
+ (name "ruby-fiber-local")
+ (version "1.0.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/socketry/fiber-local")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0pp5b81h0lysdnphgprkixh1az0fkrgir5sbcp0mm8arxf3f8m90"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'sanitize-dependencies
+ (lambda _
+ ;; This pulls in extraneous maintenance dependencies.
+ (delete-file "gems.rb")
+ ;; Depending on ruby-covered would introduce a dependency
+ ;; cycle with it.
+ (substitute* '("fiber-local.gemspec" "spec/spec_helper.rb")
+ ((".*covered.*") ""))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rspec")))))))
+ (native-inputs (list ruby-rspec))
+ (synopsis "Ruby module to simplify fiber-local state management")
+ (description "This package provides a class-level mixin to make managing
+fiber-local state easy. It provides easy access to a fiber-local state from a
+fiber, and defaults to a shared thread-local state.")
+ (home-page "https://github.com/socketry/fiber-local")
+ (license license:expat)))
+
+(define-public ruby-flores
+ (package
+ (name "ruby-flores")
+ (version "0.0.8")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "flores" version))
+ (sha256
+ (base32
+ "0pd8gqgy67rp1baq5r7himl0r9jzv5kqlhdmqh8wngynv548w2ai"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rspec")))))))
+ (native-inputs (list ruby-rspec ruby-simplecov))
+ (synopsis "Fuzzing, randomization, and stress testing library")
+ (description "Flores is a fuzzing, randomization, and stress library to
+help tests uncover more bugs.")
+ (home-page "https://github.com/jordansissel/ruby-flores")
+ (license license:asl2.0)))
+
(define-public ruby-net-http-persistent
(package
(name "ruby-net-http-persistent")
@@ -3510,6 +4235,127 @@ using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
(home-page "https://github.com/drbrain/net-http-persistent")
(license license:expat)))
+(define-public ruby-net-imap
+ (package
+ (name "ruby-net-imap")
+ (version "0.3.4")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/ruby/net-imap")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0nx49i1n9q1wpancqaac2srrpb8mb43mc8wryyqyhpgki2grwyxw"))))
+ (build-system ruby-build-system)
+ (arguments
+ ;; The test suite appears to rely on RFCs it tries fetching from the
+ ;; network (see: https://github.com/ruby/net-imap/issues/136).
+ (list #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'replace-git-ls-files 'adjust-for-git-ls-files
+ (lambda _
+ ;; Adjust the git ls-files invocation so that it matches
+ ;; the expected pattern.
+ (substitute* "net-imap.gemspec"
+ (("`git ls-files -z 2>/dev/null`")
+ "`git ls-files -z`")))))))
+ (propagated-inputs (list ruby-date ruby-net-protocol))
+ (synopsis "Ruby client api for Internet Message Access Protocol")
+ (description "@code{Net::IMAP} implements Internet Message Access
+Protocol (IMAP) client functionality. The protocol is described in
+@url{https://tools.ietf.org/html/rfc3501, IMAP}.")
+ (home-page "https://github.com/ruby/net-imap")
+ (license license:bsd-2)))
+
+(define-public ruby-net-pop
+ (package
+ (name "ruby-net-pop")
+ (version "0.1.2")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ruby/net-pop")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "05vz6a56va2rbr7ld78gdzwy1j5mzs98cz82ax5aqa83pzzk6jld"))))
+ (build-system ruby-build-system)
+ (propagated-inputs (list ruby-net-protocol))
+ (synopsis "Ruby client library for POP3")
+ (description "This library provides functionality for retrieving email via
+POP3, the Post Office Protocol version 3, as specified by
+@url{http://www.ietf.org/rfc/rfc1939.txt, RFC1939}.")
+ (home-page "https://github.com/ruby/net-pop")
+ (license license:bsd-2)))
+
+(define-public ruby-net-smtp
+ (package
+ (name "ruby-net-smtp")
+ (version "0.3.3")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/ruby/net-smtp")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0ca2wh45xvc09rv6v6sz3vbnkzrjzk5c4l6dk50zk4dwxvghma8r"))))
+ (build-system ruby-build-system)
+ (propagated-inputs (list ruby-net-protocol))
+ (synopsis "Simple Mail Transfer Protocol client library for Ruby")
+ (description "This library provides functionality to send Internet mail
+via SMTP, the Simple Mail Transfer Protocol. The SMTP protocol specification
+is known as @url{http://www.ietf.org/rfc/rfc2821.txt, RFC2821}.")
+ (home-page "https://github.com/ruby/net-smtp")
+ (license license:bsd-2)))
+
+(define-public ruby-pleaserun
+ (package
+ (name "ruby-pleaserun")
+ (version "0.0.32")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "pleaserun" version))
+ (sha256
+ (base32
+ "1aykf0l8327bqkkf5xd9jcglsib973zpy37cfnlf4j0vp0cdpn2d"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'relax-requirements
+ (lambda _
+ (substitute* "pleaserun.gemspec"
+ ;; Mustache is pinned at 0.99.8, for portability with
+ ;; older Rubies.
+ (("dependency\\(%q<mustache>.freeze.*")
+ "dependency(%q<mustache>.freeze)\n"))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; The cli_spec.rb test fails non-deterministically with
+ ;; a Errno::EISDIR error (see:
+ ;; https://github.com/jordansissel/pleaserun/issues/155)
+ (invoke "rspec" "--exclude-pattern" "cli_spec.rb")))))))
+ (native-inputs (list ruby-flores ruby-rspec))
+ (propagated-inputs (list ruby-cabin
+ ruby-clamp
+ ruby-dotenv
+ ruby-insist
+ ruby-mustache
+ ruby-stud))
+ (synopsis "Init scripts and service definitions generation tool")
+ (description "Pleaserun is a tool to generate startup scripts and service
+definitions. It targets service managers such as systemd, Upstart, launchd,
+sysv init, and runit.")
+ (home-page "https://github.com/jordansissel/pleaserun")
+ (license license:asl2.0)))
+
(define-public ruby-power-assert
(package
(name "ruby-power-assert")
@@ -3582,21 +4428,38 @@ localization.")
(define-public ruby-temple
(package
(name "ruby-temple")
- (version "0.8.2")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "temple" version))
- (sha256
- (base32
- "060zzj7c2kicdfk6cpnn40n9yjnhfrr13d0rsbdhdij68chp2861"))))
+ (version "0.10.0")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/judofyr/temple")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0rr9fnlcgj9nm3b6hzzjsvcw8x3y7z48j7slk7xxff2mh8s7y3y0"))))
(build-system ruby-build-system)
- (native-inputs
- (list ruby-tilt ruby-bacon ruby-erubis))
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'replace-git-ls-files 'replace-more-git-ls-files
+ (lambda _
+ (substitute* "temple.gemspec"
+ ;; There no longer are test, spec or features
+ ;; directories.
+ ((".*`git ls-files -- \\{test,spec,features}/\\*`.*")
+ "")
+ ;; There isn't any bin directory either.
+ ((".*`git ls-files -- bin/\\*`.*")
+ ""))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rspec")))))))
+ (native-inputs (list ruby-bacon ruby-erubi ruby-rspec ruby-tilt))
(synopsis "Template compilation framework in Ruby")
- (description
- "Temple is an abstraction and framework for compiling templates to pure
-Ruby.")
+ (description "Temple is an abstraction and framework for compiling
+templates to pure Ruby.")
(home-page "https://github.com/judofyr/temple")
(license license:expat)))
@@ -3713,6 +4576,30 @@ It allows writing tests, checking results and automated testing in Ruby.")
(home-page "https://test-unit.github.io/")
(license (list license:psfl license:ruby))))
+(define-public ruby-mapping
+ (package
+ (name "ruby-mapping")
+ (version "1.1.1")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/ioquatix/mapping")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0yhmqp8mprjqf9m7wzc4hhi50qbfax86r89w852csns0ijaffjjs"))))
+ (build-system ruby-build-system)
+ (arguments (list #:test-target "spec"))
+ (native-inputs (list ruby-rspec))
+ (synopsis "Map model objects based on their class to a given output model")
+ (description "The @code{mapping} gem maps model objects based on their
+class to a given output model. It is useful for versioning external
+interfaces (e.g. JSON APIs) or processing structured data from one format to
+another.")
+ (home-page "https://github.com/ioquatix/mapping")
+ (license license:expat)))
+
(define-public ruby-markaby
(package
(name "ruby-markaby")
@@ -3836,6 +4723,33 @@ to check for the presence of header files, constants, and so on.")
(home-page "https://github.com/djberg96/mkmf-lite")
(license license:asl2.0)))
+(define-public ruby-msgpack
+ (package
+ (name "ruby-msgpack")
+ (version "1.6.1")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/msgpack/msgpack-ruby")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "08wi853nv02clrdwx8s6dg9lmcyzq5fk84l4rb94pglps76rlvz7"))))
+ (build-system ruby-build-system)
+ (arguments (list #:test-target "spec"))
+ (native-inputs
+ (list ruby-rake-compiler
+ ruby-ruby-memcheck
+ ruby-rspec
+ ruby-yard))
+ (synopsis "Efficient object serialization library for Ruby")
+ (description "MessagePack is a binary-based efficient object serialization
+library. It enables to exchange structured objects between many languages
+like JSON. Unlike JSON, it is very fast and small.")
+ (home-page "https://msgpack.org/")
+ (license license:asl2.0)))
+
(define-public ruby-mspec
(package
(name "ruby-mspec")
@@ -4037,6 +4951,29 @@ encoded form.")
(home-page "https://github.com/deepfryed/idn-ruby")
(license license:asl2.0)))
+(define-public ruby-insist
+ (package
+ (name "ruby-insist")
+ (version "1.0.0")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "insist" version))
+ (sha256
+ (base32
+ "0bw3bdwns14mapbgb8cbjmr0amvwz8y72gyclq04xp43wpp5jrvg"))))
+ (build-system ruby-build-system)
+ (arguments (list #:phases #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "ruby" "test/testing.rb")))))))
+ (synopsis "Testing tool for Ruby")
+ (description "This package provides a simple block-driven assertion
+library for both testing and for production code that attempts to make test
+definitions more readable.")
+ (home-page "https://github.com/jordansissel/ruby-insist/")
+ (license license:asl2.0)))
+
(define-public ruby-instantiator
(package
(name "ruby-instantiator")
@@ -4139,6 +5076,27 @@ conversion to (X)HTML.")
(home-page "https://github.com/vmg/redcarpet")
(license license:expat)))
+(define-public ruby-reline
+ (package
+ (name "ruby-reline")
+ (version "0.3.3")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/ruby/reline")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1papa4f4prjml9qk6yydi4k5a4zgbzmxmbhd8fz9kfg1i34s35cw"))))
+ (build-system ruby-build-system)
+ (propagated-inputs (list ruby-io-console))
+ (synopsis "GNU Readline or Editline implementation in Ruby")
+ (description "Reline is a pure Ruby alternative GNU Readline or Editline
+implementation.")
+ (home-page "https://github.com/ruby/reline")
+ (license (list license:bsd-2 license:ruby)))) ;dual license
+
(define-public ruby-rerun
(package
(name "ruby-rerun")
@@ -4166,7 +5124,7 @@ Ruby, but can be used for all programs.")
(define-public ruby-maxitest
(package
(name "ruby-maxitest")
- (version "3.6.0")
+ (version "4.4.1")
(home-page "https://github.com/grosser/maxitest")
(source (origin
;; Pull from git because the gem does not contain tests.
@@ -4177,7 +5135,7 @@ Ruby, but can be used for all programs.")
(file-name (git-file-name name version))
(sha256
(base32
- "07b3j0bv3dx5j42jlvpvl07aaxplyi6wq688y3jl8y528ww2hjz8"))))
+ "0l646lgrgsfgg9qh05b8a3jd43kgrmr6xzbdvyspmdlhchk1qszg"))))
(build-system ruby-build-system)
(arguments
'(#:test-target "default"
@@ -4186,27 +5144,24 @@ Ruby, but can be used for all programs.")
(lambda _
(substitute* "maxitest.gemspec"
(("`git ls-files lib/ bin/ MIT-LICENSE Readme.md`")
- "`find lib/ bin/ MIT-LICENSE Readme.md -type f | sort`"))
- #t))
+ "`find lib/ bin/ MIT-LICENSE Readme.md -type f | sort`"))))
(add-before 'check 'remove-version-constraints
(lambda _
;; Don't use specific versions of dependencies, instead
;; take whatever is available in Guix.
- (delete-file "Gemfile.lock")
- #t))
+ (delete-file "Gemfile.lock")))
(add-before 'check 'add-mtest-on-PATH
(lambda _
;; Tests use 'mtest' which is not automatically added on
;; PATH.
(setenv "PATH" (string-append (getcwd) "/bin:"
- (getenv "PATH")))
- #t)))))
+ (getenv "PATH"))))))))
(native-inputs
- `(("ps" ,procps)
- ("ruby-bump" ,ruby-bump)
- ("ruby-byebug" ,ruby-byebug)
- ("ruby-rspec" ,ruby-rspec)
- ("ruby-wwtd" ,ruby-wwtd)))
+ (list procps
+ ruby-bump
+ ruby-byebug
+ ruby-rspec
+ ruby-wwtd))
(propagated-inputs
(list ruby-minitest))
(synopsis "Minitest with extra features")
@@ -4295,8 +5250,7 @@ with processes on remote servers, via SSH2.")
(define-public ruby-net-scp
(package
(name "ruby-net-scp")
- ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
- (version "1.2.2.rc2")
+ (version "4.0.0")
(source
(origin
(method git-fetch)
@@ -4305,7 +5259,7 @@ with processes on remote servers, via SSH2.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1nyn17sy71fn7zs3y6wbgcn35318c10flqgc0582409095x4h0sx"))))
+ (base32 "1mdxh81z2hkcc359g6z96fywbr57azlv2yj4zq76adn5lyqq4hgw"))))
(build-system ruby-build-system)
(native-inputs
(list bundler ruby-test-unit ruby-mocha))
@@ -4320,32 +5274,31 @@ client protocol.")
(define-public ruby-minitest
(package
(name "ruby-minitest")
- (version "5.17.0")
+ (version "5.18.0")
(source (origin
(method url-fetch)
(uri (rubygems-uri "minitest" version))
(sha256
(base32
- "1kjy67qajw4rnkbjs5jyk7kc3lyhz5613fwj1i8f6ppdk4zampy0"))))
+ "0ic7i5z88zcaqnpzprf7saimq2f6sad57g5mkkqsrqrcd6h3mx06"))))
(build-system ruby-build-system)
(native-inputs (list ruby-hoe))
- (home-page "https://github.com/seattlerb/minitest")
+ (home-page "https://github.com/minitest/minitest")
(synopsis "Small test suite library for Ruby")
(description "Minitest provides a complete suite of Ruby testing
facilities supporting TDD, BDD, mocking, and benchmarking.")
(license license:expat)))
-(define-public ruby-minitest-5.14
+(define-public ruby-minitest-5.15
(package
(inherit ruby-minitest)
- (name "ruby-minitest-5.14")
- (version "")
+ (version "5.15.0")
(source (origin
(method url-fetch)
(uri (rubygems-uri "minitest" version))
(sha256
(base32
- "19z7wkhg59y8abginfrm2wzplz7py3va8fyngiigngqvsws6cwgl"))))))
+ "06xf558gid4w8lwx13jwfdafsch9maz8m0g85wnfymqj63x5nbbd"))))))
;; This is the last release of Minitest 4, which is used by some packages.
(define-public ruby-minitest-4
@@ -4402,6 +5355,24 @@ written using either the unit test or spec style.")
(home-page "https://github.com/splattael/minitest-around")
(license license:expat)))
+(define-public ruby-minitest-retry
+ (package
+ (name "ruby-minitest-retry")
+ (version "0.2.2")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "minitest-retry" version))
+ (sha256
+ (base32
+ "1c1zq0b1a9y0hbqphq4ybijnjldlis1g6kyhx92q2ynnqfmzhfga"))))
+ (build-system ruby-build-system)
+ (propagated-inputs (list ruby-minitest))
+ (synopsis "Minitest extension to re-run failing tests")
+ (description "This package provides the @code{Minitest::Retry} class,
+which extends Minitest to allow retrying tests when they fail.")
+ (home-page "https://github.com/y-yagi/minitest-retry")
+ (license license:expat)))
+
(define-public ruby-minitest-sprint
(package
(name "ruby-minitest-sprint")
@@ -4421,6 +5392,26 @@ easier to re-run individual failing tests.")
(home-page "https://github.com/seattlerb/minitest-sprint")
(license license:expat)))
+(define-public ruby-minitest-stub-const
+ (package
+ (name "ruby-minitest-stub-const")
+ (version "0.6") ;for Rakefile
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/adammck/minitest-stub-const")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0cz4r9fxplx94c7wakx0998n2gv7l21prn8pfpw6z2c33k3g2xar"))))
+ (build-system ruby-build-system)
+ (synopsis "Stub constants for the duration of a block in MiniTest")
+ (description "This package provides a MiniTest extension to stub constants
+for the duration of a block in MiniTest.")
+ (home-page "https://github.com/adammck/minitest-stub-const")
+ (license license:expat)))
+
(define-public ruby-minitest-bacon
(package
(name "ruby-minitest-bacon")
@@ -4467,6 +5458,41 @@ is to be run.")
(home-page "https://github.com/seattlerb/minitest-focus")
(license license:expat)))
+(define-public ruby-minitest-power-assert
+ (package
+ (name "ruby-minitest-power-assert")
+ (version "0.3.1")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "minitest-power_assert" version))
+ (sha256
+ (base32
+ "1dazl6nbxjvvmi5jamrsygkz396s29b7cd841ni6qy4izk8jd9b7"))))
+ (build-system ruby-build-system)
+ (propagated-inputs (list ruby-minitest ruby-power-assert))
+ (synopsis "Power Assert implementation for Minitest")
+ (description "This gem provides a Power Assert implementation for
+Minitest. It is inspired by the @code{test-unit-power_assert} gem.")
+ (home-page "https://github.com/hsbt/minitest-power_assert")
+ (license license:bsd-2)))
+
+(define-public ruby-minitest-profile
+ (package
+ (name "ruby-minitest-profile")
+ (version "0.0.2")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "minitest-profile" version))
+ (sha256
+ (base32
+ "13h4nwbq6yv7hsaa7dpj90lry4rc5qqnpzvm9n2s57mm2xi31xfa"))))
+ (build-system ruby-build-system)
+ (synopsis "Display the slowest tests in a MiniTest suite")
+ (description "This package provides a MiniTest plugin for displaying the
+slowest tests in a minitest suite.")
+ (home-page "https://github.com/nmeans/minitest-profile")
+ (license license:expat)))
+
(define-public ruby-minitest-pretty-diff
;; Use git reference because gem is out of date and does not contain testing
;; script. There are no releases on GitHub.
@@ -4501,6 +5527,26 @@ structures when tests fail.")
(home-page "https://github.com/adammck/minitest-pretty_diff")
(license license:expat))))
+(define-public ruby-minitest-proveit
+ (package
+ (name "ruby-minitest-proveit")
+ (version "1.0.0")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "minitest-proveit" version))
+ (sha256
+ (base32
+ "0k1hpr8lgkgygfivgcsnnib7xjlf9ribgpn7yidvb4q0l0q2yfmr"))))
+ (build-system ruby-build-system)
+ (native-inputs (list ruby-hoe))
+ (propagated-inputs (list ruby-minitest))
+ (synopsis "Assertion-based tests extension for MiniTest")
+ (description "The @code{minitest-proveit} MiniTest extension ensures all
+tests to prove success (via at least one assertion) rather than rely on the
+absence of failure.")
+ (home-page "https://github.com/seattlerb/minitest-proveit")
+ (license license:expat)))
+
(define-public ruby-minitest-moar
(package
(name "ruby-minitest-moar")
@@ -4706,6 +5752,41 @@ run as a daemon and to be controlled by simple start/stop/restart commands.")
(home-page "https://github.com/thuehlinger/daemons")
(license license:expat)))
+(define-public ruby-dalli
+ (package
+ (name "ruby-dalli")
+ (version "3.2.4")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/petergoldstein/dalli")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1hhqqv1j3zd2y0vr6maaabsflrvkf1x0i6z8n725mhqydp3f9gwp"))))
+ (build-system ruby-build-system)
+ ;; Disable tests to avoid a dependency cycle with ruby-activesupport,
+ ;; through ruby-ruby-prof.
+ (arguments (list #:tests? #f))
+ (synopsis "High performance memcached client for Ruby")
+ (description "Dalli is a high performance pure Ruby client for accessing
+memcached servers. Dalli supports:
+
+@itemize
+@item Simple and complex memcached configurations
+@item Fail-over between memcached instances
+@item Fine-grained control of data serialization and compression
+@item Thread-safe operation
+@item SSL/TLS connections to memcached
+@item SASL authentication.
+@end itemize
+
+The name is a variant of Salvador Dali for his famous painting The Persistence
+of Memory.")
+ (home-page "https://github.com/petergoldstein/dalli")
+ (license license:expat)))
+
(define-public ruby-data_uri
(package
(name "ruby-data_uri")
@@ -4726,6 +5807,27 @@ URIs using the normal URI.parse method.")
(home-page "https://github.com/dball/data_uri")
(license license:expat)))
+(define-public ruby-debug
+ (package
+ (name "ruby-debug")
+ (version "1.7.2")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "debug" version))
+ (sha256
+ (base32
+ "0x59508j69w9p275gabysv521n210pd3n060gqfgsiqjms1h0ldf"))))
+ (build-system ruby-build-system)
+ (arguments (list #:test-target "test_all"))
+ (propagated-inputs (list ruby-irb ruby-reline))
+ (synopsis "Debugging functionality for Ruby")
+ (description "Debugging functionality for Ruby. This is completely
+rewritten debug.rb which was contained by the ancient Ruby versions. It is
+included with Ruby itself, but this package is made available so that the
+latest version can be made available independently from Ruby.")
+ (home-page "https://github.com/ruby/debug")
+ (license license:bsd-2)))
+
(define-public ruby-deep-merge
(package
(name "ruby-deep-merge")
@@ -4748,6 +5850,53 @@ URIs using the normal URI.parse method.")
you to merge elements inside a hash together recursively.")
(license license:expat)))
+(define-public ruby-delayed-job
+ (package
+ (name "ruby-delayed-job")
+ (version "4.1.11")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "delayed_job" version))
+ (sha256
+ (base32
+ "0s2xg72ljg4cwmr05zi67vcyz8zib46gvvf7rmrdhsyq387m2qcq"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-bundler
+ (lambda _
+ (substitute* "Rakefile"
+ (("require 'bundler/setup'") "")
+ (("Bundler::GemHelper\\.install_tasks") ""))))
+ (add-after 'unpack 'disable-rubocop
+ (lambda _
+ (substitute* "Rakefile"
+ (("require 'rubocop/rake_task'") "")
+ (("RuboCop::RakeTask.new") ""))))
+ (add-after 'extract-gemspec 'remove-dependency-on-actionmailer
+ (lambda _
+ (substitute* "spec/helper.rb"
+ (("require 'action_mailer'") ""))
+ (substitute* "delayed_job.gemspec"
+ (("\"spec/performable_mailer_spec.rb\".freeze, ") ""))
+ (delete-file "spec/performable_mailer_spec.rb"))))))
+ (native-inputs
+ (list ruby-activerecord
+ ruby-rspec
+ ruby-simplecov
+ ruby-simplecov-lcov
+ ruby-zeitwerk))
+ (propagated-inputs
+ (list ruby-activesupport))
+ (synopsis "Asynchronous background tasks execution library")
+ (description "Delayed_job (or DJ) encapsulates the common pattern of
+asynchronously executing longer tasks in the background. It is a direct
+extraction from Shopify where the job table is responsible for a multitude of
+core tasks.")
+ (home-page "https://github.com/collectiveidea/delayed_job")
+ (license license:expat)))
+
(define-public ruby-git
(package
(name "ruby-git")
@@ -4864,6 +6013,41 @@ Nokogiri, Ox, or REXML.")
(home-page "https://github.com/sferik/multi_xml")
(license license:expat)))
+(define-public ruby-multipart-parser
+ (package
+ (name "ruby-multipart-parser")
+ (version "0.1.1")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "multipart-parser" version))
+ (sha256
+ (base32
+ "0xb4p475yrfm883h9kn80a021myn17dvs50wpa1djzcmlq7p0882"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'skip-failing-test
+ ;; One test fails for unknown reasons (see:
+ ;; https://github.com/danabr/multipart-parser/issues/7).
+ (lambda _
+ (substitute* "test/multipart_parser/reader_test.rb"
+ (("def test_long" all)
+ (string-append all "\n return true"))))))))
+ (synopsis "Parser for multipart MIME messages")
+ (description "@code{multipart-parser} is a simple parser for multipart
+MIME messages, written in Ruby, based on felixge/node-formidable's parser. It
+has the following characteristics:
+@itemize
+@item Pure Ruby
+@item Event-driven API
+@item Only supports one level of multipart parsing
+@item Does not perform I/O
+@item Does not depend on any other library.
+@end itemize")
+ (home-page "https://github.com/danabr/multipart-parser")
+ (license license:expat)))
+
(define-public ruby-multipart-post
(package
(name "ruby-multipart-post")
@@ -4943,6 +6127,33 @@ rogue test/unit/autorun requires.")
(home-page "https://github.com/cucumber/multi_test")
(license license:expat)))
+(define-public ruby-arr-pm
+ (package
+ (name "ruby-arr-pm")
+ (version "0.0.12")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "arr-pm" version))
+ (sha256
+ (base32
+ "0fddw0vwdrr7v3a0lfqbmnd664j48a9psrjd3wh3k4i3flplizzx"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rspec")))))))
+ (native-inputs (list ruby-flores ruby-insist ruby-rspec ruby-stud))
+ (synopsis "RPM reader/writer library written in Ruby")
+ (description "This library allows reading and writing RPM packages. It is
+used by the @command{fpm} tool. It is written in pure Ruby because
+@code{librpm} is not available on all systems and requires many
+dependencies.")
+ (home-page "https://github.com/jordansissel/ruby-arr-pm")
+ (license license:asl2.0)))
+
(define-public ruby-arel
(package
(name "ruby-arel")
@@ -4962,30 +6173,6 @@ Ruby. It simplifies the generation of complex SQL queries and adapts to
various relational database implementations.")
(license license:expat)))
-(define-public ruby-marcel
- (package
- (name "ruby-marcel")
- (version "0.3.3")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "marcel" version))
- (sha256
- (base32
- "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
- (build-system ruby-build-system)
- (arguments
- '(;; No included tests
- #:tests? #f))
- (propagated-inputs
- (list ruby-mimemagic))
- (synopsis "MIME type detection using magic numbers, filenames and extensions")
- (description
- "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
-Extensions} type detection using magic numbers, filenames, and extensions")
- (home-page "https://github.com/basecamp/marcel")
- (license license:expat)))
-
(define-public ruby-minitar
;; We package from the GitHub source to fix the security issue reported at
;; https://github.com/halostatue/minitar/issues/16.
@@ -5134,18 +6321,52 @@ for select languages.")
(define-public ruby-cuke-modeler
(package
(name "ruby-cuke-modeler")
- (version "3.1.0")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "cuke_modeler" version))
- (sha256
- (base32
- "19smj3g3wvz0203l549sadpcxgh0ir350a6k78gq0bmlv9cchmjb"))))
+ (version "3.19.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/enkessler/cuke_modeler")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0bizla3k124lj4r7f2k5cdfm2sawzd6rdmb6rgbkbng2fygxsjib"))))
(build-system ruby-build-system)
- (arguments `(#:tests? #f)) ;no test suite in gem
- (propagated-inputs
- (list ruby-gherkin))
+ (arguments
+ (list #:test-target "default"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ (substitute* "Gemfile"
+ ;; Cucumber appears pinned to an older version for no
+ ;; particular reason (see:
+ ;; https://github.com/enkessler/cuke_modeler/issues/14).
+ (("'cucumber', '2.2.0'")
+ "'cucumber', '>= 2.2.0'"))
+ ;; Disable Bundler.
+ (substitute* "bin/console"
+ (("require 'bundler/setup'") ""))
+ (substitute* "rakefiles/testing_tasks.rb"
+ (("'bundle', 'exec', ") ""))
+ ;; Remove extraneous dependencies.
+ (substitute* "cuke_modeler.gemspec"
+ ((".*bundler.*") "")
+ ((".*rubocop.*") "")
+ ((".*yard.*") ""))
+ (substitute* "Rakefile"
+ (("Rainbow.enabled = true") "")
+ (("require_relative 'rakefiles/documentation_tasks'") "")
+ (("require_relative 'rakefiles/other_tasks'") "")
+ (("require_relative 'rakefiles/release_tasks'") "")))))))
+ (native-inputs
+ (list ruby-childprocess
+ ruby-cucumber
+ ruby-rainbow
+ ruby-rspec
+ ruby-simplecov
+ ruby-simplecov-lcov))
+ (propagated-inputs (list ruby-cucumber-gherkin))
(synopsis "Gherkin test suite analysis tool")
(description "CukeModeler facilitates modeling a test suite that is
written in Gherkin (e.g. Cucumber, SpecFlow, Lettuce, etc.). It does this by
@@ -5160,7 +6381,7 @@ then be analyzed or manipulated more easily than the underlying AST layer.")
(define-public ruby-parallel-tests
(package
(name "ruby-parallel-tests")
- (version "3.0.0")
+ (version "4.2.0")
(home-page "https://github.com/grosser/parallel_tests")
(source (origin
(method git-fetch)
@@ -5170,19 +6391,18 @@ then be analyzed or manipulated more easily than the underlying AST layer.")
(file-name (string-append name version))
(sha256
(base32
- "08a6ndqn2dqacmc7yg48k0dh2rfrynvhkd5hiay16dl9m1r9q8pz"))))
+ "00gbg5q36ayspkzd6r0kg4gk46lsw9s6misx14rczxaf9kqcdrmv"))))
(build-system ruby-build-system)
(arguments
- '(#:test-target "default"
+ '(#:test-target "spec" ;avoid rubocop dependency
#:phases (modify-phases %standard-phases
(add-after 'patch-source-shebangs 'patch-shell-invokations
(lambda _
(substitute* '("lib/parallel_tests/tasks.rb"
"spec/parallel_tests/tasks_spec.rb")
(("/bin/sh") (which "sh"))
- (("/bin/bash") (which "bash")))
- #t))
- (add-before 'check 'remove-version-constraints
+ (("/bin/bash") (which "bash")))))
+ (add-before 'check 'relax-requirements
(lambda _
;; Remove hard coded version constraints, instead just
;; use whatever versions are available in Guix.
@@ -5191,20 +6411,27 @@ then be analyzed or manipulated more easily than the underlying AST layer.")
(("'minitest',.*")
"'minitest'\n")
(("'cucumber',.*")
- "'cucumber'\n"))
- #t))
+ "'cucumber'\n")
+ ;; Do not depend on a git-fetched spinach version.
+ (("gem 'spinach',.*")
+ "gem 'spinach'\n")
+ ((".*rubocop.*") ""))))
(add-before 'check 'disable-rails-test
(lambda _
;; XXX: This test attempts to download and run the test
;; suites of multiple Rails versions(!) directly.
- (delete-file "spec/rails_spec.rb")
- #t))
+ (delete-file "spec/rails_spec.rb")))
+ (add-before 'check 'disable-problematic-tests
+ (lambda _
+ ;; This test fails, probably because of the newer
+ ;; Cucumber version used here.
+ (delete-file "spec/parallel_tests/cucumber/\
+failure_logger_spec.rb") ))
(add-before 'check 'set-HOME
(lambda _
;; Some tests check the output of Bundler, and fail when
;; Bundler warns that /homeless-shelter does not exist.
- (setenv "HOME" "/tmp")
- #t)))))
+ (setenv "HOME" "/tmp"))))))
(native-inputs
(list ruby-bump
ruby-cucumber
@@ -5225,14 +6452,14 @@ across multiple CPU cores.")
(define-public ruby-parser
(package
(name "ruby-parser")
- (version "3.0.0.0")
+ (version "3.2.1.1")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "parser" version))
(sha256
(base32
- "1jixakyzmy0j5c1rb0fjrrdhgnyryvrr6vgcybs14jfw09akv5ml"))))
+ "1a2v5f8fw7nxm41xp422p1pbr41hafy62bp95m7vg42cqp5y4grc"))))
(build-system ruby-build-system)
(arguments
'(#:tests? #f)) ; tests not included in gem
@@ -5294,6 +6521,46 @@ in pure Ruby. It outputs S-expressions which can be manipulated and converted
back to Ruby via the @code{ruby2ruby} library.")
(license license:expat)))
+(define-public ruby-ruby-version
+ (package
+ (name "ruby-ruby-version")
+ (version "1.0.2")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "ruby_version" version))
+ (sha256
+ (base32
+ "0lvc7bd5ps3w2vq2wb02i0pi3vfcx2rnckx2ix4rjym1qf52kb2j"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'delete-gem-files
+ ;; There are some pre-built files in the source, and
+ ;; registered in the .gemspec (see:
+ ;; https://github.com/janlelis/ruby_version/issues/1).
+ (lambda _
+ (delete-file-recursively "pkg")
+ (substitute* "ruby_version.gemspec"
+ (("\"pkg/ruby_version-1.0.0.gem\".freeze, ")
+ "")
+ (("\"pkg/ruby_version-1.0.1.gem\".freeze, ")
+ ""))))
+ (add-after 'extract-gemspec 'relax-requirements
+ (lambda _
+ (delete-file "Gemfile.lock")
+ (substitute* "ruby_version.gemspec"
+ (("\"Gemfile.lock\".freeze, ") "")
+ ;; Allow a newers versions of development dependencies.
+ (("~>") ">=")))))))
+ (native-inputs (list ruby-rdoc ruby-rubygems-tasks ruby-rspec))
+ (synopsis "Ruby class for checking the Ruby version")
+ (description "This package provides a @code{RubyVersion} class which
+offers a convenient Domain Specific Language (DSL) for checking for the right
+Ruby version.")
+ (home-page "https://github.com/janlelis/ruby_version")
+ (license license:expat)))
+
(define-public ruby-prawn-manual-builder
(package
(name "ruby-prawn-manual-builder")
@@ -5460,7 +6727,7 @@ classes implemented in C.")
(define-public ruby-single-cov
(package
(name "ruby-single-cov")
- (version "1.3.2")
+ (version "1.9.1")
(home-page "https://github.com/grosser/single_cov")
(source (origin
(method git-fetch)
@@ -5469,28 +6736,29 @@ classes implemented in C.")
(file-name (git-file-name name version))
(sha256
(base32
- "05qdzpcai1p23a120gb9bxkfl4y73k9hicx34ch2lsk31lgi9bl7"))))
+ "1w4k81f2mdg620m6pwkrqayddnz9mr8qx0myqn33mw8k6imfip05"))))
(build-system ruby-build-system)
(arguments
- '(#:test-target "default"
+ '(#:test-target "spec" ;to avoid rubocop requirement
#:phases (modify-phases %standard-phases
(replace 'replace-git-ls-files
(lambda _
(substitute* "single_cov.gemspec"
(("`git ls-files lib/ bin/ MIT-LICENSE`")
- "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
- #t))
+ ;; There no longer appear to be a 'bin'
+ ;; sub-directory.
+ "`find lib/ MIT-LICENSE -type f | sort`"))))
(add-before 'check 'remove-version-constraints
(lambda _
- (delete-file "Gemfile.lock")
- #t))
- (add-before 'check 'make-files-writable
+ (delete-file "Gemfile.lock")))
+ (add-before 'check 'relax-requirements
(lambda _
- ;; Tests need to create local directories and open files
- ;; with write permissions.
- (for-each make-file-writable
- (find-files "specs" #:directories? #t))
- #t))
+ ;; Remove extraneous requirements.
+ (substitute* "Rakefile"
+ ((".*require.*bump.*") ""))
+ (substitute* "Gemfile"
+ ((".*gem \"bump\".*") "")
+ ((".*gem \"rubocop\".*") ""))))
(add-before 'check 'disable-failing-test
(lambda _
;; XXX: This test copies assets from minitest, but can
@@ -5498,10 +6766,8 @@ classes implemented in C.")
;; it for now.
(substitute* "specs/single_cov_spec.rb"
(("it \"complains when coverage is bad\"")
- "xit \"complains when coverage is bad\""))
- #t)))))
- (native-inputs
- (list ruby-bump ruby-minitest ruby-rspec ruby-simplecov))
+ "xit \"complains when coverage is bad\"")))))))
+ (native-inputs (list ruby-minitest ruby-rspec ruby-simplecov))
(synopsis "Code coverage reporting tool")
(description
"This package provides actionable code coverage reports for Ruby
@@ -5512,25 +6778,24 @@ development tools to catch coverage problems early.")
(define-public ruby-oedipus-lex
(package
(name "ruby-oedipus-lex")
- (version "2.5.2")
+ (version "2.6.0")
(source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "oedipus_lex" version))
- (sha256
- (base32
- "1v1rk78khwq87ar300lwll570zxpkq9rjnpgc9mgsyd6mm9qjz4w"))))
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "oedipus_lex" version))
+ (sha256
+ (base32
+ "094nd7jd3klv45mvprfn2ivcgw8cckq3jhlly77j903vlamfi0df"))))
(build-system ruby-build-system)
- (native-inputs
- (list ruby-hoe))
+ (native-inputs (list ruby-hoe))
(synopsis "Ruby lexer")
(description
"Oedipus Lex is a lexer generator in the same family as Rexical and Rex.
It is based primarily on generating code much like you would a hand-written
lexer. It uses StrScanner within a multi-level case statement. As such,
Oedipus matches on the first match, not the longest.")
- (home-page "https://github.com/seattlerb/oedipus_lex")
- (license license:expat)))
+ (home-page "https://github.com/seattlerb/oedipus_lex")
+ (license license:expat)))
(define-public ruby-guard
(package
@@ -5606,6 +6871,52 @@ framework that leverages the expressive @code{Gherkin} language to help you
define executable specifications of your code.")
(license license:expat)))
+(define-public ruby-timers
+ (package
+ (name "ruby-timers")
+ (version "4.3.5")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/socketry/timers")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1vvahlhk6i1xks1bsha6s64pjjxhagmzvvf1q9h6z3lpcba43rpx"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'prune-gems.rb
+ (lambda _
+ (substitute* "gems.rb"
+ ;; These are only required for maintenance.
+ ((".*gem \"bake-modernize\".*") "")
+ ((".*gem \"bake-gem\".*") "")
+ ;; Not actually required by the tests.
+ ((".*gem 'benchmark-ips'.*") "")
+ ((".*gem \"ruby-prof\".*") ""))))
+ (add-before 'build 'remove-missing-signing-key
+ (lambda _
+ ;; Otherwise, the build fails with ENOENT.
+ (substitute* "timers.gemspec"
+ ((".*spec.signing_key.*") ""))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "bake" "test")))))))
+ (native-inputs
+ (list ruby-covered
+ ruby-bake-test
+ ruby-bake-test-external
+ ruby-sus))
+ (synopsis "Collection of Ruby timer classes")
+ (description "Timers offers a collections of one-shot and periodic timers,
+intended for use with event loops such as async.")
+ (home-page "https://github.com/socketry/timers")
+ (license license:expat)))
+
(define-public ruby-tilt
(package
(name "ruby-tilt")
@@ -6301,39 +7612,6 @@ you about the changes.")
documents and fragments. It's built on top of Nokogiri and libxml2.")
(license license:expat)))
-(define-public ruby-activesupport
- (package
- (name "ruby-activesupport")
- (version "6.1.3")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "activesupport" version))
- (sha256
- (base32
- "00a4db64g8w5yyk6hzak2nqrmdfvyh5zc9cvnm9gglwbi87ss28h"))))
- (build-system ruby-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _
- ;; There are no tests, instead attempt to load the library.
- (invoke "ruby" "-Ilib" "-r" "active_support"))))))
- (propagated-inputs
- (list ruby-concurrent
- ruby-i18n
- ruby-minitest
- ruby-tzinfo
- ruby-tzinfo-data
- ruby-zeitwerk))
- (synopsis "Ruby on Rails utility library")
- (description "ActiveSupport is a toolkit of support libraries and Ruby
-core extensions extracted from the Rails framework. It includes support for
-multibyte strings, internationalization, time zones, and testing.")
- (home-page "https://www.rubyonrails.org")
- (license license:expat)))
-
(define-public ruby-crass
(package
(name "ruby-crass")
@@ -6359,6 +7637,30 @@ multibyte strings, internationalization, time zones, and testing.")
(define-public ruby-nokogumbo
(deprecated-package "ruby-nokogumbo" ruby-nokogiri))
+(define-public ruby-samovar
+ (package
+ (name "ruby-samovar")
+ (version "2.1.4")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/ioquatix/samovar")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "05pc5xlbv44anx0sfqssh0xhxg297bvl5slsl7k1vnka4k5fhax6"))))
+ (build-system ruby-build-system)
+ (native-inputs (list ruby-covered ruby-rspec))
+ (propagated-inputs (list ruby-console ruby-mapping))
+ (synopsis "Flexible option parser for Ruby")
+ (description "Samovar is a modern framework for building command-line
+tools and applications. It provides a declarative class-based DSL for
+building command-line parsers that include automatic documentation generation.
+It helps you keep your functionality clean and isolated where possible.")
+ (home-page "https://github.com/ioquatix/samovar")
+ (license license:expat)))
+
(define-public ruby-sanitize
(package
(name "ruby-sanitize")
@@ -6577,6 +7879,10 @@ with PostgreSQL 9.0 and later.")
(arguments
`(#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'sanitize-dependencies
+ (lambda _
+ (substitute* "Rakefile"
+ ((".*chandler/tasks.*") ""))))
(add-after 'unpack 'skip-tmp-path-sensitive-test
(lambda _
(substitute* "test/commands/where_test.rb"
@@ -6596,12 +7902,11 @@ with PostgreSQL 9.0 and later.")
(setenv "HOME" (getcwd)))))))
(native-inputs
(list bundler
- ruby-chandler
;; Using minitest 5.17 would cause 5 new bug failures. This is
;; probably related to
;; https://github.com/deivid-rodriguez/byebug/pull/837. Use
- ;; minitest 5.14 until this is resolved and released.
- ruby-minitest-5.14
+ ;; minitest 5.15 until this is resolved and released.
+ ruby-minitest-5.15
ruby-pry
ruby-rake-compiler
ruby-rubocop
@@ -6652,13 +7957,13 @@ including comments and whitespace.")
(define-public ruby-unf-ext
(package
(name "ruby-unf-ext")
- (version "0.0.7.6")
+ (version "0.0.8.2")
(source (origin
(method url-fetch)
(uri (rubygems-uri "unf_ext" version))
(sha256
(base32
- "1ll6w64ibh81qwvjx19h8nj7mngxgffg7aigjx11klvf5k2g4nxf"))))
+ "1yj2nz2l101vr1x9w2k83a0fag1xgnmjwp8w8rw4ik2rwcz65fch"))))
(build-system ruby-build-system)
(arguments
`(#:phases
@@ -6670,8 +7975,7 @@ including comments and whitespace.")
;; rake-compiler-dock is listed in the gemspec, but only
;; required when cross-compiling.
(substitute* "unf_ext.gemspec"
- ((".*rake-compiler-dock.*") ""))
- #t)))))
+ ((".*rake-compiler-dock.*") "")))))))
(native-inputs
(list bundler ruby-rake-compiler ruby-test-unit))
(synopsis "Unicode normalization form support library")
@@ -6763,69 +8067,127 @@ generates Ruby program.")
(define-public ruby-rack
(package
(name "ruby-rack")
- (version "2.2.3")
+ ;; Do not upgrade to version 3, as Rails doesn't support it yet.
+ (version "2.2.6.3")
(source
(origin
- (method git-fetch)
- ;; Download from GitHub so that the snippet can be applied and tests run.
+ (method git-fetch) ;for tests
(uri (git-reference
- (url "https://github.com/rack/rack")
- (commit version)))
+ (url "https://github.com/rack/rack")
+ (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
- "1qrm5z5v586738bnkr9188dvz0s25nryw6sgvx18jjlkizayw1g4"))
- ;; Ignore test which fails inside the build environment but works
- ;; outside.
- (modules '((guix build utils)))
- (snippet
- '(begin (substitute* "test/spec_files.rb"
- (("res.body.must_equal expected_body") ""))
- #t))))
+ "19n33q0v15qjh7kbp2painyzyqg16kkf0mp68vcnlswghmmjcyzq"))))
(build-system ruby-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (add-before 'check 'fix-tests
- (lambda _
- ;; A few of the tests use the length of a file on disk for
- ;; Content-Length and Content-Range headers. However, this file
- ;; has a shebang in it which an earlier phase patches, growing
- ;; the file size from 193 to 239 bytes when the store prefix is
- ;; "/gnu/store".
- (let ((size-diff (- (string-length (which "ruby"))
- (string-length "/usr/bin/env ruby"))))
- (substitute* '("test/spec_files.rb")
- (("208" bytes)
- (number->string (+ (string->number bytes) size-diff)))
- (("bytes(.)22-33" all delimiter)
- (string-append "bytes"
- delimiter
- (number->string (+ 22 size-diff))
- "-"
- (number->string (+ 33 size-diff))))))
- #t)))))
- (native-inputs
- (list ruby-minitest ruby-minitest-global-expectations))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'fix-tests
+ (lambda _
+ ;; This test fails in the build environment (and passes outside
+ ;; of it).
+ (substitute* "test/spec_files.rb"
+ (("res.body.must_equal expected_body") ""))
+ ;; A few of the tests use the length of a file on disk for
+ ;; Content-Length and Content-Range headers. However, this file
+ ;; has a shebang in it which an earlier phase patches, growing
+ ;; the file size from 193 to 239 bytes when the store prefix is
+ ;; "/gnu/store".
+ (let ((size-diff (- (string-length (which "ruby"))
+ (string-length "/usr/bin/env ruby"))))
+ (substitute* '("test/spec_files.rb")
+ (("208" bytes)
+ (number->string (+ (string->number bytes) size-diff)))
+ (("bytes(.)22-33" all delimiter)
+ (string-append "bytes"
+ delimiter
+ (number->string (+ 22 size-diff))
+ "-"
+ (number->string (+ 33 size-diff)))))))))))
+ (native-inputs (list ruby-minitest ruby-minitest-global-expectations))
(synopsis "Unified web application interface for Ruby")
(description "Rack provides a minimal, modular and adaptable interface for
developing web applications in Ruby. By wrapping HTTP requests and responses,
it unifies the API for web servers, web frameworks, and software in between
into a single method call.")
- (home-page "https://rack.github.io/")
+ (home-page "https://github.com/rack/rack")
+ (license license:expat)))
+
+(define-public ruby-rack-next
+ (package
+ (inherit ruby-rack)
+ (name "ruby-rack")
+ (version "3.0.7")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/rack/rack")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0msf14655nfcq1kgmib6932lgzm9nw3nb0m3c7nh6nj4sx30yxfr"))))
+ (arguments '())))
+
+(define-public ruby-rackup
+ (package
+ (name "ruby-rackup")
+ (version "2.1.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rack/rackup")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "19b7sy700zjwaw7x47qpxvhnnz5hrp5bhrxfyljgagrli824dajy"))))
+ (build-system ruby-build-system)
+ (native-inputs (list ruby-minitest-global-expectations))
+ (inputs (list ruby-rack-next ruby-webrick))
+ (synopsis "Command line interface (CLI) for running for Rack applications")
+ (description "This package provides a command line interface for running
+for Rack applications.")
+ (home-page "https://github.com/rack/rackup")
+ (license license:expat)))
+
+(define-public ruby-rack-cache
+ (package
+ (name "ruby-rack-cache")
+ (version "1.13.0")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "rack-cache" version))
+ (sha256
+ (base32
+ "1cqpax628h2mhnsjfg91c3klxwx2pkvaj061cisb0saqa99b0jgm"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ ;; The test suite depends on ruby-memcached, which is not available in
+ ;; Guix and bundles a very dated copy of memcached (undesirable).
+ #:tests? #f))
+ (propagated-inputs (list ruby-rack))
+ (synopsis "Component to enable HTTP caching for Rack-based applications")
+ (description "Rack::Cache is suitable as a drop-in component to enable
+HTTP caching for Rack-based applications that produce freshness (Expires,
+Cache-Control) and/or validation (Last-Modified, ETag) information.")
+ (home-page "https://github.com/rtomayko/rack-cache")
(license license:expat)))
(define-public ruby-rack-test
(package
(name "ruby-rack-test")
- (version "0.8.3")
+ (version "2.1.0")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "rack-test" version))
(sha256
(base32
- "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
+ "1ysx29gk9k14a14zsp5a8czys140wacvp91fja8xcja0j1hzqq8c"))))
(build-system ruby-build-system)
(arguments
;; Disable tests because of circular dependencies: requires sinatra,
@@ -6834,8 +8196,9 @@ into a single method call.")
`(#:phases
(modify-phases %standard-phases
(replace 'check
- (lambda _
- (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "ruby" "-Ilib" "-r" "rack/test")))))))
(propagated-inputs
(list ruby-rack))
(synopsis "Testing API for Rack applications")
@@ -6843,20 +8206,47 @@ into a single method call.")
"Rack::Test is a small, simple testing API for Rack applications. It can
be used on its own or as a reusable starting point for Web frameworks and
testing libraries to build on.")
- (home-page "https://github.com/rack-test/rack-test")
+ (home-page "https://github.com/rack/rack-test")
+ (license license:expat)))
+
+(define-public ruby-rack-session
+ (package
+ (name "ruby-rack-session")
+ ;; Stay on version 1 until all the rack users such as Rails can use rack 3
+ ;; (rack-session 2 requires rack 3).
+ (version "1.0.1")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/rack/rack-session")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0rv955wd7ckp5jgy5c229wmajh48jpcy8s0iv5i8ma61wf7qw0i1"))))
+ (build-system ruby-build-system)
+ (native-inputs
+ (list ruby-minitest-global-expectations
+ ruby-minitest-sprint))
+ (propagated-inputs
+ (list ruby-rack))
+ (synopsis "Session management for Rack")
+ (description "This package provides a session management implementation
+for Rack.")
+ (home-page "https://github.com/rack/rack-session")
(license license:expat)))
(define-public ruby-rack-protection
(package
(name "ruby-rack-protection")
- (version "2.0.8.1")
+ (version "3.0.5")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "rack-protection" version))
(sha256
(base32
- "1zyj97bfr1shfgwk4ddmdbw0mdkm4qdyh9s1hl0k7accf3kxx1yi"))))
+ "1a12m1mv8dc0g90fs1myvis8vsgr427k1arg1q4a9qlfw6fqyhis"))))
(build-system ruby-build-system)
(arguments
'(;; Tests missing from the gem.
@@ -6974,21 +8364,26 @@ inspired by the Sinatra microframework style of specifying actions:
(define-public ruby-rubocop-ast
(package
(name "ruby-rubocop-ast")
- (version "1.4.1")
+ (version "1.28.0")
(source
(origin
(method git-fetch) ;no test suite in distributed gem
(uri (git-reference
- (url "https://github.com/rubocop-hq/rubocop-ast")
+ (url "https://github.com/rubocop/rubocop-ast")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
- "1x2m7k4bn4zvvwmj7imzmv0dav6xnrbcvssad1m5lkprx7h5lzkq"))))
+ "1dp09gcmahmdfi3s6xsksr3ka9dddjpy9ymhr9wjwv67y1falffr"))))
(build-system ruby-build-system)
(arguments
`(#:test-target "spec"
#:phases (modify-phases %standard-phases
+ (add-after 'unpack 'relax-dependencies
+ (lambda _
+ (substitute* "Gemfile"
+ (("gem 'simplecov', '~> 0.10', '< 0.18'")
+ "gem 'simplecov', '~> 0.10'"))))
(add-before 'build 'generate-lexer
(lambda _
(setenv "RUBOCOP_VERSION" "none")
@@ -6997,8 +8392,7 @@ inspired by the Sinatra microframework style of specifying actions:
(lambda _
(substitute* "rubocop-ast.gemspec"
(("`git ls-files(.*)`" _ files)
- (format #f "`find ~a -type f| sort`" files)))
- #t)))))
+ (format #f "`find ~a -type f| sort`" files))))))))
(native-inputs
(list ruby-bump
ruby-oedipus-lex
@@ -7207,17 +8601,17 @@ run.")
(define-public ruby-rubocop
(package
(name "ruby-rubocop")
- (version "1.10.0")
+ (version "1.48.1")
(source
(origin
(method git-fetch) ;no tests in distributed gem
(uri (git-reference
- (url "https://github.com/rubocop-hq/rubocop")
+ (url "https://github.com/rubocop/rubocop")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
- "0wjw9vpzr4f3nf1zf010bag71w4hdi0haybdn7r5rlmw45pmim29"))))
+ "1l4j99mbrdjy2bzcnky30pjgjv8sxjr187jzliyqmldvpf7dizbp"))))
(build-system ruby-build-system)
(arguments
`(#:test-target "default"
@@ -7228,8 +8622,7 @@ run.")
(modify-phases %standard-phases
(add-before 'check 'set-home
(lambda _
- (setenv "HOME" (getcwd))
- #t))
+ (setenv "HOME" (getcwd))))
;; Rubocop depends on itself for tests, directly and indirectly. By
;; regenerating the TODO list we test rubocop against itself and
;; forgo adjusting the test suite to our environment each release.
@@ -7237,40 +8630,37 @@ run.")
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(make-file-writable ".rubocop_todo.yml")
- (invoke "./exe/rubocop" "--auto-gen-config"))
- #t))
- (add-before 'check 'make-adoc-files-writable
- (lambda _
- (let ((adoc-files (find-files "docs/modules/ROOT/pages"
- "\\.adoc$")))
- (for-each make-file-writable adoc-files))
- #t)))))
+ (invoke "./exe/rubocop" "--auto-gen-config")))))))
(native-inputs
- `(("ruby-bump" ,ruby-bump)
- ("ruby-pry" ,ruby-pry)
- ("ruby-rake" ,ruby-rake)
- ("ruby-rspec" ,ruby-rspec)
- ("ruby-rubocop-minimal" ,ruby-rubocop-minimal)
- ("ruby-rubocop-performance-minimal" ,ruby-rubocop-performance-minimal)
- ("ruby-rubocop-rspec-minimal" ,ruby-rubocop-rspec-minimal)
- ("ruby-simplecov" ,ruby-simplecov)
- ("ruby-stackprof" ,ruby-stackprof)
- ("ruby-test-queue" ,ruby-test-queue)
- ("ruby-webmock" ,ruby-webmock)
- ("ruby-yard" ,ruby-yard)))
+ (list ruby-pry
+ ruby-rake
+ ruby-rspec
+ ruby-rubocop-ast
+ ruby-rubocop-capybara-minimal
+ ruby-rubocop-minimal
+ ruby-rubocop-performance-minimal
+ ruby-rubocop-rake-minimal
+ ruby-rubocop-rspec-minimal
+ ruby-simplecov
+ ruby-stackprof
+ ruby-test-queue
+ ruby-webmock
+ ruby-yard))
(propagated-inputs
- (list ruby-parallel
+ (list ruby-json
+ ruby-parallel
ruby-parser
+ ruby-progressbar
ruby-rainbow
ruby-regexp-parser
+ ruby-rexml
ruby-rubocop-ast
- ruby-progressbar
ruby-unicode-display-width))
(synopsis "Ruby code style checking tool")
(description
"@code{rubocop} is a Ruby code style checking tool. It aims to enforce
the community-driven Ruby Style Guide.")
- (home-page "https://github.com/rubocop-hq/rubocop")
+ (home-page "https://github.com/rubocop/rubocop")
(license license:expat)))
(define-public ruby-rubocop-minimal
@@ -7453,14 +8843,14 @@ for FFI.")
(define-public ruby-sawyer
(package
(name "ruby-sawyer")
- (version "0.8.2")
+ (version "0.9.2")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "sawyer" version))
(sha256
(base32
- "0yrdchs3psh583rjapkv33mljdivggqn99wkydkjdckcjn43j3cz"))))
+ "1jks1qjbmqm8f9kvwa81vqj39avaj9wdnzc531xm29a55bb74fps"))))
(build-system ruby-build-system)
(propagated-inputs
(list ruby-addressable ruby-faraday))
@@ -7473,51 +8863,40 @@ top of Faraday.")
(define-public ruby-octokit
(package
(name "ruby-octokit")
- (version "4.18.0")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "octokit" version))
- (sha256
- (base32
- "0zvfr9njmj5svi39fcsi2b0g7pcxb0vamw9dlyas8bg814jlzhi6"))))
+ (version "6.1.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/octokit/octokit.rb")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "01njrd17bz28mlsa8hi9gad7s6d1d0vpyn0g66p3d42zgplr9qkq"))))
(build-system ruby-build-system)
- (arguments '(#:tests? #f)) ;no test suite in the gem release
- (propagated-inputs
- (list ruby-faraday ruby-sawyer))
+ (native-inputs
+ (list ruby-faraday-multipart
+ ruby-jwt
+ ruby-mime-types
+ ruby-multi-json
+ ruby-netrc
+ ruby-pry-byebug
+ ruby-rbnacl
+ ruby-rspec
+ ruby-simplecov
+ ruby-webmock
+ ruby-vcr-expat))
+ (propagated-inputs (list ruby-faraday ruby-sawyer))
(synopsis "Ruby toolkit for the GitHub API")
(description "Octokit wraps the GitHub API in a flat API client that
follows Ruby conventions and requires little knowledge of REST.")
(home-page "https://github.com/octokit/octokit.rb")
(license license:expat)))
-(define-public ruby-chandler
- (package
- (name "ruby-chandler")
- (version "0.9.0")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "chandler" version))
- (sha256
- (base32
- "1n8a4mr2jkcz5vaaps45g2rxa2pzy1wb7cylgw85xmmyyp14lnrr"))))
- (build-system ruby-build-system)
- (native-inputs
- (list ruby-rubocop))
- (propagated-inputs
- (list ruby-netrc ruby-octokit))
- (synopsis "Sync CHANGELOG entries to GitHub's release notes")
- (description "Chandler syncs a project's CHANGELOG file entries to
-GitHub's release notes to remove the need of manually entering release
-notes.")
- (home-page "https://github.com/mattbrictson/chandler")
- (license license:expat)))
-
(define-public ruby-pry-byebug
(package
(name "ruby-pry-byebug")
- (version "3.9.0")
+ (version "3.10.1")
(source
(origin
(method git-fetch)
@@ -7527,18 +8906,19 @@ notes.")
(file-name (git-file-name name version))
(sha256
(base32
- "1kchrwccai92068p50zyd6mh524ywqnm0jw5g3lks7iwmf0xkmgc"))))
+ "0z8rhvmr9qmlbk8c8h6jbig5qd5xbdg9qihvx3g0cv1whqzbfikq"))))
(build-system ruby-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
+ (add-after 'unpack 'sanitize-dependencies
+ (lambda _
+ (substitute* "Rakefile"
+ ((".*chandler/tasks.*") ""))))
(add-before 'check 'set-home
(lambda _
- (setenv "HOME" (getcwd))
- #t)))))
- (native-inputs
- (list ruby-chandler ruby-rubocop ruby-simplecov))
- (propagated-inputs
- (list ruby-byebug ruby-pry))
+ (setenv "HOME" (getcwd)))))))
+ (native-inputs (list ruby-rubocop ruby-simplecov))
+ (propagated-inputs (list ruby-byebug ruby-pry))
(synopsis "Step-by-step debugging and stack navigation in Pry")
(description "This package adds step-by-step debugging and stack
navigation capabilities to @code{pry}, using @code{byebug}.")
@@ -7646,6 +9026,89 @@ variable length integers (varint) in Ruby Protocol Buffers.")
(home-page "https://github.com/liquidm/varint")
(license license:bsd-3)))
+(define-public ruby-version-gem
+ (package
+ (name "ruby-version-gem")
+ (version "1.1.2")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://gitlab.com/oauth-xx/version_gem")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "17y4dydlczd5xvvwfy94x63d5wi14cdkfhi6g94fm1sgsxxzzmq0"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ (substitute* "Gemfile"
+ (("^linting = .*")
+ "linting = false\n")
+ (("^coverage = .*")
+ "coverage = false\n")
+ (("^debug = .*")
+ "debug = false\n"))
+ (substitute* "spec/spec_helper.rb"
+ (("^RUN_COVERAGE = .*")
+ "RUN_COVERAGE = false\n")
+ (("^ALL_FORMATTERS = .*")
+ "ALL_FORMATTERS = false\n"))))
+ (add-before 'build 'drop-signing-key-requirement
+ (lambda _
+ (substitute* "version_gem.gemspec"
+ (("spec.signing_key =.*")
+ "spec.signing_key = nil"))))
+ (add-before 'check 'disable-problematic-tests
+ (lambda _
+ (substitute* "spec/version_gem/ruby_spec.rb"
+ ;; The test validates the minimum version of
+ ;; Ruby to be 2.7.7, but because our Ruby is
+ ;; 2.7.4 grafted with 2.7.7, the version seen is
+ ;; 2.7.4 and it fails.
+ (("it 'returns true when current ruby greater \
+than minimum'" all)
+ (string-append "x" all))))))))
+ (native-inputs (list ruby-rspec ruby-rspec-block-is-expected))
+ (synopsis "Improved @code{Version} module for Ruby")
+ (description "VersionGem aims to provide introspection of a @code{Version}
+module based on a @code{Version::VERSION} constant string wile not interfering
+with gemspec parsing where the @code{VERSION} string is traditionally used.")
+ (home-page "https://gitlab.com/oauth-xx/version_gem")
+ (license license:expat)))
+
+;;; Note: Do NOT update to a newer version; this is the last commit that is
+;;; still licensed as free software, the project having switched to the
+;;; Hippocratic license afterward (see:
+;;; https://github.com/vcr/vcr/issues/959).
+(define-public ruby-vcr-expat
+ (let ((revision "0")
+ (commit-dont-touch "842b2bf89099dc91f2c643d0d85d1abd54eb7e85")) ;
+ (package
+ (name "ruby-vcr-expat")
+ (version (git-version "5.0.0" revision commit-dont-touch))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/vcr/vcr")
+ (commit commit-dont-touch)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "02mzifd2655kjh35bbry01n66jjcjrsw6ncqlybfkjcaqrw2zalv"))))
+ (build-system ruby-build-system)
+ (arguments (list #:tests? #f)) ;avoid all dependencies
+ (home-page "https://github.com/vcr/vcr")
+ (synopsis "HTTP interaction recorder [old version]")
+ (description "Record your test suite's HTTP interactions and replay them
+during future test runs for fast, deterministic, accurate tests. This is an
+older version of VCR that is free software under the Expat license. The
+project later switched to the Hippocratic license, which is non-free.
+@emph{Do not use it in new free software projects}.")
+ (license license:expat))))
+
(define-public ruby-ruby-prof
(package
(name "ruby-ruby-prof")
@@ -7692,6 +9155,46 @@ Profiling multiple threads simultaneously is supported.
(home-page "https://github.com/ruby-prof/ruby-prof")
(license license:bsd-2)))
+(define-public ruby-ruby-memcheck
+ (package
+ (name "ruby-ruby-memcheck")
+ (version "1.2.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Shopify/ruby_memcheck")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1sx8nhx7w4z5s5vj6kq6caqsfznswqzwca372j82cd80hf9iznra"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-valgrind-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "lib/ruby_memcheck/configuration.rb"
+ (("DEFAULT_VALGRIND = \"valgrind\"")
+ (format #f "DEFAULT_VALGRIND = ~s"
+ (search-input-file inputs "bin/valgrind"))))))
+ (add-before 'replace-git-ls-files 'standardize-git-ls-files
+ (lambda _
+ (substitute* "ruby_memcheck.gemspec"
+ (("%x\\(git ls-files -z)")
+ "`git ls-files -z`")))))))
+ (native-inputs (list ruby-rake-compiler ruby-rspec))
+ (inputs (list valgrind/interactive))
+ (propagated-inputs (list ruby-nokogiri))
+ (synopsis "Valgrind memcheck tool for Ruby")
+ (description "The @code{ruby_memcheck} gem provides a sane way to use
+Valgrind's memcheck on your native extension gem, that filters out all the
+false positives caused by Ruby not freeing all of the memory it allocates
+during shutdown.")
+ (home-page "https://github.com/Shopify/ruby_memcheck")
+ (license license:expat)))
+
(define-public ruby-memory-profiler
(package
(name "ruby-memory-profiler")
@@ -7713,74 +9216,100 @@ Profiling multiple threads simultaneously is supported.
(home-page "https://github.com/SamSaffron/memory_profiler")
(license license:expat)))
+(define-public ruby-cucumber-compatibility-kit
+ (package
+ (name "ruby-cucumber-compatibility-kit")
+ (version "11.2.0")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "cucumber-compatibility-kit" version))
+ (sha256
+ (base32
+ "17c8zx0yn68rcpfbw4nb1gzvh9fzpwsi1y0qivb99ahdlgzcdp8q"))))
+ (build-system ruby-build-system)
+ (arguments (list #:phases #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rspec")))))))
+ (propagated-inputs (list ruby-cucumber-messages ruby-rake ruby-rspec))
+ (synopsis "Cucumber compatibility verification utility")
+ (description "The Cucumber Compatibility Kit (CCK) aims to validate a
+Cucumber implementation's support for the Cucumber Messages protocol.")
+ (home-page "https://github.com/cucumber/compatibility-kit")
+ (license license:expat)))
+
+;;; Variant package to break a cycle with ruby-cucumber-messages.
+(define ruby-cucumber-compatibility-kit-bootstrap
+ (package/inherit ruby-cucumber-compatibility-kit
+ (arguments (list #:tests? #f))
+ (propagated-inputs (modify-inputs (package-propagated-inputs
+ ruby-cucumber-compatibility-kit)
+ (delete "ruby-cucumber-messages")))))
+
(define-public ruby-cucumber-messages
(package
(name "ruby-cucumber-messages")
- (version "12.2.0")
+ (version "21.0.1")
(source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/cucumber/messages-ruby")
- (commit "12cd07eac87bce7843fd1bb0bf64bc4da09f097c")))
- (file-name (git-file-name name version))
+ (method url-fetch)
+ (uri (rubygems-uri "cucumber-messages" version))
(sha256
(base32
- "16wwqfpsq7crvxc3q08lphgyh12cl2d83p1c79p312q4jmy9cn5a"))))
+ "0482a63y7my0arn2bv208g401dq8525f0gwhnwaa11mhv6ph0q5i"))))
(build-system ruby-build-system)
(arguments
- `(#:phases (modify-phases %standard-phases
- (add-after 'unpack 'patch-protobuf.rb
- (lambda _
- (substitute* "rake/protobuf.rb"
- (("load 'protobuf/tasks/compile.rake'")
- "require 'protobuf/tasks'"))
- #t))
- (add-before 'build 'compile
- (lambda _
- (substitute* "Makefile"
- (("bundle exec ") "")
- (("include default.mk.*" all)
- (string-append "#" all)))
- (invoke "make")))
- (replace 'check
- (lambda _
- (invoke "rspec"))))))
- (propagated-inputs
- `(("ruby-protobuf" ,ruby-protobuf-cucumber)))
+ (list #:phases
+ #~(modify-phases %standard-phases
+ ;; The test suite requires the gem to be installed, so move it
+ ;; after the install phase.
+ (delete 'check)
+ (add-after 'install 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (setenv "GEM_PATH" (string-append
+ (getenv "GEM_PATH") ":"
+ #$output "/lib/ruby/vendor_ruby"))
+ (when tests?
+ (invoke "rspec")))))))
(native-inputs
- (list ruby-rspec))
- (home-page "https://github.com/cucumber/messages-ruby")
+ (list ruby-cucumber-compatibility-kit-bootstrap ruby-rspec))
+ (home-page "https://github.com/cucumber/messages/")
(synopsis "Cucumber Messages for Ruby (Protocol Buffers)")
(description "Cucumber Messages for Ruby is a library which allows
serialization and deserialization of the protocol buffer messages used in
Cucumber.")
(license license:expat)))
-(define-public ruby-gherkin
+(define-public ruby-cucumber-gherkin
(package
- (name "ruby-gherkin")
- (version "14.0.1")
+ (name "ruby-cucumber-gherkin")
+ (version "26.1.0")
(source (origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/cucumber/gherkin-ruby")
+ (url "https://github.com/cucumber/gherkin")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
- "1dwa8632nc6kijv8p257jl64rsjmc0fimlaqvxlkdi2h9n1nympb"))))
+ "1rsannfcg5rqh5a3d3paw10kf6mmqjrgbq3k235px4swbyqysmgn"))))
(build-system ruby-build-system)
- (native-inputs
- (list ruby-cucumber-messages ruby-rspec))
- (arguments
- `(#:test-target "spec"))
+ (arguments (list #:test-target "spec"
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'chdir
+ (lambda _
+ (chdir "ruby"))))))
+ (native-inputs (list ruby-rspec))
+ (propagated-inputs (list ruby-cucumber-messages))
(synopsis "Gherkin parser for Ruby")
(description "Gherkin is a parser and compiler for the Gherkin language.
It is intended be used by all Cucumber implementations to parse
@file{.feature} files.")
- (home-page "https://github.com/cucumber/gherkin-ruby")
+ (home-page "https://github.com/cucumber/gherkin")
(license license:expat)))
+(define-deprecated ruby-gherkin ruby-cucumber-gherkin)
+
(define-public ruby-gherkin-ruby
(package
(name "ruby-gherkin-ruby")
@@ -7803,62 +9332,71 @@ It is intended be used by all Cucumber implementations to parse
(define-public ruby-aruba
(package
(name "ruby-aruba")
- (version "0.14.14")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "aruba" version))
- (sha256
- (base32
- "0l2mfpdxc03gdrbwc2hv4vdhjhqhfcdp6d02j05j64ncpi9srlqn"))))
+ (version "2.1.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/cucumber/aruba")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1mmlgqhi6yww3z34hmrrnha2rygkv6kx0q962z31dqxjkcv23yfd"))))
(build-system ruby-build-system)
(arguments
- '(#:test-target "spec"
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch
- (lambda _
- (substitute* "spec/aruba/api_spec.rb"
- ;; This resolves some errors in the specs
- ;;
- ;; undefined method `parse' for Time:Class
- (("require 'spec_helper'")
- "require 'spec_helper'\nrequire 'time'"))
- ;; Avoid shebang issues in this spec file
- (substitute* "spec/aruba/matchers/command_spec.rb"
- (("/usr/bin/env bash")
- (which "bash")))
- #t))
- (add-before 'check 'remove-unnecessary-dependencies
- (lambda _
- (substitute* "Gemfile"
- ((".*byebug.*") "\n")
- ((".*pry.*") "\n")
- ((".*yaml.*") "\n")
- ((".*bcat.*") "\n")
- ((".*kramdown.*") "\n")
- ((".*rubocop.*") "\n")
- ((".*cucumber-pro.*") "\n")
- ((".*cucumber.*") "\n")
- ((".*license_finder.*") "\n")
- ((".*rake.*") "gem 'rake'\n")
- ((".*relish.*") "\n"))
- (substitute* "aruba.gemspec"
- (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
- "spec.add_runtime_dependency 'cucumber'"))
- #t))
- (add-before 'check 'set-home
- (lambda _ (setenv "HOME" "/tmp") #t)))))
+ (list
+ ;; XXX: Only run the "spec" target and not the "cucumber" one, as it is
+ ;; slow and has multiple unexplained test failures.
+ #:test-target "spec"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-paths
+ (lambda _
+ ;; This test file relies on a dynamically generated script;
+ ;; patch its #!/bin/bash shebang.
+ (substitute* "spec/aruba/api/commands_spec.rb"
+ (("/bin/bash")
+ (which "bash")))))
+ (add-before 'check 'relax-requirements
+ ;; Many development requirements are not actually needed.
+ (lambda _
+ (substitute* "aruba.gemspec"
+ (("\\[\">= 0.18.0\", \"< 0.22.0\"]") ;simplecov
+ "\">= 0.18.0\"")
+ ((".*appraisal.*") "")
+ ((".*pry.*") "")
+ ((".*kramdown.*") "")
+ ((".*rubocop.*") "")
+ ((".*yard-junk.*") ""))
+ (substitute* "Rakefile"
+ ((".*require \"rubocop/rake_task\".*") "")
+ ((".*require \"yard-junk/rake\".*") "")
+ ((".*RuboCop::RakeTask.new.*") "")
+ ((".*YardJunk::Rake.define_task.*") ""))))
+ ;; The tests rely on the Gem being installed, so move the check
+ ;; phase after the install phase.
+ (delete 'check)
+ (add-after 'install 'check
+ (assoc-ref %standard-phases 'check))
+ (add-before 'check 'set-GEM_PATH
+ (lambda _
+ (setenv "GEM_PATH" (string-append
+ (getenv "GEM_PATH") ":"
+ #$output "/lib/ruby/vendor_ruby"))))
+ (add-before 'check 'set-home
+ (lambda _
+ (setenv "HOME" "/tmp"))))))
(native-inputs
- (list bundler ruby-rspec ruby-fuubar ruby-simplecov))
+ (list ruby-rake-manifest
+ ruby-rspec
+ ruby-simplecov))
(propagated-inputs
- (list ruby-childprocess
+ (list bundler
+ ruby-childprocess
ruby-contracts
ruby-cucumber
- ruby-ffi
ruby-rspec-expectations
- ruby-thor
- ruby-yard))
+ ruby-thor))
(synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
(description
"Aruba is an extension for Cucumber, RSpec and Minitest for testing
@@ -7867,18 +9405,6 @@ language.")
(home-page "https://github.com/cucumber/aruba")
(license license:expat)))
-;; A version of ruby-aruba without tests run so that circular dependencies can
-;; be avoided.
-(define ruby-aruba-without-tests
- (package
- (inherit ruby-aruba)
- (arguments '(#:tests? #f))
- (propagated-inputs
- `(("ruby-cucumber" ,ruby-cucumber-without-tests)
- ,@(alist-delete "ruby-cucumber"
- (package-propagated-inputs ruby-aruba))))
- (native-inputs '())))
-
(define-public ruby-sys-uname
(package
(name "ruby-sys-uname")
@@ -7902,73 +9428,65 @@ such as the OS name, OS version, system name, etc.")
(home-page "https://github.com/djberg96/sys-uname")
(license license:asl2.0)))
-(define-public ruby-cucumber-create-meta
- (package
- (name "ruby-cucumber-create-meta")
- (version "1.0.0")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "cucumber-create-meta" version))
- (sha256
- (base32
- "0i0i3arymjrnjk72mg79w1a11607x4d0lrqafm9sz2gq9l52zasw"))))
- (build-system ruby-build-system)
- (arguments
- `(#:phases (modify-phases %standard-phases
- (add-after 'extract-gemspec 'relax-version-requirements
- (lambda _
- (substitute* ".gemspec"
- ((" 12\\.2")
- " 12.1"))
- #t))
- (replace 'check
- (lambda _
- (invoke "rspec"))))))
- (native-inputs
- (list ruby-rspec))
- (propagated-inputs
- (list ruby-cucumber-messages ruby-sys-uname))
- (synopsis "Function to create @code{Meta} messages for Cucumber Ruby")
- (description "The @code{createMeta} utility function allows generating
-system-specific @code{Meta} messages for Cucumber Ruby.")
- (home-page "https://github.com/cucumber/cucumber/tree/master/create-meta/ruby")
- (license license:expat)))
-
(define-public ruby-cucumber-html-formatter
(package
(name "ruby-cucumber-html-formatter")
- (version "7.0.0")
+ (version "20.2.1")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "cucumber-html-formatter" version))
(sha256
(base32
- "0lshj4sw9jw7687wrhknyb9kffblai3l843zgrznyqij3ga0bc62"))))
- (build-system ruby-build-system)
- (arguments
- `(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda _
- (invoke "rspec"))))))
- (native-inputs
- (list ruby-rspec))
- (propagated-inputs
- (list ruby-cucumber-messages))
+ "0c7r9mfmph4c6yzc7y3dkr92rhwvpyksr0mdhpqp67xmmr8z1br4"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'relax-requirements
+ (lambda _
+ (substitute* ".gemspec"
+ (("~> 18.0") "~> 21.0")))) ;cucumber-messages
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rspec")))))))
+ (native-inputs (list ruby-cucumber-compatibility-kit ruby-rspec))
+ (propagated-inputs (list ruby-cucumber-messages))
(synopsis "HTML formatter for Cucumber")
(description "Cucumber HTML Formatter produces a HTML report for Cucumber
runs. It is built on top of cucumber-react and works with any Cucumber
implementation with a protocol buffer formatter that outputs Cucumber
messages.")
- (home-page "https://github.com/cucumber/cucumber/tree/\
-master/html-formatter/ruby")
+ (home-page "https://github.com/cucumber/html-formatter")
+ (license license:expat)))
+
+(define-public ruby-cucumber-ci-environment
+ (package
+ (name "ruby-cucumber-ci-environment")
+ (version "9.1.0")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "cucumber-ci-environment" version))
+ (sha256
+ (base32
+ "1nmn2hfrjlbazgcryr3hwvsa5v4csfbjqxb4q7wbjhaxl9xxn0k7"))))
+ (build-system ruby-build-system)
+ (arguments (list #:phases #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rspec")))))))
+ (native-inputs (list ruby-rspec))
+ (synopsis "Detect CI Environment from environment variables")
+ (description "This is a Ruby utility library for Cucumber that detects a
+CI environment from environment variables.")
+ (home-page "https://github.com/cucumber/ci-environment")
(license license:expat)))
(define-public ruby-cucumber
(package
(name "ruby-cucumber")
- (version "4.1.0")
+ (version "8.0.0")
(source
(origin
(method git-fetch)
@@ -7978,49 +9496,50 @@ master/html-formatter/ruby")
(file-name (git-file-name name version))
(sha256
(base32
- "0g9rqfslbzkkrq2kvl14fgknrhfbji3bjjpjxff5nc9wzd3hd549"))))
+ "1dz880fdz6rfbh1nwwcq21v65byik46jnf9gppnrqf3p5k61i55r"))))
(build-system ruby-build-system)
(arguments
- '(#:test-target "default"
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'disable-rubocop
- ;; Rubocop lint check fails with our more recent version.
- (lambda _
- (substitute* "Rakefile"
- (("spec cucumber rubocop")
- "spec cucumber"))
- #t))
- (add-after 'extract-gemspec 'strip-version-requirements
- (lambda _
- (delete-file "Gemfile") ;do not use Bundler
- (substitute* "cucumber.gemspec"
- (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
- (string-append stripped "\n")))
- #t))
- (add-before 'check 'set-home
- (lambda _
- (setenv "HOME" (getcwd))
- #t)))))
+ (list #:test-target "spec"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-rubocop
+ ;; Remove extraneous Lint checks.
+ (lambda _
+ (substitute* "Rakefile"
+ (("require 'rubocop/rake_task'")
+ "")
+ (("RuboCop::RakeTask.new")
+ ""))))
+ (add-after 'extract-gemspec 'strip-version-requirements
+ (lambda _
+ (delete-file "Gemfile") ;do not use Bundler
+ (substitute* "cucumber.gemspec"
+ ;; The dependency specifications are often trailing
+ ;; behind and appear stricter than necessary, since the
+ ;; test suite passes with the newer component versions.
+ (("(.*add_.*dependency '[_A-Za-z0-9-]+')(.*)"
+ _ stripped rest)
+ (string-append stripped " # " rest "\n")))))
+ (add-before 'check 'set-home
+ (lambda _
+ (setenv "HOME" (getcwd)))))))
(propagated-inputs
(list ruby-builder
+ ruby-cucumber-ci-environment
ruby-cucumber-core
- ruby-cucumber-create-meta
+ ruby-cucumber-gherkin
ruby-cucumber-html-formatter
ruby-cucumber-messages
ruby-cucumber-wire
ruby-diff-lcs
- ruby-gherkin
- ruby-multi-json
- ruby-multi-test))
+ ruby-mime-types
+ ruby-multi-test
+ ruby-sys-uname))
(native-inputs
- (list ;; Use a untested version of aruba, to avoid a circular dependency, as
- ;; ruby-aruba depends on ruby-cucumber.
- ruby-aruba-without-tests
- ruby-rspec
- ruby-pry
+ (list ruby-cucumber-compatibility-kit
ruby-nokogiri
- ruby-rubocop))
+ ruby-pry
+ ruby-rspec))
(synopsis "Describe automated tests in plain language")
(description "Cucumber is a tool for running automated tests written in
plain language. It's designed to support a Behaviour Driven Development (BDD)
@@ -8035,6 +9554,48 @@ software development workflow.")
(native-inputs
'())))
+(define-public ruby-covered
+ (package
+ (name "ruby-covered")
+ (version "0.20.2")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "covered" version))
+ (sha256
+ (base32
+ "04fpj493jn23ah5fq93956a5h2xj3z0hrckvc26fxcfsg5pbwypa"))))
+ (build-system ruby-build-system)
+ (arguments
+ ;; XXX: The test suite is disabled to avoid dependency cycles with
+ ;; ruby-samovar, through ruby-bake.
+ (list #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'relax-requirements
+ (lambda _
+ (substitute* ".gemspec"
+ (("\">= 3.2\"")
+ "\">= 2.7\"")))))))
+ (propagated-inputs (list ruby-console ruby-msgpack))
+ (synopsis "Modern approach to code coverage in Ruby")
+ (description "Covered uses modern Ruby features to generate comprehensive
+coverage, including support for templates which are compiled into Ruby. It
+has the following features:
+@itemize
+@item
+Incremental coverage -- if you run your full test suite, and the run a subset,
+it will still report the correct coverage - so you can incrementally work on
+improving coverage.
+@item
+Integration with RSpec, Minitest, Travis & Coveralls - no need to configure
+anything - out of the box support for these platforms.
+@item
+It supports coverage of views -- templates compiled to Ruby code can be
+tracked for coverage reporting.
+@end itemize")
+ (home-page "https://github.com/ioquatix/covered")
+ (license license:expat)))
+
(define-public ruby-coveralls
(package
(name "ruby-coveralls")
@@ -8047,23 +9608,40 @@ software development workflow.")
(base32
"1mv4fn5lfxhy7bc2f1lpnc5yp9mvv97az77j4r7jgrxcqwn8fqxc"))))
(build-system ruby-build-system)
- ;; The test suite depends on ruby-vcr, which cannot be included in Guix
- ;; because of its nonfree, Hippocratic-derived license.
(arguments
- `(#:tests? #f
- #:phases (modify-phases %standard-phases
- (add-after 'extract-gemspec 'strip-version-requirements
- ;; Keeping strict version requirements can cause problems
- ;; to users of the library, such as: Gem::ConflictError:
- ;; Unable to activate coveralls-0.8.23, because
- ;; simplecov-0.17.1 conflicts with simplecov (~> 0.16.1).
- (lambda _
- (substitute* "coveralls-ruby.gemspec"
- (("(.*add_.*dependency\\([^,]+), .*" _ stripped)
- (string-append stripped ")\n")))
- #t)))))
+ (list #:test-target "default"
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'disable-problematic-tests
+ (lambda _
+ (substitute* "spec/coveralls/coveralls_spec.rb"
+ ;; This test fails for unknown reasons (perhaps
+ ;; networking); skip it.
+ (("it \"sends existing test results\"" all)
+ (string-append "x" all)))
+ ;; 3 simplecov tests fail, perhaps due to using a
+ ;; newer simplecov version.
+ (delete-file "spec/coveralls/simplecov_spec.rb")
+ (substitute* "coveralls-ruby.gemspec"
+ (("\"spec/coveralls/simplecov_spec.rb\".freeze, ")
+ ""))))
+ (add-after 'extract-gemspec 'relax-requirements
+ (lambda _
+ (substitute* "coveralls-ruby.gemspec"
+ (("%q<simplecov>.freeze, \\[\"~> 0.16.1\"]")
+ "%q<simplecov>.freeze")))))))
+ (native-inputs
+ (list git-minimal/pinned
+ ruby-pry
+ ruby-rspec
+ ruby-truthy
+ ruby-vcr-expat
+ ruby-webmock))
(propagated-inputs
- (list ruby-json ruby-term-ansicolor ruby-thor ruby-tins))
+ (list ruby-json
+ ruby-term-ansicolor
+ ruby-thor
+ ruby-tins
+ ruby-simplecov))
(synopsis "Ruby implementation of the Coveralls API")
(description "This package provides a Ruby implementation of the Coveralls
API.")
@@ -8092,7 +9670,7 @@ in already-indented code.")
(define-public ruby-cucumber-core
(package
(name "ruby-cucumber-core")
- (version "7.1.0")
+ (version "11.1.0")
(source
(origin
(method git-fetch)
@@ -8102,23 +9680,25 @@ in already-indented code.")
(file-name (git-file-name name version))
(sha256
(base32
- "1p5wb6wbggbw37ariyag4kxpiczznvgm3c8cnz1744dmbj79q1rn"))))
- (build-system ruby-build-system)
- (arguments
- `(#:test-target "spec"
- #:phases
- (modify-phases %standard-phases
- (add-after 'extract-gemspec 'relax-version-requirements
- (lambda _
- (substitute* "cucumber-core.gemspec"
- (("'cucumber-tag-expressions',.*")
- "'cucumber-tag-expressions', '>=2.0.0'\n"))
- #t)))))
+ "0lf2inlam0951djc2qz81x0nkffmw2dpj44iadw1fw31m7r8wqvh"))))
+ (build-system ruby-build-system)
+ (arguments (list #:test-target "spec"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'relax-version-requirements
+ (lambda _
+ (substitute* "cucumber-core.gemspec"
+ (("'cucumber-tag-expressions',.*")
+ "'cucumber-tag-expressions', '>=4.1.0'\n")))))))
(native-inputs
- (list ruby-rspec ruby-coveralls ruby-rubocop ruby-simplecov
+ (list ruby-rspec
+ ruby-coveralls
+ ruby-rubocop
+ ruby-simplecov
ruby-unindent))
(propagated-inputs
- (list ruby-cucumber-messages ruby-gherkin
+ (list ruby-cucumber-gherkin
+ ruby-cucumber-messages
ruby-cucumber-tag-expressions))
(synopsis "Core library for the Cucumber BDD app")
(description "Cucumber is a tool for running automated tests
@@ -8132,50 +9712,46 @@ and trust on your team.")
(define-public ruby-cucumber-expressions
(package
(name "ruby-cucumber-expressions")
- (version "10.2.0")
+ (version "16.1.2")
(source
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/cucumber/cucumber-expressions-ruby")
+ (url "https://github.com/cucumber/cucumber-expressions")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
- "1aivhcpjrmbvp9bg0y7g6zxh2swfvylvg0sapq5jc4i1y74k8npd"))))
+ "1dhq88k9x2x8svam5bc7rrcd166fqymda8wxryqkbkffhnzla0id"))))
(build-system ruby-build-system)
(arguments
- '(#:test-target "spec"))
- (native-inputs
- (list ruby-rspec ruby-simplecov))
+ (list #:test-target "spec"
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'chdir
+ (lambda _
+ (chdir "ruby"))))))
+ (native-inputs (list ruby-rspec ruby-simplecov))
(synopsis "Simpler alternative to Regular Expressions")
(description "Cucumber Expressions offer similar functionality to Regular
Expressions, with a syntax that is easier to read and write. Cucumber
Expressions are extensible with parameter types.")
- (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
+ (home-page "https://github.com/cucumber/cucumber-expressions/")
(license license:expat)))
(define-public ruby-cucumber-wire
(package
(name "ruby-cucumber-wire")
- (version "3.1.0")
+ (version "6.2.1")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "cucumber-wire" version))
(sha256
(base32
- "0z1n13lqv70zb2lcrvs2263lm0gsb3gz8gbv890kxzwp8cvd433k"))))
+ "1pmydrh9lcckj7p0cn67jw7msxdkgr9zir86cs19h3mf2zlcv7b9"))))
(build-system ruby-build-system)
(arguments
- '(#:tests? #f ;tests use cucumber, causing a cycle
- #:phases
- (modify-phases %standard-phases
- (add-after 'extract-gemspec 'relax-version-requirements
- (lambda _
- (substitute* ".gemspec"
- ((" 10\\.1") " 10.2"))
- #t)))))
+ (list #:tests? #f)) ;tests use cucumber, causing a cycle
(propagated-inputs
(list ruby-cucumber-core ruby-cucumber-expressions
ruby-cucumber-messages))
@@ -8188,26 +9764,29 @@ implemented and invoked on any platform.")
(define-public ruby-cucumber-tag-expressions
(package
(name "ruby-cucumber-tag-expressions")
- (version "3.0.0")
+ (version "5.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/cucumber/tag-expressions-ruby")
+ (url "https://github.com/cucumber/tag-expressions")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
- "15dw4w0npd4m6aw7zhqkjxxzngp42kswrkwfygxkxcxnhy5zl1vx"))))
+ "1ziq30szn8m5y29hsdpx4dn1a8sy29h01nvcldm8nr1mx4b7dj1w"))))
(build-system ruby-build-system)
(arguments
- `(#:test-target "spec"))
- (native-inputs
- (list ruby-rspec))
+ (list #:test-target "spec"
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'chdir
+ (lambda _
+ (chdir "ruby"))))))
+ (native-inputs (list ruby-rspec))
(synopsis "Cucumber tag expressions for Ruby")
(description "Cucumber tag expression parser for Ruby. A tag expression
is an infix boolean expression used by Cucumber.")
- (home-page "https://github.com/cucumber/tag-expressions-ruby")
+ (home-page "https://github.com/cucumber/tag-expressions")
(license license:expat)))
(define-public ruby-bindex
@@ -8520,6 +10099,29 @@ application.")
(home-page "https://github.com/djanowski/pygmentize")
(license license:expat)))
+(define-public ruby-event-emitter
+ (package
+ (name "ruby-event-emitter")
+ (version "0.2.6")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "event_emitter" version))
+ (sha256
+ (base32
+ "148k9qv8102l3m6klc24dwip79f9y4bjr5z19dckd7ffbjyrf9n7"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'relax-requirements
+ (lambda _
+ (substitute* "event_emitter.gemspec"
+ (("~> 1.15") ">= 1.15")))))))
+ (synopsis "Ruby port of EventEmitter from Node.js")
+ (description
+ "This package provides a Ruby port of EventEmitter from Node.js.")
+ (home-page "https://shokai.github.io/event_emitter/")
+ (license license:expat)))
+
(define-public ruby-eventmachine
(package
(name "ruby-eventmachine")
@@ -8711,20 +10313,56 @@ definitions.")
(define-public ruby-mini-mime
(package
(name "ruby-mini-mime")
- (version "1.0.2")
+ (version "1.1.2")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "mini_mime" version))
(sha256
(base32
- "1axm0rxyx3ss93wbmfkm78a6x03l8y4qy60rhkkiq0aza0vwq3ha"))))
+ "0lbim375gw2dk6383qirz13hgdmxlan0vc5da2l072j3qw6fqjm5"))))
(build-system ruby-build-system)
(synopsis "Lightweight mime type lookup toy")
(description "This package provides a lightweight mime type lookup toy.")
(home-page "https://github.com/discourse/mini_mime")
(license license:expat)))
+(define-public ruby-fileutils
+ (package
+ (name "ruby-fileutils")
+ (version "1.7.0")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/ruby/fileutils")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0m68gaqclnc2wflilmrnr19kky2gr6fjf6k3yq02sf9scs281kid"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'disable-problematic-tests
+ (lambda _
+ (substitute* "test/fileutils/test_fileutils.rb"
+ ;; The 'test_chown' tests depends on /etc/groups, which
+ ;; doesn't exist in the build environment.
+ (("def test_chown.*" all)
+ (string-append all " return true\n"))
+ ;; The 'test_cp_r_dev' expects a RuntimeError to be raised
+ ;; when copying a char device to a directory, but this is not
+ ;; triggered in the build environment, for reasons unknown.
+ (("def test_cp_r_dev.*" all)
+ (string-append all " return true\n"))))))))
+ (synopsis "Ruby utility libray to manipulate files")
+ (description "The FileUtils Ruby library includes Several file utility
+methods for copying, moving, removing, etc.")
+ (home-page "https://github.com/ruby/fileutils")
+ (license license:bsd-2)))
+
(define-public ruby-fivemat
(package
(name "ruby-fivemat")
@@ -8780,23 +10418,24 @@ engine.")
(define-public ruby-shoulda-context
(package
(name "ruby-shoulda-context")
- (version "1.2.2")
+ (version "2.0.0")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "shoulda-context" version))
(sha256
(base32
- "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
+ "0d1clcp92jv8756h09kbc55qiqncn666alx0s83za06q5hs4bpvs"))))
(build-system ruby-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
- (lambda _
- ;; Do not run tests to avoid circular dependence with rails.
- ;; Instead just import the library to test.
- (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; Do not run tests to avoid circular dependence with rails.
+ ;; Instead just import the library to test.
+ (invoke "ruby" "-Ilib" "-r" "shoulda-context")))))))
(synopsis "Test::Unit context framework extracted from Shoulda")
(description
"@code{shoulda-context} is the context framework extracted from Shoulda.
@@ -8809,23 +10448,24 @@ names.")
(define-public ruby-shoulda-matchers
(package
(name "ruby-shoulda-matchers")
- (version "3.1.2")
+ (version "5.3.0")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "shoulda-matchers" version))
(sha256
(base32
- "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
+ "11igjgh16dl5pwqizdmclzlzpv7mbmnh8fx7m9b5kfsjhwxqdfpn"))))
(build-system ruby-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
- (lambda _
- ;; Do not run tests to avoid circular dependence with rails. Instead
- ;; just import the library to test.
- (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; Do not run tests to avoid circular dependence with rails. Instead
+ ;; just import the library to test.
+ (invoke "ruby" "-Ilib" "-r" "shoulda-matchers")))))))
(propagated-inputs
(list ruby-activesupport))
(synopsis "Collection of testing matchers extracted from Shoulda")
@@ -8836,38 +10476,37 @@ more complex, and error-prone.")
(home-page "https://github.com/thoughtbot/shoulda-matchers")
(license license:expat)))
-(define-public ruby-shoulda-matchers-2
- (package
- (inherit ruby-shoulda-matchers)
- (version "2.8.0")
- (source (origin
- (method url-fetch)
- (uri (rubygems-uri "shoulda-matchers" version))
- (sha256
- (base32
- "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
-
(define-public ruby-shoulda
(package
(name "ruby-shoulda")
- (version "3.5.0")
+ (version "4.0.0")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "shoulda" version))
(sha256
(base32
- "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
+ "02lww34kn1g6lidp4rx4rs6bqvirrzxlfw1y2wm11aif8f622xz6"))))
(build-system ruby-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
- ;; Don't run tests to avoid circular dependence with rails. Instead
- ;; just import the library to test.
- (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; Don't run tests to avoid circular dependence with rails.
+ ;; Instead just import the library to test.
+ (invoke "ruby" "-Ilib" "-r" "shoulda"))))
+ (add-after 'extract-gemspec 'relax-requirements
+ (lambda _
+ (substitute* "shoulda.gemspec"
+ ;; An older version of shoulda-matchers (4.0) is used, out of
+ ;; little maintenance rather than because of an real
+ ;; incompatibility (see:
+ ;; https://github.com/thoughtbot/shoulda/issues/275).
+ ((", \\[\"~> 4.0\"]") "")))))))
(propagated-inputs
- (list ruby-shoulda-context ruby-shoulda-matchers-2))
+ (list ruby-shoulda-context ruby-shoulda-matchers))
(synopsis "Context framework and matchers for testing")
(description
"@code{shoulda} is a meta-package combining @code{shoulda-context} and
@@ -9018,14 +10657,14 @@ requests. This is useful when testing software.")
(define-public ruby-unicode-display-width
(package
(name "ruby-unicode-display-width")
- (version "1.6.0")
+ (version "2.4.2")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "unicode-display_width" version))
(sha256
(base32
- "08kfiniak1pvg3gn5k6snpigzvhvhyg7slmm0s2qx5zkj62c1z2w"))))
+ "1gi82k102q7bkmfi7ggn9ciypn897ylln1jk9q67kjhr39fj043a"))))
(build-system ruby-build-system)
(arguments
'(;; Test data not included.
@@ -9078,6 +10717,94 @@ checking for the right Ruby version in software.")
(home-page "https://github.com/janlelis/ruby_version")
(license license:expat)))
+(define-public ruby-websocket-client-simple
+ (package
+ (name "ruby-websocket-client-simple")
+ (version "0.6.1")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "websocket-client-simple" version))
+ (sha256
+ (base32
+ "1ypl4xvlh5c99zbn20sifv7gv04zi20ly464vsgikfrpn5f37bid"))))
+ (build-system ruby-build-system)
+ (arguments (list #:test-target "default"))
+ (native-inputs (list ruby-eventmachine ruby-websocket-eventmachine-server))
+ (propagated-inputs (list ruby-event-emitter ruby-websocket))
+ (synopsis "Simple WebSocket client for Ruby")
+ (description "This package provides a simple WebSocket client for Ruby.")
+ (home-page "https://github.com/ruby-jp/websocket-client-simple")
+ (license license:expat)))
+
+(define-public ruby-websocket-eventmachine-base
+ (package
+ (name "ruby-websocket-eventmachine-base")
+ (version "1.2.0")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "websocket-eventmachine-base" version))
+ (sha256
+ (base32
+ "0wiz61mcwgs3k21cdr5l9b4jpg29gl6mflfampww2v525yc3hr1r"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:tests? #f)) ;no test suite
+ (propagated-inputs (list ruby-eventmachine ruby-websocket
+ ruby-websocket-native))
+ (synopsis "WebSocket base for Ruby client and server")
+ (description "This package provides a WebSocket base for a Ruby client and
+server.")
+ (home-page "https://github.com/imanel/websocket-eventmachine-base")
+ (license license:expat)))
+
+(define-public ruby-websocket-eventmachine-server
+ (package
+ (name "ruby-websocket-eventmachine-server")
+ (version "1.0.1")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "websocket-eventmachine-server" version))
+ (sha256
+ (base32
+ "0iqpzc8s028nck1flqaj784gvyn64wy1h3svpa4y2847wklg8sms"))))
+ (build-system ruby-build-system)
+ ;; TODO: The test suite requires Autobahn, not yet packaged in Guix.
+ (arguments (list #:tests? #f))
+ (propagated-inputs (list ruby-websocket-eventmachine-base))
+ (synopsis "WebSocket server for Ruby")
+ (description "This package provides a WebSocket server for Ruby.")
+ (home-page "https://github.com/imanel/websocket-eventmachine-server")
+ (license license:expat)))
+
+(define-public ruby-websocket-native
+ (package
+ (name "ruby-websocket-native")
+ (version "1.0.0")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "websocket-native" version))
+ (sha256
+ (base32
+ "1kgvd3gyzh7hk0ddzn85jrs4csxm54qnvla95ldyn6rzgfbjchdn"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:test-target "spec"
+ #:phases #~(modify-phases %standard-phases
+ (add-before 'check 'disable-problematic-tests
+ (lambda _
+ (substitute* "spec/websocket_spec.rb"
+ (("it \"should have mask_native defined\"" all)
+ (string-append "x" all)))))
+ (add-after 'build 'compile
+ (lambda _
+ (invoke "rake" "compile"))))))
+ (native-inputs (list ruby-rake-compiler ruby-rspec))
+ (synopsis "Native Ruby extension for the WebSocket gem")
+ (description "This package provides a native extension that can increase
+performance by about 25% compared to the pure Ruby WebSocket implementation.")
+ (home-page "https://github.com/imanel/websocket-ruby-native")
+ (license license:expat)))
+
(define-public ruby-websocket-driver
(package
(name "ruby-websocket-driver")
@@ -9159,6 +10886,87 @@ Suffix List.")
(home-page "https://github.com/knu/ruby-domain_name")
(license license:bsd-2)))
+(define-public ruby-dotenv
+ (package
+ (name "ruby-dotenv")
+ (version "2.8.1")
+ (source (origin
+ (method git-fetch) ;for the tests
+ (uri (git-reference
+ (url "https://github.com/bkeepers/dotenv")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0s1a71jxppa20fsm2rd1vym099ib48m039rmhggmz99hc3z1fvvr"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:test-target "spec"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'do-not-build-dotenv-rails
+ (lambda _
+ ;; The repository includes the definitions of two packages,
+ ;; 'dotenv' and 'dotenv-rails'. Since we want to package them
+ ;; separately, remove the dotenv-rails and associated Rake
+ ;; tasks.
+ (delete-file "dotenv-rails.gemspec")
+ (delete-file "spec/dotenv/rails_spec.rb")
+ (substitute* "Rakefile"
+ (("DotenvRailsGemHelper.install_tasks name: \"dotenv-rails\"")
+ "")
+ ((", \"dotenv-rails:.*\"")
+ ""))))
+ (replace 'replace-git-ls-files
+ (lambda _
+ (substitute* "dotenv.gemspec"
+ (("`git ls-files README.md LICENSE lib bin \\| grep -v rails`")
+ "`find README.md LICENSE lib bin -type f | sort | \
+grep -v rails`")))))))
+ (native-inputs (list ruby-standard ruby-rspec))
+ (synopsis "Ruby library for setting environment variables")
+ (description "Dotenv is a Ruby library for setting environment variables
+defined in a @file{.env} file.")
+ (home-page "https://github.com/bkeepers/dotenv")
+ (license license:expat)))
+
+(define-public ruby-dotenv-rails
+ (package
+ (inherit ruby-dotenv)
+ (name "ruby-dotenv-rails")
+ (arguments
+ (substitute-keyword-arguments (package-arguments ruby-dotenv)
+ ((#:phases phases '%standard-phases)
+ #~(modify-phases #$phases
+ (delete 'do-not-build-dotenv-rails)
+ (add-after 'unpack 'delete-Gemfile
+ (lambda _
+ ;; It defines extraneous dependencies; remove it.
+ (delete-file "Gemfile")))
+ (add-after 'unpack 'remove-extraneous-gemspec
+ (lambda _
+ (delete-file "dotenv.gemspec")
+ (substitute* "Gemfile"
+ ((".*\"dotenv\".*") ""))
+ (substitute* "Rakefile"
+ ;; Remove the dotenv-related Rake tasks.
+ (("Bundler::GemHelper.install_tasks name: \"dotenv\"")
+ "")
+ (("\"dotenv:[^\"]*\", ")
+ ""))))
+ (replace 'replace-git-ls-files
+ (lambda _
+ (substitute* "dotenv-rails.gemspec"
+ (("`git ls-files lib \\| grep rails`")
+ "`find lib -type f | sort | grep rails`"))))))))
+ (native-inputs (list ruby-rspec ruby-spring ruby-standard))
+ (propagated-inputs (list ruby-dotenv ruby-railties))
+ (synopsis "Ruby library for setting environment variables in Rails project")
+ (description "Dotenv is a Ruby library for setting environment variables
+defined in a @file{.env} file. This is the Rails variant, adapted for use
+with Ruby on Rails projects.")))
+
(define-public ruby-http-cookie
(package
(name "ruby-http-cookie")
@@ -9318,6 +11126,26 @@ subprocess.")
(home-page "https://github.com/ahoward/systemu")
(license license:ruby)))
+(define-public ruby-bcrypt
+ (package
+ (name "ruby-bcrypt")
+ (version "3.1.18")
+ ;; FIXME: Unbundle the bcrypt library used.
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "bcrypt" version))
+ (sha256
+ (base32
+ "048z3fvcknqx7ikkhrcrykxlqmf9bzc7l0y5h1cnvrc9n2qf0k8m"))))
+ (build-system ruby-build-system)
+ (arguments (list #:test-target "default")) ;compile + spec
+ (native-inputs (list ruby-rake-compiler ruby-rspec))
+ (synopsis "Ruby bcrypt wrapper")
+ (description "This Ruby library provides a simple wrapper to bcrypt, a
+secure hash algorithm for hashing passwords.")
+ (home-page "https://github.com/bcrypt-ruby/bcrypt-ruby")
+ (license license:expat)))
+
(define-public ruby-bio-commandeer
(package
(name "ruby-bio-commandeer")
@@ -9464,6 +11292,28 @@ and locking between worker processes.")
(home-page "https://github.com/chanks/que")
(license license:expat)))
+(define-public ruby-queue-classic
+ (package
+ (name "ruby-queue-classic")
+ (version "4.0.0")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "queue_classic" version))
+ (sha256
+ (base32
+ "0npyhajf2fc80apkw9s2kj0n254w5lcl4xpjidg5d5w1fb19abh6"))))
+ (build-system ruby-build-system)
+ (arguments (list #:tests? #f)) ;tests require a postgresql server
+ (native-inputs (list ruby-activerecord ruby-minitest-reporters))
+ (propagated-inputs (list ruby-pg))
+ (synopsis "Queuing library for Ruby")
+ (description "@code{queue_classic} is a queuing library for Ruby
+applications (Rails, Sinatra, etc.) @code{queue_classic} features
+asynchronous job polling, database maintained locks and has a single
+dependency, @code{pg}.")
+ (home-page "https://github.com/QueueClassic/queue_classic")
+ (license license:expat)))
+
(define-public ruby-ae
(package
(name "ruby-ae")
@@ -9699,28 +11549,109 @@ part of the Prawn PDF generator.")
(define-public ruby-puma
(package
(name "ruby-puma")
- (version "3.9.1")
+ (version "6.1.1")
(source
(origin
- (method git-fetch)
- ;; Fetch from GitHub because distributed gem does not contain tests.
+ (method git-fetch) ;for tests
(uri (git-reference
- (url "https://github.com/puma/puma")
- (commit (string-append "v" version))))
+ (url "https://github.com/puma/puma")
+ (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
- "1kj75k81iik3aj73pkc9ixj9rwf95ipkyma65n28m64dgw02qi1f"))))
+ "0v4nn3z0bj0ry0gpx1hsf5mzkinsx9sv716j4jf2nb1x6hcwv993"))))
(build-system ruby-build-system)
(arguments
- `(#:tests? #f ; Tests require an out-dated version of minitest.
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'fix-gemspec
- (lambda _
- (substitute* "puma.gemspec"
- (("git ls-files") "find * |sort"))
- #t)))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-rubocop
+ (lambda _
+ (setenv "PUMA_NO_RUBOCOP" "1")))
+ (add-after 'unpack 'use-rack-2
+ (lambda _
+ (setenv "PUMA_CI_RACK_2" "1")))
+ (add-before 'build 'increase-resource-limits
+ (lambda _
+ ;; The test suite requires a higher number of open files. Try
+ ;; increasing the soft resource limit of max open files to 2048,
+ ;; or equal to the hard limit, whichever is lower.
+ (call-with-values (lambda () (getrlimit 'nofile))
+ (lambda (soft hard)
+ (when (and soft (< soft 2048))
+ (if hard
+ (setrlimit 'nofile (min hard 2048) hard)
+ (setrlimit 'nofile 2048 #f))
+ (format
+ #t "increased maximum number of open files from ~d to ~d~%"
+ soft (if hard (min hard 2048) 2048)))))))
+ (add-before 'build 'fix-gemspec
+ (lambda _
+ (substitute* "puma.gemspec"
+ (("`git ls-files -- bin docs ext lib tools`")
+ "`find bin docs ext lib tools -type f |sort`"))))
+ (delete 'check) ;moved after install
+ (add-after 'install 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "bundle" "exec" "rake" "test"))))
+ (add-before 'check 'disable-problematic-tests
+ (lambda _
+ (let-syntax ((skip-tests
+ (syntax-rules ()
+ ((_ file test ...)
+ (substitute* file
+ (((string-append "def " test ".*") all)
+ (string-append
+ all " skip('fails on guix')\n")) ...)))))
+ ;; The test failures were reported at:
+ ;; https://github.com/puma/puma/issues/3093, but appear to be
+ ;; caused by the Guix build container, perhaps the lack of
+ ;; zombie process reaping (see:
+ ;; https://issues.guix.gnu.org/30948).
+ ;; All the tests in the 'test_worker_gem_independence.rb'
+ ;; module fail with "Expected false to be truthy.".
+ (delete-file "test/test_worker_gem_independence.rb")
+ (skip-tests "test/test_integration_ssl_session.rb"
+ ;; The TLS 1.2 test fails for unknown reasons.
+ "test_off_tls1_2")
+ (skip-tests "test/test_integration_cluster.rb"
+ "test_fork_worker_on_refork"
+ "test_culling_strategy_oldest_fork_worker"
+ "test_usr1_fork_worker")
+ (skip-tests "test/test_integration_pumactl.rb"
+ "test_refork_cluster"))))
+ (add-before 'check 'relax-test-case-timeout
+ (lambda _
+ ;; The default value is 45 s and easily causes timeouts.
+ (setenv "TEST_CASE_TIMEOUT" "600")))
+ (add-before 'check 'set-home
+ (lambda _
+ ;; Some tests fail if the cannot write to HOME.
+ (setenv "HOME" "/tmp")))
+ (add-before 'check 'set-paths
+ (lambda _
+ ;; The test suite requires the 'puma' command to be on PATH.
+ (setenv "PATH" (string-append (getenv "PATH") ":"
+ #$output "/bin"))
+ (setenv "GEM_PATH" (string-append
+ (getenv "GEM_PATH") ":"
+ #$output "/lib/ruby/vendor_ruby")))))))
+ (native-inputs
+ (list bundler
+ curl
+ ruby-json
+ ruby-localhost
+ ruby-m
+ ruby-minitest-proveit
+ ruby-minitest-retry
+ ruby-minitest-stub-const
+ ruby-rack
+ ruby-rake-compiler
+ ruby-webrick))
+ (inputs
+ (list openssl
+ ruby-nio4r))
(synopsis "Simple, concurrent HTTP server for Ruby/Rack")
(description
"Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
@@ -9839,77 +11770,110 @@ call.")
(home-page "https://github.com/travisjeffery/timecop")
(license license:expat)))
-(define-public ruby-concurrent
+(define-public ruby-concurrent-ruby
(package
- (name "ruby-concurrent")
- (version "1.1.5")
- (source
- (origin
- (method git-fetch)
- ;; Download from GitHub because the rubygems version does not contain
- ;; Rakefile.
- (uri (git-reference
- (url "https://github.com/ruby-concurrency/concurrent-ruby")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "193q2k47vk7qdvv9hlhmmdxgy91xl4imapyk1ijdg9vgf46knyzj"))))
+ (name "ruby-concurrent-ruby")
+ (version "1.2.2")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference ;for tests
+ (url "https://github.com/ruby-concurrency/concurrent-ruby")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1vz4rl0nplq14dk9nx45g59i1sk2h53w1mjlrdiyjf780q4a1i38"))))
(build-system ruby-build-system)
(arguments
- `(#:test-target "ci"
- #:phases
- (modify-phases %standard-phases
- (add-before 'replace-git-ls-files 'remove-extra-gemspecs
- (lambda _
- ;; Delete extra gemspec files so 'first-gemspec' chooses the
- ;; correct one.
- (delete-file "concurrent-ruby-edge.gemspec")
- (delete-file "concurrent-ruby-ext.gemspec")
- #t))
- (replace 'replace-git-ls-files
- (lambda _
- ;; XXX: The default substitution made by this phase is not fully
- ;; compatible with "git ls-files". The latter produces file names
- ;; such as "lib/foo", whereas ruby-build-system uses "find . [...]"
- ;; which gives "./lib/foo". That difference in turn breaks the
- ;; comparison against a glob pattern in this script.
- (substitute* "concurrent-ruby.gemspec"
- (("git ls-files") "find * -type f | sort"))
- #t))
- (add-before 'build 'remove-jar-from-gemspec
- (lambda _
- ;; The gemspec wants to include a JAR file that we do not build
- ;; nor need.
- (substitute* "concurrent-ruby.gemspec"
- (("'lib/concurrent/concurrent_ruby.jar'")
- ""))
- #t))
- (add-before 'build 'remove-rake_compiler_dock-dependency
- (lambda _
- ;; This library is only used when building for non-MRI targets.
- (substitute* "Rakefile"
- (("require 'rake_compiler_dock'")
- ""))
- #t))
- (add-before 'check 'remove-timecop-dependency
- ;; Remove timecop-dependent tests as having timecop as a depedency
- ;; causes circular depedencies.
- (lambda _
- (delete-file "spec/concurrent/executor/timer_set_spec.rb")
- (delete-file "spec/concurrent/scheduled_task_spec.rb")
- #t)))))
- (native-inputs
- (list ruby-rake-compiler ruby-rspec))
- (synopsis "Concurrency tools for Ruby")
- (description
- "This library provides modern concurrency tools including agents,
+ (list
+ #:tests? #f ;the test suite is run in ruby-concurrent-ruby-edge
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'delete-unwanted-gemspecs
+ (lambda _
+ (for-each delete-file
+ '("concurrent-ruby-ext.gemspec"
+ "concurrent-ruby-edge.gemspec"))))
+ (add-after 'unpack 'do-not-install-concurrent_ruby.jar
+ (lambda _
+ ;; This file is only built when building the Java
+ ;; extension.
+ (substitute* "concurrent-ruby.gemspec"
+ (("'lib/concurrent-ruby/concurrent/concurrent_ruby.jar'")
+ "")))))))
+ (synopsis "Concurrency library for Ruby")
+ (description "Concurrent Ruby includes concurrency tools such as agents,
futures, promises, thread pools, actors, supervisors, and more. It is
-inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
+inspired by Erlang, Clojure, Go, JavaScript, actors, and classic concurrency
patterns.")
- (home-page "http://www.concurrent-ruby.com")
+ (home-page "https://github.com/ruby-concurrency/concurrent-ruby")
(license license:expat)))
+;;; The 'gem' is called 'concurrent-ruby'; reversing its name was confusing
+;;; and failed to be picked by the gem importer (which led to this newer
+;;; package).
+(define-public ruby-concurrent
+ (deprecated-package "ruby-concurrent" ruby-concurrent-ruby))
+
+(define-public ruby-concurrent-ruby-ext
+ (package
+ (inherit ruby-concurrent-ruby)
+ (name "ruby-concurrent-ruby-ext")
+ (arguments
+ (list
+ #:tests? #f ;tested as part of concurrent-ruby-edge
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'delete-unwanted-gemspecs
+ (lambda _
+ (for-each delete-file
+ '("concurrent-ruby.gemspec"
+ "concurrent-ruby-edge.gemspec")))))))
+ (native-inputs (list ruby-rake-compiler))
+ (propagated-inputs (list ruby-concurrent-ruby))
+ (synopsis "C extensions for concurrent-ruby")
+ (description "This package provides C extensions to optimize the
+concurrent-ruby gem when running under the Matz's Ruby Interpreter (MRI, also
+known as CRuby).")))
+
+(define-public ruby-concurrent-ruby-edge
+ (package
+ (inherit ruby-concurrent-ruby)
+ (name "ruby-concurrent-ruby-edge")
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'delete-unwanted-gemspecs
+ (lambda _
+ (for-each delete-file
+ '("concurrent-ruby.gemspec"
+ "concurrent-ruby-ext.gemspec"))))
+ ;; The tests rely on the Gem being installed, so move the check
+ ;; phase after the install phase.
+ (delete 'check)
+ (add-after 'install 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (setenv "GEM_PATH" (string-append
+ (getenv "GEM_PATH") ":"
+ #$output "/lib/ruby/vendor_ruby"))
+ (when tests?
+ (invoke "rake" "ci")))))))
+ (native-inputs
+ (list ruby-rake-compiler
+ ruby-rake-compiler-dock
+ ruby-rspec
+ ruby-timecop
+ ruby-yard))
+ (propagated-inputs
+ (list ruby-concurrent-ruby ruby-concurrent-ruby-ext))
+ (synopsis "Edge features and additions to the @code{concurrent-ruby} gem")
+ (description "The @code{concurrent-ruby-edge} gem includes
+@code{concurrent-ruby} features that are under active development and may
+change frequently. They are expected not to keep backward
+compatibility (there may also lack tests and documentation), although semantic
+versions are obeyed though. Features developed in @code{concurrent-ruby-edge}
+are expected to move to @code{concurrent-ruby} when final.")))
+
(define-public ruby-pkg-config
(package
(name "ruby-pkg-config")
@@ -9984,6 +11948,27 @@ are doing, you can fiddle with every last bit of your email directly.")
(home-page "https://github.com/mikel/mail")
(license license:expat)))
+(define-public ruby-net-protocol
+ (package
+ (name "ruby-net-protocol")
+ (version "0.2.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ruby/net-protocol")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0niivmjx7bc6vsylc1ag17mw6mnvjxw02s7cin1f0422xyr8msq9"))))
+ (build-system ruby-build-system)
+ (propagated-inputs (list ruby-timeout))
+ (synopsis "Abstract interface for Ruby network clients")
+ (description "This Ruby library provides an abstract interface for network
+clients.")
+ (home-page "https://github.com/ruby/net-protocol")
+ (license (list license:bsd-2))))
+
(define-public ruby-email-reply-trimmer
(package
(name "ruby-email-reply-trimmer")
@@ -10045,6 +12030,41 @@ more robust and work for non rails projects.")
(home-page "https://github.com/danmayer/code_statistics")
(license license:expat)))
+(define-public ruby-ruby2-keywords
+ (package
+ (name "ruby-ruby2-keywords")
+ (version "0.0.5")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ruby/ruby2_keywords")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1jhqb152zfr2yrxj6j8rzakkwdkg5viggwnnqrrfxwwy63msdi97"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'delete-extraneous-rake-files
+ (lambda _
+ (for-each delete-file '("rakelib/changelogs.rake"
+ "rakelib/epoch.rake"
+ "rakelib/version.rake"))))
+ (add-after 'extract-gemspec 'adjust-files
+ (lambda _
+ (substitute* "ruby2_keywords.gemspec"
+ ;; This file is not present in the git checkout.
+ ((".*\"ChangeLog\",.*") "")))))))
+ (synopsis "Shim library for Module#ruby2_keywords")
+ (description "Provides empty @code{Module#ruby2_keywords} method, for the
+forward source-level compatibility against @command{ruby2.7} and
+@command{ruby3}.")
+ (home-page "https://github.com/ruby/ruby2_keywords")
+ (license license:bsd-2)))
+
(define-public ruby-rubypants
(package
(name "ruby-rubypants")
@@ -10093,14 +12113,17 @@ Markdown.")
(define-public ruby-rake
(package
(name "ruby-rake")
- (version "13.0.1")
+ (version "13.0.6")
(source
(origin
- (method url-fetch)
- (uri (rubygems-uri "rake" version))
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/ruby/rake")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
(base32
- "0w6qza25bq1s825faaglkx1k6d59aiyjjk3yw3ip5sb463mhhai9"))))
+ "0c77xyl677s966f8yvk8yv7l31c1ffa1yl4kcwiram219h0s76in"))))
(build-system ruby-build-system)
(native-inputs
(list bundler))
@@ -10111,6 +12134,40 @@ in standard Ruby syntax.")
(home-page "https://github.com/ruby/rake")
(license license:expat)))
+(define-public ruby-rake-manifest
+ (package
+ (name "ruby-rake-manifest")
+ (version "0.2.3")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mvz/rake-manifest")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "16k2yvg773c25kp2vhzhp01rhf53k0nhrcmpv34k1fridw90r2k8"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:test-target "default"
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'check) ;moved after the install phase
+ (add-after 'install 'check
+ (assoc-ref %standard-phases 'check))
+ (add-before 'check 'set-GEM_PATH
+ (lambda _
+ (setenv "GEM_PATH" (string-append
+ (getenv "GEM_PATH") ":"
+ #$output "/lib/ruby/vendor_ruby")))))))
+ (native-inputs (list ruby-rspec ruby-simplecov))
+ (synopsis "Rake tasks to generate and check a manifest file")
+ (description "This package provides Rake tasks to generate and check a
+manifest file.")
+ (home-page "https://github.com/mvz/rake-manifest")
+ (license license:expat)))
+
(define-public ruby-childprocess
(package
(name "ruby-childprocess")
@@ -10172,38 +12229,40 @@ all known public suffixes.")
(define-public ruby-addressable
(package
(name "ruby-addressable")
- (version "2.7.0")
+ (version "2.8.1")
(source (origin
(method url-fetch)
(uri (rubygems-uri "addressable" version))
(sha256
(base32
- "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy"))))
+ "1ypdmpdn20hxp5vwxz3zc04r5xcwqc25qszdlg41h8ghdqbllwmw"))))
(build-system ruby-build-system)
(arguments
'(#:test-target "spec"
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'disable-bundler
+ (lambda _
+ (substitute* "spec/spec_helper.rb"
+ (("require 'bundler/setup'") ""))))
(add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
- (lambda _
- (substitute* "Gemfile"
- (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
- ((".*launchy.*") "")
- ((".*rake.*") "gem 'rake'\n")
- ((".*redcarpet.*") ""))
- #t))
+ (lambda _
+ (substitute* "Gemfile"
+ (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
+ ((".*launchy.*") "")
+ ((".*rake.*") "gem 'rake'\n")
+ ((".*redcarpet.*") ""))))
(add-before 'check 'delete-network-dependent-test
(lambda _
- (delete-file "spec/addressable/net_http_compat_spec.rb")
- #t)))))
+ (delete-file "spec/addressable/net_http_compat_spec.rb"))))))
(native-inputs
- (list ruby-rspec
- bundler
+ (list bundler
ruby-idn-ruby
- ruby-sporkmonger-rack-mount
+ ruby-rspec
ruby-rspec-its-minimal
- ruby-yard
- ruby-simplecov))
+ ruby-simplecov
+ ruby-sporkmonger-rack-mount
+ ruby-yard))
(propagated-inputs
(list ruby-public-suffix))
(home-page "https://github.com/sporkmonger/addressable")
@@ -10685,6 +12744,70 @@ interface. It allows Jekyll to rebuild your site when a file changes.")
suited for map-reduce or e.g. parallel downloads/uploads.")
(license license:expat)))
+(define-public ruby-cabin
+ (package
+ (name "ruby-cabin")
+ (version "0.9.0")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "cabin" version))
+ (sha256
+ (base32
+ "0b3b8j3iqnagjfn1261b9ncaac9g44zrx1kcg81yg4z9i513kici"))))
+ (build-system ruby-build-system)
+ (arguments (list #:tests? #f)) ;no Rakefile in released gem
+ (synopsis "Structured and contextual logging experiments in Ruby")
+ (description "This Ruby library provides an experimental logging system
+that tries to make logging more flexible and more consumable than plain-text
+logging.")
+ (home-page "https://github.com/jordansissel/ruby-cabin")
+ (license license:asl2.0)))
+
+(define-public ruby-capybara
+ (package
+ (name "ruby-capybara")
+ (version "3.38.0")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "capybara" version))
+ (sha256
+ (base32
+ "123198zk2ak8mziwa5jc3ckgpmsg08zn064n3aywnqm9s1bwjv3v"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:tests? #f ;sinatra is currently broken with rack 3
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'remove-extraneous-requirements
+ (lambda _
+ (substitute* "spec/spec_helper.rb"
+ ((".*require 'selenium_statistics'.*") "")
+ ((".*SeleniumStatistics.print_results.*") ""))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rspec" "spec")))))))
+ (native-inputs
+ (list ruby-puma
+ ruby-rspec
+ ruby-selenium-webdriver
+ ruby-sinatra))
+ (propagated-inputs
+ (list ruby-addressable
+ ruby-launchy
+ ruby-matrix
+ ruby-mini-mime
+ ruby-nokogiri
+ ruby-rack
+ ruby-rack-test
+ ruby-regexp-parser
+ ruby-xpath))
+ (synopsis "Integration testing tool for rack-based web applications")
+ (description "Capybara is an integration testing tool for rack based web
+applications. It simulates how a user would interact with a website.")
+ (home-page "https://github.com/teamcapybara/capybara")
+ (license license:expat)))
+
(define-public ruby-cane
(package
(name "ruby-cane")
@@ -11068,18 +13191,37 @@ is compatible with stylesheets designed for pygments.")
(define-public ruby-hashie
(package
(name "ruby-hashie")
- (version "3.6.0")
+ (version "5.0.0")
(source (origin
- (method url-fetch)
- (uri (rubygems-uri "hashie" version))
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/hashie/hashie")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
(base32
- "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
- (build-system ruby-build-system)
- (native-inputs
- (list bundler))
- (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
- (home-page "https://github.com/intridea/hashie")
+ "0ihami0cdn71cvwzwgr3vxqvqi0ifqsna0vlyqiqlhsnf93w0cm8"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:test-target "spec"
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-bundler
+ (lambda _
+ (substitute* "Rakefile"
+ ((".*require 'bundler'.*") "")
+ ((".*Bundler.setup.*") "")
+ (("Bundler::GemHelper\\.install_tasks") ""))))
+ (add-after 'unpack 'disable-rubocop
+ (lambda _
+ (substitute* "Rakefile"
+ (("require 'rubocop/rake_task'") "")
+ (("RuboCop::RakeTask.new") ""))))
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ ;; Contains multiple extraneous dependencies.
+ (delete-file "Gemfile"))))))
+ (native-inputs (list ruby-json ruby-pry ruby-rspec ruby-rspec-pending-for))
+ (home-page "https://github.com/hashie/hashie")
(synopsis "Extensions to Ruby Hashes")
(description "Hashie is a collection of classes and mixins that make Ruby
hashes more powerful.")
@@ -11203,6 +13345,68 @@ own right, and also constitutes a row or column of a @code{Matrix}.")
(home-page "https://github.com/ruby/matrix")
(license license:bsd-2)))
+(define-public ruby-m
+ (package
+ (name "ruby-m")
+ (version "1.6.1")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/qrush/m")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1aycfc8l1bsln1y300fv75fknn4amjcvc4rm2kd8hb6cqivjq5rg"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'sanitize-dependencies
+ (lambda _
+ (delete-file "Gemfile")
+ (delete-file "Gemfile.lock")
+ ;; Rocco is unmaintained as of 2023/01/08; avoid depending on
+ ;; it.
+ (substitute* "m.gemspec"
+ ;; The rdiscount and rocco dependencies are used for
+ ;; generating the documentation.
+ ((".*rdiscount.*") "")
+ ((".*rocco.*") "")
+ ((".*appraisal.*") "")
+ ((".*coveralls.*") ""))
+ (substitute* "Rakefile"
+ ;; ruby-appraisal is not packaged, and is used to test against
+ ;; various dependencies; circumvent its use.
+ ((".*require 'appraisal'.*") "")
+ ((".*require 'coveralls'.*") "")
+ (("appraisal [:graphic:]+ rake")
+ "rake")
+ (("Coveralls.push!") ""))))
+ (add-before 'replace-git-ls-files 'pre-replace-git-ls-files
+ (lambda _
+ (substitute* "m.gemspec"
+ (("git ls-files -- bin/\\*")
+ "find bin -type f -not -regex '.*\\.gem$' | sort")
+ (("git ls-files -- \\{test,spec,features}/\\*")
+ "find test -type f -not -regex '.*\\.gem$' | sort"))))
+ (delete 'check)
+ (add-after 'install 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (setenv "GEM_PATH" (string-append
+ (getenv "GEM_PATH") ":"
+ #$output "/lib/ruby/vendor_ruby"))
+ (when tests?
+ (invoke "rake" "test")))))))
+ (native-inputs (list ruby-activesupport))
+ (propagated-inputs (list ruby-method-source ruby-rake))
+ (synopsis "Ruby test runner that can run tests by line number")
+ (description "@code{m} stands for metal, a better test/unit and
+@code{minitest} test runner that can run tests by line number.")
+ (home-page "https://github.com/qrush/m")
+ (license license:expat)))
+
(define-public ruby-mercenary
(package
(name "ruby-mercenary")
@@ -11223,24 +13427,168 @@ own right, and also constitutes a row or column of a @code{Matrix}.")
command-line apps in Ruby.")
(license license:expat)))
+(define-public ruby-launchy
+ (package
+ (name "ruby-launchy")
+ (version "2.5.2")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "launchy" version))
+ (sha256
+ (base32
+ "06r43899384das2bkbrpsdxsafyyqa94il7111053idfalb4984a"))))
+ (build-system ruby-build-system)
+ (native-inputs (list curl links ruby-simplecov))
+ (propagated-inputs (list ruby-addressable))
+ (synopsis "Ruby helper class for launching applications")
+ (description
+ "Launchy is helper class for launching applications in a fire and forget
+manner. The aim of Launchy is to provide a common approach to launching
+external applications from within Ruby programs.")
+ (home-page "https://github.com/copiousfreetime/launchy")
+ (license license:isc)))
+
(define-public ruby-liquid
(package
(name "ruby-liquid")
- (version "4.0.0")
+ (version "5.4.0")
(source (origin
- (method url-fetch)
- (uri (rubygems-uri "liquid" version))
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/Shopify/liquid")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
(base32
- "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
+ "1qdnvd1f9zs6wyilcgxyh93wis7ikbpimjxfpbkpk2ngr1m2c8la"))))
(build-system ruby-build-system)
- (arguments `(#:tests? #f)); No rakefile
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'check) ;moved after the install phase
+ (add-after 'install 'check
+ (assoc-ref %standard-phases 'check))
+ (add-before 'check 'set-GEM_PATH
+ (lambda _
+ (setenv "GEM_PATH" (string-append
+ (getenv "GEM_PATH") ":"
+ #$output "/lib/ruby/vendor_ruby"))))
+ (add-before 'check 'delete-problematic-tests
+ (lambda _
+ ;; The following test fails with 'Unknown tag' errors (see:
+ ;; https://github.com/Shopify/liquid/issues/1699).
+ (delete-file "test/integration/tags/inline_comment_test.rb"))))))
+ (native-inputs (list ruby-liquid-c-bootstrap ruby-rspec ruby-stackprof))
(home-page "https://shopify.github.io/liquid/")
(synopsis "Template language")
(description "Liquid is a template language written in Ruby. It is used
to load dynamic content on storefronts.")
(license license:expat)))
+(define-public ruby-liquid-4
+ (package
+ (inherit ruby-liquid)
+ (name "ruby-liquid")
+ (version "4.0.4")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/Shopify/liquid")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0cr321nd0zkbxirgdfmz37xx7j26zfnicjh585fi20vx60frry83"))))
+ (arguments (list #:tests? #f)))) ;avoid required an older ruby-liquid-c
+
+;;; This variant is purposefully incomplete, lacking ruby-liquid so that it
+;;; can be used for ruby-liquid's test suite.
+(define ruby-liquid-c-bootstrap
+ (package
+ (name "ruby-liquid-c-bootstrap")
+ (version "4.1.0")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "liquid-c" version))
+ (sha256
+ (base32
+ "0jl37jz9hbfbhknryx4myxqx4n1f5dzyzmf1sapkcbw93xyrmkch"))))
+ (build-system ruby-build-system)
+ (arguments (list #:tests? #f))
+ (native-inputs (list ruby-rake-compiler))
+ (synopsis "Liquid performance extension in C")
+ (description "This package provides a Partial native implementation of the
+liquid ruby gem in C that makes it operate about three times faster.")
+ (home-page "https://github.com/shopify/liquid-c")
+ (license license:expat)))
+
+(define-public ruby-liquid-c
+ (package/inherit ruby-liquid-c-bootstrap
+ (name "ruby-liquid-c")
+ (arguments
+ (list
+ ;; Only run the unit tests, because the test:integration target fails
+ ;; with "File does not exist: test_helper" (see:
+ ;; https://github.com/Shopify/liquid-c/issues/188).
+ #:test-target "test:unit"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'relax-requirements
+ (lambda _
+ (substitute* "Gemfile"
+ ;; Do not attempt to fetch a gem from git.
+ (("git_source\\(:github) do \\|repo_name\\|")
+ "if false")
+ ((", github: \"Shopify/liquid\", ref: \"master\"")
+ "")
+ ;; Remove extraneous dependencies.
+ ((".*byebug.*") "")
+ ((".*rubocop.*") "")
+ ;; Relax spy version specification.
+ (("gem \"spy\", \"0.4.1\"")
+ "gem \"spy\", \">= 0.4.1\"")))))))
+ (native-inputs
+ (list ruby-benchmark-ips
+ ruby-rake-compiler
+ ruby-ruby-memcheck
+ ruby-spy
+ ruby-stackprof))
+ (propagated-inputs
+ (list ruby-liquid))))
+
+(define-public ruby-localhost
+ (package
+ (name "ruby-localhost")
+ (version "1.1.10")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/socketry/localhost")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1yp70w15wpfk613ap5f4y15yx4n2qqwa67vqc2f4lv7npf3llcz0"))))
+ (build-system ruby-build-system)
+ (arguments
+ ;; XXX: The test suite requires sus-fixtures-async, which requires async,
+ ;; only available for Ruby 3.0.
+ (list #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'remove-missing-signing-key
+ (lambda _
+ ;; Otherwise, the build fails with ENOENT.
+ (substitute* "localhost.gemspec"
+ ((".*spec.signing_key.*") "")))))))
+ (synopsis "API for generating per-user self-signed root certificates")
+ (description "This package provides @code{localhost}, a Ruby library for
+Managing a local certificate authority for self-signed, localhost development
+servers.")
+ (home-page "https://github.com/socketry/localhost")
+ (license license:expat)))
+
(define-public ruby-forwardable-extended
(package
(name "ruby-forwardable-extended")
@@ -11286,20 +13634,19 @@ Pathname.")
(define-public ruby-terminal-table
(package
(name "ruby-terminal-table")
- (version "2.0.0")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "terminal-table" version))
- (sha256
- (base32
- "18rbrh464ysqbdv53iwj0r8frshn65566kyj044cp3x9c2754jwh"))))
+ (version "3.0.2")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tj/terminal-table")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1c3f7ng3lxq962n8sbmlsvjx6srh5i801wzsyhxmfz2g880f5jps"))))
(arguments
'(#:phases
(modify-phases %standard-phases
- (add-before 'check 'remove-gemfile-lock
- (lambda _
- (delete-file "Gemfile.lock")))
(add-before 'check 'remove-unnecessary-dependencies
(lambda _
(substitute* "terminal-table.gemspec"
@@ -11315,7 +13662,7 @@ Pathname.")
(propagated-inputs
(list ruby-unicode-display-width))
(native-inputs
- (list ruby-rspec))
+ (list ruby-rspec ruby-term-ansicolor))
(home-page "https://github.com/tj/terminal-table")
(synopsis "Simple, feature rich ASCII table generation library")
(description
@@ -11327,40 +13674,110 @@ Unicode formatted tables.")
(define-public jekyll
(package
(name "jekyll")
- (version "4.2.0")
+ (version "4.3.2")
(source (origin
- (method url-fetch)
- (uri (rubygems-uri "jekyll" version))
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/jekyll/jekyll")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
(base32
- "0cqkh78jw8scrajyx5nla0vwm9fvp2qql3kdcvvplcq9mazy8snq"))))
+ "1d588d7zhp526r21f9mnm204m8qy0c8h3lq3ghyg6qp8mj6hnwj4"))))
(build-system ruby-build-system)
(arguments
- ;; No rakefile, but a test subdirectory.
- `(#:tests? #f
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'fix-i18n
- (lambda _
- (substitute* ".gemspec"
- (("~> 0.7") ">= 0.7")
- (("~> 1.14") ">= 1.14"))
- #t)))))
+ (list #:modules '((guix build ruby-build-system)
+ (guix build utils)
+ (ice-9 ftw)
+ (srfi srfi-26))
+ ;; The cucumber acceptance suite is not run as it depends on an old
+ ;; version (5).
+ #:test-target "spec"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'disable-problematic-tests
+ ;; TODO: Package the missing test inputs.
+ (lambda _
+ (with-directory-excursion "test"
+ ;; Requires 'jekyll-coffeescript'.
+ (delete-file "test_coffeescript.rb")
+ ;; Requires 'tomlrb'.
+ (delete-file "test_configuration.rb")
+ (substitute* "test_filters.rb"
+ ;; The sassify tests fail due to white space
+ ;; differences (see:
+ ;; https://github.com/jekyll/jekyll/issues/9322).
+ ((".*s?ssify with simple string.*" all)
+ (string-append all
+ " skip('fails on guix')\n")))
+ ;; Requires kramdown-syntax-coderay.
+ (delete-file "test_kramdown.rb")
+ ;; Requires 'test-theme', usually made available from the
+ ;; local checkout via Bundler (not used here).
+ (delete-file "test_layout_reader.rb")
+ ;; Requires a large amount of un-packaged dependencies.
+ (delete-file "test_plugin_manager.rb")
+ ;; Requires 'classifier-reborn'.
+ (delete-file "test_related_posts.rb")
+ ;; This one causes a test failure similar to the ones for
+ ;; sassify above.
+ (delete-file "test_sass.rb")
+ ;; This would require running the tests via 'bundle
+ ;; exec', but the Gemfile contains too many (extraneous)
+ ;; dependencies.
+ (delete-file "test_site.rb")
+ ;; Delete the theme tests, as they require 'test-theme',
+ ;; usually made available from the local checkout via the
+ ;; Gemfile/bundler (not used here).
+ (for-each delete-file
+ (scandir
+ "." (cut string-prefix? "test_theme" <>)))
+ ;; This one also relies on 'test-theme'.
+ (delete-file "test_liquid_renderer.rb")
+ ;; This test assumes internet connectivity, negate it, as
+ ;; there's no Internet in the build container.
+ (substitute* "test_utils.rb"
+ (("assert Utils::Internet\\.connected\\?")
+ "refute Utils::Internet.connected?"))
+ ;; These tests fail non-deterministically (see:
+ ;; https://github.com/jekyll/jekyll/issues/9323).
+ (delete-file "test_new_command.rb")
+ (delete-file "test_collections.rb"))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; Invoke the test scripts manually, as 'rake test'
+ ;; doesn't show any failure details, making debugging
+ ;; needlessly difficult.
+ (for-each (lambda (f)
+ (invoke "ruby" "-I" "test" f))
+ (find-files "test" "^test_.*\\.rb$"))))))))
+ (native-inputs
+ (list bundler
+ ruby-httpclient
+ ruby-minitest-profile
+ ruby-minitest-reporters
+ ruby-nokogiri
+ ruby-rspec
+ ruby-rspec-mocks
+ ruby-shoulda
+ ruby-simplecov))
(propagated-inputs
- `(("ruby-addressable" ,ruby-addressable)
- ("ruby-colorator" ,ruby-colorator)
- ("ruby-em-websocket" ,ruby-em-websocket)
- ("ruby-i18n" ,ruby-i18n)
- ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
- ("ruby-jekyll-watch" ,ruby-jekyll-watch)
- ("ruby-kramdown" ,ruby-kramdown-parser-gfm)
- ("ruby-liquid" ,ruby-liquid)
- ("ruby-mercenary" ,ruby-mercenary)
- ("ruby-pathutil" ,ruby-pathutil)
- ("ruby-rouge" ,ruby-rouge)
- ("ruby-safe-yaml" ,ruby-safe-yaml)
- ("ruby-sassc" ,ruby-sassc)
- ("ruby-terminal-table" ,ruby-terminal-table)))
+ (list ruby-addressable
+ ruby-colorator
+ ruby-em-websocket
+ ruby-i18n
+ ruby-jekyll-sass-converter
+ ruby-jekyll-watch
+ ruby-kramdown-parser-gfm
+ ruby-liquid-4
+ ruby-mercenary
+ ruby-pathutil
+ ruby-rouge
+ ruby-safe-yaml
+ ruby-sassc
+ ruby-terminal-table
+ ruby-webrick))
(home-page "https://jekyllrb.com/")
(synopsis "Static site generator")
(description "Jekyll is a simple, blog aware, static site generator.")
@@ -11385,26 +13802,55 @@ Unicode formatted tables.")
logic in Jekyll. It calculates and generates the pagination pages.")
(license license:expat)))
+(define-public ruby-faraday-net-http
+ (package
+ (name "ruby-faraday-net-http")
+ (version "3.0.2")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "faraday-net_http" version))
+ (sha256
+ (base32
+ "13byv3mp1gsjyv8k0ih4612y6vw5kqva6i03wcg4w2fqpsd950k8"))))
+ (build-system ruby-build-system)
+ ;; Do not run the test suite here as it would introduce a dependency cycle
+ ;; with ruby-faraday, which uses it as part of its test suite.
+ (arguments (list #:tests? #f))
+ (synopsis "Faraday adapter for Net::HTTP")
+ (description "This gem is a Faraday adapter for the @code{Net::HTTP}
+library. Faraday is an HTTP client library that provides a common interface
+over many adapters.")
+ (home-page "https://github.com/lostisland/faraday-net_http")
+ (license license:expat)))
+
(define-public ruby-faraday
(package
(name "ruby-faraday")
- (version "0.15.4")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "faraday" version))
- (sha256
- (base32
- "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
+ (version "2.7.4")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/lostisland/faraday")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0ya6jqa7ryr4i62mmzjjxzd8i8y0pyw0cbhifd758rs6lvkzmxa3"))))
(build-system ruby-build-system)
- (arguments
- '(#:tests? #f))
- (propagated-inputs
- (list ruby-multipart-post))
+ (arguments (list #:test-target "spec"))
+ (native-inputs
+ (list ruby-coveralls
+ ruby-pry
+ ruby-rack
+ ruby-rspec
+ ruby-simplecov
+ ruby-webmock))
+ ;; Propagate faraday-net-http as this is the default adapter used, and
+ ;; many Ruby projects assumes it is available.
+ (propagated-inputs (list ruby-ruby2-keywords ruby-faraday-net-http))
(synopsis "Ruby HTTP/REST API client library")
- (description
- "Faraday is a HTTP/REST API client library which provides a common
-interface over different adapters.")
+ (description "Faraday is a HTTP/REST API client library which provides a
+common interface over different adapters.")
(home-page "https://github.com/lostisland/faraday")
(license license:expat)))
@@ -11454,54 +13900,236 @@ for scalable network clients and servers.")
(home-page "https://github.com/socketry/nio4r")
(license license:expat)))
-(define-public ruby-globalid
+(define-public ruby-language-server-protocol
(package
- (name "ruby-globalid")
- (version "0.4.2")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "globalid" version))
- (sha256
- (base32
- "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
- (build-system ruby-build-system)
- (arguments
- '(;; No included tests
- #:tests? #f))
- (propagated-inputs
- (list ruby-activesupport))
- (synopsis "Generate URIs idenfitying model instances in Ruby")
- (description
- "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
-uniquely identify it.")
- (home-page "https://rubyonrails.org/")
- (license license:expat)))
+ (name "ruby-language-server-protocol")
+ (version "3.17.0.3")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/mtsmfm/language_server-protocol-ruby")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0f2g301fz99c6nkca39s9227brlycznv8a9r4b4i99rg25m91lc6"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'replace-git-ls-files
+ (lambda _
+ (substitute* "language_server-protocol.gemspec"
+ (("git ls-files -z([^`]*)" _ files)
+ (string-append "find " files
+ " -type f -not -regex '.*\\.gem$'"
+ " -print0 | sort -z"))))))))
+ (native-inputs
+ (list ruby-activesupport
+ ruby-benchmark-ips
+ ruby-m
+ ruby-minitest
+ ruby-minitest-power-assert
+ ruby-pry-byebug))
+ (synopsis "Language Server Protocol (LSP) development kit for Ruby")
+ (description "This package provides a Language Server Protocol (LSP)
+development kit for Ruby.")
+ (home-page "https://github.com/mtsmfm/language_server-protocol-ruby")
+ (license license:expat)))
-(define-public ruby-sprockets
+(define-public ruby-spy
(package
- (name "ruby-sprockets")
- (version "3.7.2")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "sprockets" version))
- (sha256
- (base32
- "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
+ (name "ruby-spy")
+ (version "1.0.5")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "spy" version))
+ (sha256
+ (base32
+ "0g2mma8q17m26k5s864ndlvvqllhcivwg2wdigjvb7z06iw17gds"))))
(build-system ruby-build-system)
(arguments
- '(;; No included tests
- #:tests? #f))
- (propagated-inputs
- (list ruby-concurrent ruby-rack))
- (synopsis "Sprockets is a Rack-based asset packaging system")
- (description
- "Sprockets is a Rack-based asset packaging system that concatenates and
-serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
- (home-page "https://github.com/rails/sprockets")
+ (list #:phases #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'relax-requirements
+ (lambda _
+ (substitute* "Gemfile"
+ ((".*redcarpet.*") "")
+ ((".*yard.*") "")))))))
+ (native-inputs
+ (list ruby-coveralls
+ ruby-minitest-reporters
+ ruby-pry
+ ruby-pry-byebug
+ ruby-rspec-core
+ ruby-rspec-expectations))
+ (synopsis "Mocking library for Ruby")
+ (description "Spy is a mocking library. By default, it will raise an
+error if you attempt to stub a method that doesn't exist or call the stubbed
+method with the wrong arity.")
+ (home-page "https://github.com/ryanong/spy")
+ (license license:expat)))
+
+(define-public ruby-subprocess
+ (package
+ (name "ruby-subprocess")
+ (version "1.5.6")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "subprocess" version))
+ (sha256
+ (base32
+ "0v49ahfx9b75qg42sl8a3l367g2vihc16g8z5f2raxpxjl1wh2s2"))))
+ (build-system ruby-build-system)
+ ;; Do not run the test suite, as there its test dependency ruby-sord would
+ ;; introduce a cycle with ruby-sorbet-runtime.
+ (arguments (list #:tests? #f))
+ (native-inputs (list ruby-minitest ruby-pry))
+ (synopsis "Ruby library to control and communicate with spawned processes")
+ (description "This Ruby library is controlling and communicating with
+spawned processes. It is designed after Python's @code{subprocess} module.")
+ (home-page "https://github.com/stripe/subprocess")
+ (license license:expat)))
+
+(define-public ruby-sus
+ (package
+ (name "ruby-sus")
+ (version "0.20.3")
+ (source (origin
+ (method git-fetch) ;for gems.rb
+ (uri (git-reference
+ (url "https://github.com/ioquatix/sus")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0j4rkh9li79674h3lfkxlcdygscmb22l77i7hwhxl3gw103gkpdr"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'prune-gems.rb
+ (lambda _
+ (substitute* "gems.rb"
+ (("gem \"bake-modernize\"") "")
+ (("gem \"bake-gem\"") "")
+ (("gem \"utopia-project\"") ""))))
+ (add-before 'build 'remove-missing-signing-key
+ (lambda _
+ ;; Otherwise, the build fails with ENOENT.
+ (substitute* "sus.gemspec"
+ ((".*spec.signing_key.*") ""))))
+ (delete 'check) ;moved after install
+ (add-after 'install 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (setenv "CONSOLE_LEVEL" "debug")
+ (setenv "HOME" "/tmp")
+ ;; 'bundle exec' must be used to workaround a problem
+ ;; when using bake test and GEM_PATH (see:
+ ;; https://github.com/ioquatix/bake/issues/11).
+ (invoke "bundle" "exec" "bake" "test"))))
+ (add-before 'check 'set-paths
+ (lambda _
+ (setenv "PATH" (string-append (getenv "PATH") ":"
+ #$output "/bin"))
+ (setenv "GEM_PATH" (string-append
+ (getenv "GEM_PATH") ":"
+ #$output "/lib/ruby/vendor_ruby")))))))
+ (native-inputs (list ruby-bake-test ruby-bake-test-external ruby-covered))
+ (synopsis "Fast and scalable test runner for Ruby")
+ (description "This package provides a fast and scalable test runner for Ruby.")
+ (home-page "https://github.com/ioquatix/sus")
(license license:expat)))
+(define-public ruby-syntax-tree
+ (package
+ (name "ruby-syntax-tree")
+ (version "6.1.1")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/ruby-syntax-tree/syntax_tree")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0356lgvqp22nkqlrgszf7myfdg4arclg278awh34zyby1cx6hb2k"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; The tests rely on the Gem being installed, so move the check
+ ;; phase after the install phase.
+ (delete 'check)
+ (add-after 'install 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (setenv "GEM_PATH" (string-append
+ #$output "/lib/ruby/vendor_ruby:"
+ (getenv "GEM_PATH")))
+ (when tests?
+ (invoke "rake" "test")))))))
+ (native-inputs (list ruby-rubocop-ast ruby-simplecov))
+ (propagated-inputs (list ruby-prettier-print))
+ (synopsis "Fast Ruby parser and formatter")
+ (description "Syntax Tree is a suite of tools built on top of the internal
+CRuby parser. It provides the ability to generate a syntax tree from source,
+as well as the tools necessary to inspect and manipulate that syntax tree. It
+can be used to build formatters, linters, language servers, and more.")
+ (home-page "https://github.com/ruby-syntax-tree/syntax_tree")
+ (license license:expat)))
+
+(define sorbet-version "0.5.10610.20230106174520-1fa668010")
+
+(define sorbet-monorepo
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sorbet/sorbet")
+ (commit sorbet-version)))
+ (file-name (string-append "sorbet-" sorbet-version "-checkout"))
+ (sha256
+ (base32
+ "0f21dl06alxwn6xgdxyrkd58plmmsv04z2bcls9ld4cfzsrs5537"))))
+
+(define (make-sorbet-gem-source gem)
+ "Return the source of GEM, a sub-directory."
+ (computed-file
+ (string-append "ruby-sorbet-" gem "-" sorbet-version "-checkout")
+ (with-imported-modules (source-module-closure '((guix build utils)))
+ #~(begin
+ (use-modules (guix build utils))
+ (copy-recursively (string-append #$sorbet-monorepo
+ "/gems/sorbet-" #$gem)
+ #$output)))))
+
+(define-public ruby-sorbet-runtime
+ (package
+ (name "ruby-sorbet-runtime")
+ (version sorbet-version)
+ (source (make-sorbet-gem-source "runtime"))
+ (build-system ruby-build-system)
+ ;; 25 out of 841 tests currently fail, seemingly due to invalid
+ ;; assumptions about file names in the build environment (see:
+ ;; https://github.com/sorbet/sorbet/issues/6650).
+ (arguments (list #:tests? #f))
+ (native-inputs
+ (list ruby-minitest
+ ruby-mocha
+ ruby-rubocop
+ ruby-rubocop-performance
+ ruby-concurrent-ruby
+ ruby-pry
+ ruby-pry-byebug
+ ruby-parser
+ ruby-subprocess))
+ (synopsis "Runtime type checking component for Sorbet")
+ (description "Sorbet's runtime type checking component. Sorbet is a
+powerful type checker for Ruby.")
+ (home-page "https://sorbet.org")
+ (license license:asl2.0)))
+
(define-public ruby-mustache
(package
(name "ruby-mustache")
@@ -11537,14 +14165,14 @@ template.")
(define-public ruby-mustermann
(package
(name "ruby-mustermann")
- (version "1.0.3")
+ (version "3.0.0")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "mustermann" version))
(sha256
(base32
- "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1"))))
+ "0rwbq20s2gdh8dljjsgj5s6wqqfmnbclhvv2c2608brv7jm6jdbd"))))
(build-system ruby-build-system)
(arguments
;; No tests.
@@ -11556,6 +14184,27 @@ characteristics.")
(home-page "https://github.com/sinatra/mustermann")
(license license:expat)))
+(define-public ruby-prettier-print
+ (package
+ (name "ruby-prettier-print")
+ (version "1.2.1")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/ruby-syntax-tree/prettier_print")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "00cg40jc0il1hpsrpsrqwhsxmx7day9lxp1ksrm08zxzsrz9ykqz"))))
+ (build-system ruby-build-system)
+ (native-inputs (list ruby-simplecov))
+ (synopsis "Compatible and featureful implementation of @code{prettyprint}")
+ (description "This package provides a drop-in replacement for the
+@code{prettyprint} gem, with more functionality.")
+ (home-page "https://github.com/ruby-syntax-tree/prettier_print")
+ (license license:expat)))
+
(define-public ruby-html-proofer
(package
(name "ruby-html-proofer")
@@ -11638,28 +14287,20 @@ entities.")
(home-page "https://github.com/threedaymonk/htmlentities")
(license license:expat)))
+;;; FIXME: Currently broken with rack 3, awaiting the merge for
+;;; https://github.com/sinatra/sinatra/pull/1857 and a new release.
(define-public ruby-sinatra
(package
(name "ruby-sinatra")
- (version "2.0.8.1")
+ (version "3.0.5")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "sinatra" version))
(sha256
(base32
- "0riy3hwjab1mr73jcqx3brmbmwspnw3d193j06a5f0fy1w35z15q"))))
+ "1ryfja9yd3fq8n1p5yi3qnd0pjk7bkycmxxmbb1bj0axlr1pdv20"))))
(build-system ruby-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- ;; See: https://github.com/sinatra/sinatra/issues/1578.
- (add-after 'extract-gemspec 'fix-slow-doc-generation
- (lambda _
- (substitute* "sinatra.gemspec"
- (("\"README.rdoc\"\\.freeze," all)
- (string-append all " \"--exclude=.*\\.md\".freeze,")))
- #t)))))
(propagated-inputs
(list ruby-mustermann ruby-rack ruby-rack-protection ruby-tilt))
(synopsis "DSL for quick web applications creation in Ruby")
@@ -11669,6 +14310,26 @@ minimal effort.")
(home-page "https://sinatrarb.com/")
(license license:expat)))
+(define-public ruby-timeout
+ (package
+ (name "ruby-timeout")
+ (version "0.3.2")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/ruby/timeout")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0lzhs2c4znzg781w146dhvczhbx7h3wkb90i4v6h68zvm2zfylgj"))))
+ (build-system ruby-build-system)
+ (synopsis "Timeout library for Ruby")
+ (description "Timeout provides a way to auto-terminate a potentially
+long-running operation if it hasn't finished in a fixed amount of time.")
+ (home-page "https://github.com/ruby/timeout")
+ (license (list license:bsd-2))))
+
(define-public ruby-thin
(package
(name "ruby-thin")
@@ -11697,6 +14358,32 @@ and stability,
(home-page "https://github.com/macournoyer/thin")
(license license:ruby)))
+(define-public ruby-truthy
+ (package
+ (name "ruby-truthy")
+ (version "1.0.0")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "truthy" version))
+ (sha256
+ (base32
+ "19silgd65j3qwfk5w891p9wcmzdmi9ddm2kg5zbvvqn2h9lkfzmd"))))
+ (build-system ruby-build-system)
+ (arguments (list #:phases #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (substitute* "spec/spec_helper.rb"
+ (("require 'spec'")
+ "require 'rspec'"))
+ (invoke "rspec")))))))
+ (native-inputs (list ruby-rspec))
+ (synopsis "Object truthiness-related Ruby library")
+ (description "This library makes it easier to discover the truth values of
+various Ruby objects.")
+ (home-page "https://github.com/ymendel/truthy")
+ (license license:expat)))
+
(define-public ruby-skinny
(package
(name "ruby-skinny")
@@ -12019,21 +14706,23 @@ which snapshots to consider and what files to include.")
(define-public ruby-zeitwerk
(package
(name "ruby-zeitwerk")
- (version "2.4.2")
+ (version "2.6.7")
(source
(origin
- (method git-fetch)
+ (method git-fetch) ;for tests
(uri (git-reference
- ;; No tests in the released gem.
(url "https://github.com/fxn/zeitwerk")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
- "119fgdyb57gmss2yvfwfr47wcy8nny38sai72446krpihyavpizw"))))
+ "10p1ycv72yas1fdqrmdyz1aiqf8axj6q1kyllni2wknhk059jvi0"))))
(build-system ruby-build-system)
(native-inputs
- (list ruby-minitest ruby-minitest-focus ruby-minitest-reporters))
+ (list ruby-minitest
+ ruby-minitest-focus
+ ruby-minitest-proveit
+ ruby-minitest-reporters))
(synopsis "Efficient and thread-safe code loader for Ruby")
(description
"Zeitwerk implements constant autoloading with Ruby semantics. Each gem
@@ -12824,57 +15513,103 @@ ripped from Merb. It supports pluggable parsers and ships with both REXML and
Nokogiri implementations.")
(license license:expat)))
+;; This package is deprecated per upstream and should be phased out.
(define-public ruby-faraday-middleware
(package
(name "ruby-faraday-middleware")
(version "1.2.0")
(source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "faraday_middleware" version))
- (sha256
- (base32 "1bw8mfh4yin2xk7138rg3fhb2p5g2dlmdma88k82psah9mbmvlfy"))))
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "faraday_middleware" version))
+ (sha256
+ (base32 "1bw8mfh4yin2xk7138rg3fhb2p5g2dlmdma88k82psah9mbmvlfy"))))
(build-system ruby-build-system)
- (arguments
- ;; No rakefile
- `(#:tests? #f))
- (propagated-inputs
- (list ruby-faraday))
+ (arguments `(#:tests? #f))
+ (propagated-inputs (list ruby-faraday))
(home-page "https://github.com/lostisland/faraday_middleware")
(synopsis "Various middleware for Faraday")
(description "Faraday_Middleware is a collection of middleware for the
Faraday-based API wrappers.")
(license license:expat)))
+(define-public ruby-faraday-multipart
+ (package
+ (name "ruby-faraday-multipart")
+ (version "1.0.4")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/lostisland/faraday-multipart")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0ywxhff40a688n50lxrn4d8y096l8sbrwp1jfz4zd3kdiiygclka"))))
+ (build-system ruby-build-system)
+ (arguments (list #:test-target "spec"))
+ (native-inputs (list ruby-faraday ruby-multipart-parser ruby-rspec))
+ (propagated-inputs (list ruby-multipart-post))
+ (synopsis "Multipart-post requests extension for Faraday")
+ (description "This Ruby gem extends Faraday to perform multipart-post
+requests.")
+ (home-page "https://github.com/lostisland/faraday-multipart")
+ (license license:expat)))
+
(define-public ruby-bandwidth-iris
(package
(name "ruby-bandwidth-iris")
- (version "5.1.0")
+ (version "7.0.0")
(source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "ruby-bandwidth-iris" version))
- (sha256
- (base32 "1hmrxs0dif6fw5npyzcshk4nq9qr2kbmnx7mdjr5v1nhzlfr0678"))))
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "ruby-bandwidth-iris" version))
+ (sha256
+ (base32 "131c4jhyvnrwbhizkks17fi9g85cwsq5f1p8zi408zyf63n7230d"))))
(build-system ruby-build-system)
(arguments
;; XXX: Tests don't require helper for some reason, so all fail.
`(#:tests? #f))
(native-inputs
(list ruby-rspec
- ruby-yard))
+ ruby-yard))
(propagated-inputs
(list ruby-activesupport
- ruby-builder
- ruby-faraday
- ruby-faraday-middleware
- ruby-nori))
+ ruby-builder
+ ruby-faraday
+ ruby-faraday-middleware
+ ruby-nori))
(home-page "https://github.com/Bandwidth/ruby-bandwidth-iris")
(synopsis "Gem for integrating to Bandwidth's Iris API")
(description "Bandwidth IRIS is a Ruby SDK for Bandwidth Phone Number
Dashboard. It is a Ruby Client library for IRIS / BBS API.")
(license license:expat)))
+(define-public ruby-selenium-webdriver
+ (package
+ (name "ruby-selenium-webdriver")
+ (version "4.8.5")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "selenium-webdriver" version))
+ (sha256
+ (base32
+ "0wh44vpsyz4mgyq4h482prgiv7hqa5jsj4i7i5hnvv39jb0rfiwm"))))
+ (build-system ruby-build-system)
+ ;; FIXME: The gem release lacks test files, and the git checkout lacks
+ ;; JavaScript source that is generated using Bazel, which isn't available
+ ;; in Guix yet, so disable the test suite for now.
+ (arguments (list #:tests? #f))
+ (propagated-inputs (list ruby-rexml ruby-rubyzip ruby-websocket))
+ (synopsis "Selenium browser automation bindings for Ruby")
+ (description "Selenium implements the W3C WebDriver protocol to automate
+popular browsers. It aims to mimic the behaviour of a real user as it
+interacts with the application's HTML. It's primarily intended for web
+application testing, but any web-based task can be automated. This package
+provides the Ruby bindings of Selenium.")
+ (home-page "https://www.selenium.dev/")
+ (license license:asl2.0)))
+
(define-public ruby-sentry-core
(package
(name "ruby-sentry-core")
@@ -12925,20 +15660,57 @@ interface for the Sentry error logger.")
(define-public ruby-webrick
(package
(name "ruby-webrick")
- (version "1.7.0")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "webrick" version))
- (sha256
- (base32 "1d4cvgmxhfczxiq5fr534lmizkhigd15bsx5719r5ds7k7ivisc7"))))
+ (version "1.8.1")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/ruby/webrick")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1xb0mk3cghdir65nmj0mblprbf21blli7267b6yyvxclh307yp6s"))))
(build-system ruby-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'delete-problematic-tests
+ (lambda _
+ ;; The httresponse tests fail for
+ ;; unknown reasons (see:
+ ;; https://github.com/ruby/webrick/issues/112).
+ (delete-file "test/webrick/test_httpresponse.rb"))))))
(home-page "https://github.com/ruby/webrick")
(synopsis "HTTP server toolkit")
(description "WEBrick is an HTTP server toolkit that can be configured as an
HTTPS server, a proxy server, and a virtual-host server.")
(license license:bsd-2)))
+(define-public ruby-websocket
+ (package
+ (name "ruby-websocket")
+ (version "1.2.9")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "websocket" version))
+ (sha256
+ (base32
+ "0dib6p55sl606qb4vpwrvj5wh881kk4aqn2zpfapf8ckx7g14jw8"))))
+ (build-system ruby-build-system)
+ (arguments (list #:test-target "spec"
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-rubocop
+ (lambda _
+ (substitute* "Rakefile"
+ (("require 'rubocop/rake_task'") "")
+ (("RuboCop::RakeTask.new") "")))))))
+ (native-inputs (list ruby-rspec))
+ (synopsis "WebSocket protocol Ruby library")
+ (description "This package provides a Ruby library to handle the WebSocket
+protocol.")
+ (home-page "https://github.com/imanel/websocket-ruby")
+ (license license:expat)))
+
(define-public ruby-interception
(package
(name "ruby-interception")
@@ -12991,42 +15763,45 @@ any unhandled exceptions.")
(define-public ruby-braintree
(package
(name "ruby-braintree")
- (version "4.7.0")
+ (version "4.10.0")
(source
(origin
- (method git-fetch)
- ;; Download from GitHub because the rubygems version does not contain
- ;; Rakefile.
+ (method git-fetch) ;for tests
(uri (git-reference
(url "https://github.com/braintree/braintree_ruby")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "1gixqf9vsjsyrk45lf9xcz0ggdydpgsk8ahknd27bbigz1j4pdf6"))))
+ (base32 "01b5bp8q038ray5wwg3qhg4hj3r5a48vnfzs3gxkdjm5ky6bmn4p"))))
(build-system ruby-build-system)
(arguments
`(#:test-target "test:unit"
#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'less-strict-dependencies
+ (add-after 'unpack 'disable-rubocop
+ (lambda _
+ (substitute* "Rakefile"
+ (("sh \"rubocop\"") ""))))
+ (add-after 'unpack 'relax-requirements
(lambda _
(substitute* "Gemfile"
- (("gem \"libxml-ruby\", \"3.2.0\"")
+ (("gem \"libxml-ruby\", \"3.2.0\"")
"gem \"libxml-ruby\", \"~> 3.0.0\"")
(("gem \"rspec\", \"3.9.0\"")
- "gem \"rspec\", \"~> 3.8.0\"")
- (("gem \"rubocop\", \"~>1.12.0\"")
- "gem \"rubocop\", \"~> 1.10.0\"")))))))
+ "gem \"rspec\", \">= 3.9.0\"")
+ (("gem \"webrick\", \"~>1.7.0\"")
+ "gem \"webrick\", \">=1.7.0\"")
+ ((".*gem \"rubocop\".*") "")
+ ((".*gem \"rspec_junit_formatter\".*") "")))))))
(native-inputs
(list ruby-libxml
- ruby-pry
- ruby-rake
- ruby-rspec
- ruby-rubocop
- ruby-webrick))
+ ruby-pry
+ ruby-rake
+ ruby-rspec
+ ruby-webrick))
(propagated-inputs
(list ruby-builder
- ruby-rexml))
+ ruby-rexml))
(home-page "https://www.braintreepayments.com/")
(synopsis "Integration access to the Braintree Gateway")
(description "Braintree provides resources and tools for developers to
@@ -13339,6 +16114,28 @@ implemented in pure Ruby.")
Resource Description Framework} vocabularies.")
(license license:unlicense)))
+(define-public ruby-rdiscount
+ (package
+ (name "ruby-rdiscount")
+ (version "2.2.7")
+ (source (origin
+ (method git-fetch) ;for the full test suite
+ (uri (git-reference
+ (url "https://github.com/davidfstr/rdiscount")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1lpfxq3gv0dgmnki9jgfnc8n9k4x9vyq9miqdxv6g4kp90qyfifc"))))
+ (build-system ruby-build-system)
+ (native-inputs (list perl))
+ (synopsis "Discount Markdown Processor for Ruby")
+ (description "Discount is an implementation of John Gruber's Markdown
+markup language in C. It implements all of the language described in the
+markdown syntax document and passes the Markdown 1.0 test suite.")
+ (home-page "https://dafoster.net/projects/rdiscount/")
+ (license license:bsd-3)))
+
(define-public ruby-bibtex-ruby
(package
(name "ruby-bibtex-ruby")
diff --git a/gnu/packages/search.scm b/gnu/packages/search.scm
index fe69fd3775..c8c3ff45d0 100644
--- a/gnu/packages/search.scm
+++ b/gnu/packages/search.scm
@@ -675,14 +675,14 @@ bibliographic data and simple document and bibtex retrieval.")
(define-public ugrep
(package
(name "ugrep")
- (version "3.9.6")
+ (version "3.11.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/Genivia/ugrep")
(commit (string-append "v" version))))
(sha256
- (base32 "1nlxmrw0w21iwcbnir04bccb3z8hj9i4hj6gd2bk0qhdbrk2adh7"))
+ (base32 "1sibd44ky7xqfmrfvi09h5ignn7i3v1fjxnfvybp3cjfm08yxacy"))
(file-name (git-file-name name version))
(modules '((guix build utils)))
(snippet
diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm
index da2455e345..c2b08afbe9 100644
--- a/gnu/packages/shells.scm
+++ b/gnu/packages/shells.scm
@@ -849,7 +849,7 @@ Shell (pdksh).")
(define-public oil
(package
(name "oil")
- (version "0.12.9")
+ (version "0.14.2")
(source
;; oil's sources contain a modified version of CPython 2.7.13.
;; According to https://www.oilshell.org/blog/2017/05/05.html
@@ -862,7 +862,7 @@ Shell (pdksh).")
(uri (string-append "https://www.oilshell.org/download/oil-"
version ".tar.gz"))
(sha256
- (base32 "047gjar5lkbms4gdp3063njnqc6fl6p0dcx8bbpi1cdn1956yh1s"))))
+ (base32 "0qsfkav6a70nvp27ilab7zilmihw4ygga48a0dkxa14q9giwlgwr"))))
(build-system gnu-build-system)
(arguments
(list #:strip-binaries? #f ; strip breaks the binary
diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm
index 64cc818d65..277d2d2647 100644
--- a/gnu/packages/shellutils.scm
+++ b/gnu/packages/shellutils.scm
@@ -102,7 +102,7 @@ chart.")
(define-public boxes
(package
(name "boxes")
- (version "2.1.1")
+ (version "2.2.0")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -111,7 +111,7 @@ chart.")
(file-name (git-file-name name version))
(sha256
(base32
- "1bf5rnfiw04ffs1l17zhbg4wvq2vfn2qbz1xmd250xqj15lysw88"))))
+ "0vv2gaav1m4z2xdk0k3ragmv4kcnzv7p3v97lkjl1wbfmk5nhz07"))))
(build-system gnu-build-system)
(arguments
`(#:test-target "test"
diff --git a/gnu/packages/syncthing.scm b/gnu/packages/syncthing.scm
index 5f98cb56b0..9a86145b34 100644
--- a/gnu/packages/syncthing.scm
+++ b/gnu/packages/syncthing.scm
@@ -46,7 +46,7 @@
(define-public syncthing
(package
(name "syncthing")
- (version "1.23.0")
+ (version "1.23.2")
(source (origin
(method url-fetch)
(uri (string-append "https://github.com/syncthing/syncthing"
@@ -54,7 +54,7 @@
"/syncthing-source-v" version ".tar.gz"))
(sha256
(base32
- "0n7438vppr8yrq8k4lsacjr48m1l0bfc2wv7rbrsc5br5bfx6rhg"))))
+ "12d1mmqr4l0xhapq72i8yjsrzma79zsv664rhyjfpajfdw7cl3ix"))))
(build-system go-build-system)
;; The primary Syncthing executable goes to "out", while the auxiliary
;; server programs and utility tools go to "utils". This reduces the size
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 1ce5b2ada8..40accf642d 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -5396,6 +5396,31 @@ in LaTeX documents; a jiffy to create slashed characters for physicists.")
"Catchfile catches the contents of a file and puts it in a macro.")
(license license:lppl1.3+))))
+(define-public texlive-ddphonism
+ (package
+ (inherit (simple-texlive-package
+ "texlive-ddphonism"
+ (list "doc/latex/ddphonism/"
+ "tex/latex/ddphonism/")
+ (base32 "1p02ai76nnh6042pnmqv4n30z6yxsvyyk2nb9jk7xlyyc87zzbdd")
+ #:trivial? #t))
+ (propagated-inputs
+ (list texlive-etoolbox
+ texlive-hyperref
+ texlive-latex-l3packages
+ texlive-listings
+ texlive-pgf
+ texlive-latex-tools
+ texlive-xstring))
+ (home-page "https://www.ctan.org/pkg/ddphonism")
+ (synopsis "Dodecaphonic diagrams for LaTeX")
+ (description
+ "This is a music-related package which is focused on notation from the
+twelve-tone system, also called dodecaphonism. It provides LaTeX algorithms
+that produce typical dodecaphonic notation based off a musical series, or row
+sequence, of variable length.")
+ (license license:lppl1.3c)))
+
(define-public texlive-doi
(package
(inherit (simple-texlive-package
diff --git a/gnu/packages/texinfo.scm b/gnu/packages/texinfo.scm
index 77fc3baaf7..b069c42ca7 100644
--- a/gnu/packages/texinfo.scm
+++ b/gnu/packages/texinfo.scm
@@ -104,14 +104,14 @@ is on expressing the content semantically, avoiding physical markup commands.")
(define-public texinfo-7
(package
(inherit texinfo)
- (version "7.0.2")
+ (version "7.0.3")
(source (origin
(method url-fetch)
(uri (string-append "mirror://gnu/texinfo/texinfo-"
version ".tar.xz"))
(sha256
(base32
- "1balvbkdlwa8zwnzp4irkixq1zhps2wr6njmwj4ilgiqc4rfq4gj"))))
+ "1gq7i01iblgfcwby1977adh8mab9vpq318vsz628wlkzkp821d3l"))))
(inputs (modify-inputs (package-inputs texinfo)
(append perl-archive-zip))) ;needed for 'tex2any --epub3'
(arguments
diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm
index 9128056f78..c0bcb848b3 100644
--- a/gnu/packages/time.scm
+++ b/gnu/packages/time.scm
@@ -319,14 +319,14 @@ under several distributions that's hard or impossible to figure out.")
(define-public python-isodate
(package
(name "python-isodate")
- (version "0.6.0")
+ (version "0.6.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "isodate" version))
(sha256
(base32
- "1n7jkz68kk5pwni540pr5zdh99bf6ywydk1p5pdrqisrawylldif"))))
+ "1sdx4z0x6kv1qxjfi0gd82wfg16wca04q0nb93ba1c78wwfqiia8"))))
(build-system python-build-system)
(native-inputs
(list python-six))
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 2c38734ad2..4e3cd0a576 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -33,7 +33,7 @@
;;; Copyright © 2020 Tanguy Le Carrour <tanguy@bioneland.org>
;;; Copyright © 2020, 2021, 2022 Michael Rohleder <mike@rohleder.de>
;;; Copyright © 2021 Greg Hogan <code@greghogan.com>
-;;; Copyright © 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2021, 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021 Chris Marusich <cmmarusich@gmail.com>
;;; Copyright © 2021 Léo Le Bouter <lle-bout@zaclys.net>
;;; Copyright © 2021 LibreMiami <packaging-guix@libremiami.org>
@@ -2009,76 +2009,68 @@ following features:
(define-public subversion
(package
(name "subversion")
- (version "1.14.1")
+ (version "1.14.2")
(source (origin
- (method url-fetch)
- (uri (string-append "mirror://apache/subversion/"
- "subversion-" version ".tar.bz2"))
- (sha256
- (base32
- "1ag1hvcm9q92kgalzbbgcsq9clxnzmbj9nciz9lmabjx4lyajp9c"))))
+ (method url-fetch)
+ (uri (string-append "mirror://apache/subversion/"
+ "subversion-" version ".tar.bz2"))
+ (sha256
+ (base32
+ "0a6csc84hfymm8b5cnvq1n1p3rjjf33qy0z7y1k8lwkm1f6hw4y9"))))
(build-system gnu-build-system)
(arguments
- '(#:parallel-tests? #f ; TODO Seems to cause test failures on
- ; i686-linux
- #:configure-flags '("--enable-static=no")
- #:phases
- (modify-phases %standard-phases
- (add-after 'configure 'patch-libtool-wrapper-ls
- (lambda* (#:key inputs #:allow-other-keys)
- ;; This substitution allows tests svnauthz_tests and svnlook_tests
- ;; to pass. These tests execute svnauthz and svnlook through
- ;; their libtool wrapper scripts from svn hooks, whose empty
- ;; environments cause "ls: command not found" errors. It would be
- ;; nice if this fix ultimately made its way into libtool.
- (let ((coreutils (assoc-ref inputs "coreutils")))
- (substitute* "libtool"
- (("\\\\`ls") (string-append "\\`" coreutils "/bin/ls")))
- #t)))
- (add-before 'build 'patch-test-sh
- (lambda _
- (substitute* "subversion/tests/libsvn_repos/repos-test.c"
- (("#!/bin/sh") (string-append "#!" (which "sh"))))
- #t))
- (add-before 'check 'set-PARALLEL
- (lambda* (#:key parallel-tests? #:allow-other-keys)
- (if parallel-tests?
- (setenv "PARALLEL" (number->string (parallel-job-count)))
- (simple-format #t "parallel-tests? are disabled\n"))
- #t))
- (add-after 'install 'install-perl-bindings
- (lambda* (#:key outputs #:allow-other-keys)
- ;; Follow the instructions from 'subversion/bindings/swig/INSTALL'.
- (let ((out (assoc-ref outputs "out")))
- (invoke "make" "swig-pl-lib")
- ;; FIXME: Test failures.
- ;; (invoke "make" "check-swig-pl")
- (invoke "make" "install-swig-pl-lib")
-
- ;; Set the right installation prefix.
- (with-directory-excursion
- "subversion/bindings/swig/perl/native"
- (invoke "perl" "Makefile.PL"
- "NO_PERLLOCAL=1"
- (string-append "PREFIX=" out))
- (invoke "make" "install"
- (string-append "OTHERLDFLAGS="
- "-Wl,-rpath="
- out "/lib")))))))))
+ (list
+ #:configure-flags #~(list "--enable-static=no")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'configure 'patch-libtool-wrapper-ls
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; This substitution allows tests svnauthz_tests and svnlook_tests
+ ;; to pass. These tests execute svnauthz and svnlook through
+ ;; their libtool wrapper scripts from svn hooks, whose empty
+ ;; environments cause "ls: command not found" errors. It would be
+ ;; nice if this fix ultimately made its way into libtool.
+ (substitute* "libtool"
+ (("\\\\`ls")
+ (string-append "\\`" (search-input-file inputs "bin/ls"))))))
+ (add-before 'build 'patch-test-sh
+ (lambda _
+ (substitute* "subversion/tests/libsvn_repos/repos-test.c"
+ (("#!/bin/sh") (string-append "#!" (which "sh"))))))
+ (add-before 'check 'set-PARALLEL
+ (lambda* (#:key parallel-tests? #:allow-other-keys)
+ (if parallel-tests?
+ (setenv "PARALLEL" (number->string (parallel-job-count)))
+ (simple-format #t "parallel-tests? are disabled\n"))))
+ (add-after 'install 'install-perl-bindings
+ (lambda _
+ ;; Follow the instructions from 'subversion/bindings/swig/INSTALL'.
+ (invoke "make" "swig-pl-lib")
+ ;; FIXME: Test failures.
+ ;; (invoke "make" "check-swig-pl")
+ (invoke "make" "install-swig-pl-lib")
+
+ ;; Set the right installation prefix.
+ (with-directory-excursion "subversion/bindings/swig/perl/native"
+ (invoke "perl" "Makefile.PL" "NO_PERLLOCAL=1"
+ (string-append "PREFIX=" #$output))
+ (invoke "make" "install"
+ (string-append "OTHERLDFLAGS=-Wl,-rpath="
+ #$output "/lib"))))))))
(native-inputs
- (list pkg-config
- ;; For the Perl bindings.
- swig))
+ (list pkg-config
+ ;; For the Perl bindings.
+ swig))
(inputs
- `(("apr" ,apr)
- ("apr-util" ,apr-util)
- ("lz4" ,lz4)
- ("serf" ,serf)
- ("perl" ,perl)
- ("python" ,python-wrapper)
- ("sqlite" ,sqlite)
- ("utf8proc" ,utf8proc)
- ("zlib" ,zlib)))
+ (list apr
+ apr-util
+ lz4
+ perl
+ python-wrapper
+ serf
+ sqlite
+ utf8proc
+ zlib))
(home-page "https://subversion.apache.org/")
(synopsis "Revision control system")
(description
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 2c03d4a702..7a1546128d 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -3380,7 +3380,7 @@ be used for realtime video capture via Linux-specific APIs.")
(define-public obs
(package
(name "obs")
- (version "29.0.0")
+ (version "29.0.2")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -3390,7 +3390,7 @@ be used for realtime video capture via Linux-specific APIs.")
(file-name (git-file-name name version))
(sha256
(base32
- "15nvvlpryvlbf76918jvygg1985glz38cndfgnc2c0009vdb9qbk"))
+ "1ijn19wy52fa7ahr29v1rzvh6j0qr7i5xl129m6s9c644f7i51ac"))
(patches
(search-patches "obs-modules-location.patch"))))
(build-system cmake-build-system)
diff --git a/gnu/packages/w3m.scm b/gnu/packages/w3m.scm
index 39d5e3c37f..498bf0f111 100644
--- a/gnu/packages/w3m.scm
+++ b/gnu/packages/w3m.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
-;;; Copyright © 2016, 2017, 2018 Leo Famulari <leo@famulari.name>
+;;; Copyright © 2016, 2017, 2018, 2023 Leo Famulari <leo@famulari.name>
;;; Copyright © 2016 Kei Kebreau <kkebreau@posteo.net>
;;; Copyright © 2016, 2019 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2018 Rutger Helling <rhelling@mykolab.com>
@@ -42,6 +42,9 @@
(define-public w3m
(package
(name "w3m")
+ ;; When updating, be careful not to change the derivation of w3m-for-tests,
+ ;; unless you mean to. Changing w3m-for-tests will cause thousands of
+ ;; rebuilds via the reverse dependency graph of xdg-utils.
(version "0.5.3+git20230121")
(source (origin
(method git-fetch)
@@ -86,3 +89,21 @@ window. Moreover, w3m can be used as a text formatting tool which
typesets HTML into plain text.")
(license (x11-style "file://doc/README"
"See 'doc/README' in the distribution."))))
+
+;; Used in the test suite of xdg-utils
+(define-public w3m-for-tests
+ (hidden-package
+ (package
+ (inherit w3m)
+ (name "w3m")
+ (version "0.5.3+git20230121")
+ (source (origin
+ (method git-fetch)
+ ;; Debian's fork of w3m is the only one that is still maintained.
+ (uri (git-reference
+ (url "https://salsa.debian.org/debian/w3m.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0nvhxsqxgxjrr62mvxzhhfzvbvg56g19vlqcgb8mh2x1daazk5ms")))))))
diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index e6f593ec27..bcc68fbad2 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -131,6 +131,7 @@
#:use-module (gnu packages man)
#:use-module (gnu packages maths)
#:use-module (gnu packages mpd)
+ #:use-module (gnu packages music)
#:use-module (gnu packages pcre)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
@@ -744,7 +745,7 @@ desktop environment.")
(define-public icewm
(package
(name "icewm")
- (version "3.3.1")
+ (version "3.3.2")
(source (origin
(method url-fetch)
(uri (string-append
@@ -752,7 +753,7 @@ desktop environment.")
version "/icewm-" version ".tar.lz"))
(sha256
(base32
- "1m0jl9d2ikwb1s2cpm3q7f73h84mai9y31k8bhsq8y47jbkc6slk"))))
+ "1mp1xl64sin3d4nkh19qmnic1c9qcwf9v7mkzji76pg3mzd823jg"))))
(build-system gnu-build-system)
(native-inputs (list pkg-config))
(inputs (list fontconfig
@@ -1777,7 +1778,7 @@ compository, supporting the following featuers:
(define-public waybar
(package
(name "waybar")
- (version "0.9.16")
+ (version "0.9.17")
(source
(origin
(method git-fetch)
@@ -1786,7 +1787,7 @@ compository, supporting the following featuers:
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "06vwsax8z6vvvav4c1d40nfiljc7h1cla57r43nv8dw86n539ic5"))))
+ (base32 "1709ck7931804mhirnki03cvx60c4dxg668fyz6jpzy8djg5xlxi"))))
(build-system meson-build-system)
(inputs (list date
fmt
@@ -1798,6 +1799,7 @@ compository, supporting the following featuers:
libmpdclient
libnl
libxml2
+ playerctl
pulseaudio
spdlog
wayland))
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 29c99af878..5dbdb73fac 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -2318,6 +2318,47 @@ before the system goes to sleep.")
(home-page "https://bitbucket.org/raymonad/xss-lock")
(license license:expat))))
+(define-public physlock
+ (package
+ (name "physlock")
+ (version "13")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/xyb3rt/physlock")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1mz4xxjip5ldiw9jgfq9zvqb6w10bcjfx6939w1appqg8f521a7s"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list #:tests? #f ;no tests
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'configure)
+
+ (add-after 'unpack 'fix-makefile
+ (lambda _
+ (substitute* "main.c" ; remove extra newline in the prompt
+ (("(fprintf.vt.ios, .%s.)\\n(., options->prompt)" all start end)
+ (string-append start end)))
+ (substitute* "Makefile" (("-m 4755 -o root -g root") "")))))
+
+ #:make-flags
+ #~(list "HAVE_SYSTEMD=0" "HAVE_ELOGIND=1"
+ (string-append "CC=" #$(cc-for-target))
+ (string-append "PREFIX=" #$output))))
+ (native-inputs (list linux-pam elogind))
+ (synopsis "Screen lock utility")
+ (description
+ "@command{physlock} locks all virtual terminals at once, only allowing the
+user of the active session (the user logged into the foreground virtual
+terminal) to unlock the computer. It is an alternative to @command{vlock -an},
+written to overcome vlock's limitations regarding hibernate and suspend.")
+ (home-page "https://github.com/xyb3rt/physlock")
+ (license license:gpl2+)))
+
(define-public python-pyperclip
(package
(name "python-pyperclip")
diff --git a/gnu/services/audio.scm b/gnu/services/audio.scm
index d55b804ba9..4885fb8424 100644
--- a/gnu/services/audio.scm
+++ b/gnu/services/audio.scm
@@ -2,7 +2,7 @@
;;; Copyright © 2017 Peter Mikkelsen <petermikkelsen10@gmail.com>
;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2020 Ludovic Courtès <ludo@gnu.org>
-;;; Copyright © 2022 Bruno Victal <mirai@makinata.eu>
+;;; Copyright © 2022⁠–⁠2023 Bruno Victal <mirai@makinata.eu>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -137,9 +137,6 @@
str)
#\-) "_")))
-(define list-of-string?
- (list-of string?))
-
(define list-of-symbol?
(list-of symbol?))
@@ -159,11 +156,11 @@
(define mpd-serialize-string mpd-serialize-field)
(define mpd-serialize-boolean mpd-serialize-field)
-(define (mpd-serialize-list-of-string field-name value)
+(define (mpd-serialize-list-of-strings field-name value)
#~(string-append #$@(map (cut mpd-serialize-string field-name <>) value)))
(define-maybe string (prefix mpd-))
-(define-maybe list-of-string (prefix mpd-))
+(define-maybe list-of-strings (prefix mpd-))
(define-maybe boolean (prefix mpd-))
;;; TODO: Procedures for deprecated fields, to be removed.
@@ -349,7 +346,8 @@ will depend on."
empty-serializer)
(environment-variables
- (list-of-string '())
+ (list-of-strings '("PULSE_CLIENTCONFIG=/etc/pulse/client.conf"
+ "PULSE_CONFIG=/etc/pulse/daemon.conf"))
"A list of strings specifying environment variables."
empty-serializer)
@@ -400,7 +398,7 @@ Available values: @code{notice}, @code{info}, @code{verbose},
"The default port to run mpd on.")
(endpoints
- maybe-list-of-string
+ maybe-list-of-strings
"The addresses that mpd will bind to. A port different from
@var{default-port} may be specified, e.g. @code{localhost:6602} and
IPv6 addresses must be enclosed in square brackets when a different
@@ -409,7 +407,7 @@ To use a Unix domain socket, an absolute path or a path starting with @code{~}
can be specified here."
(lambda (_ endpoints)
(if (maybe-value-set? endpoints)
- (mpd-serialize-list-of-string "bind_to_address" endpoints)
+ (mpd-serialize-list-of-strings "bind_to_address" endpoints)
"")))
(address ; TODO: deprecated, remove later
@@ -581,11 +579,11 @@ appended to the configuration.")
(define-configuration/no-serialization mympd-ip-acl
(allow
- (list-of-string '())
+ (list-of-strings '())
"Allowed IP addresses.")
(deny
- (list-of-string '())
+ (list-of-strings '())
"Disallowed IP addresses."))
(define-maybe/no-serialization integer)
@@ -707,12 +705,12 @@ prompting a pin from the user.")
((? string? val) val)))
(define (ip-acl-serialize-configuration config)
- (define (serialize-list-of-string prefix lst)
+ (define (serialize-list-of-strings prefix lst)
(map (cut format #f "~a~a" prefix <>) lst))
(string-join
(append
- (serialize-list-of-string "+" (mympd-ip-acl-allow config))
- (serialize-list-of-string "-" (mympd-ip-acl-deny config))) ","))
+ (serialize-list-of-strings "+" (mympd-ip-acl-allow config))
+ (serialize-list-of-strings "-" (mympd-ip-acl-deny config))) ","))
;; myMPD configuration fields are serialized as individual files under
;; <work-directory>/config/.
@@ -752,7 +750,11 @@ prompting a pin from the user.")
(let ((log-level* (format #f "MYMPD_LOGLEVEL=~a" log-level)))
(shepherd-service
(documentation "Run the myMPD daemon.")
- (requirement `(loopback user-processes ,@shepherd-requirement))
+ (requirement `(loopback user-processes
+ ,@(if (eq? log-to 'syslog)
+ '(syslog)
+ '())
+ ,@shepherd-requirement))
(provision '(mympd))
(start #~(begin
(let* ((pw (getpwnam #$user))
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 2c984a0747..5b0b3bb0ab 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -1554,14 +1554,17 @@ Service Switch}, for an example."
(shepherd-service-type
'syslog
(lambda (config)
+ (define config-file
+ (syslog-configuration-config-file config))
+
(shepherd-service
(documentation "Run the syslog daemon (syslogd).")
(provision '(syslogd))
(requirement '(user-processes))
+ (actions (list (shepherd-configuration-action config-file)))
(start #~(let ((spawn (make-forkexec-constructor
(list #$(syslog-configuration-syslogd config)
- "--rcfile"
- #$(syslog-configuration-config-file config))
+ "--rcfile" #$config-file)
#:pid-file "/var/run/syslog.pid")))
(lambda ()
;; Set the umask such that file permissions are #o640.
diff --git a/gnu/services/herd.scm b/gnu/services/herd.scm
index a7c845b4b0..e489ce2b9a 100644
--- a/gnu/services/herd.scm
+++ b/gnu/services/herd.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2016-2019, 2022 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2016-2019, 2022-2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2017, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
;;;
;;; This file is part of GNU Guix.
@@ -284,22 +284,12 @@ returns a shepherd <service> object."
(define (load-services/safe files)
"This is like 'load-services', but make sure only the subset of FILES that
-can be safely reloaded is actually reloaded.
-
-This is done to accommodate the Shepherd < 0.15.0 where services lacked the
-'replacement' slot, and where 'register-services' would throw an exception
-when passed a service with an already-registered name."
- (eval-there `(let* ((services (map primitive-load ',files))
- (slots (map slot-definition-name
- (class-slots <service>)))
- (can-replace? (memq 'replacement slots)))
- (define (registered? service)
- (not (null? (lookup-services (canonical-name service)))))
-
- (apply register-services
- (if can-replace?
- services
- (remove registered? services))))))
+can be safely reloaded is actually reloaded."
+ (eval-there `(let ((services (map primitive-load ',files)))
+ ;; Since version 0.5.0 of the Shepherd, registering a service
+ ;; that has the same name as an already-registered service
+ ;; makes it a "replacement" of that previous service.
+ (apply register-services services))))
(define* (start-service name #:optional (arguments '()))
(invoke-action name 'start arguments
diff --git a/gnu/services/linux.scm b/gnu/services/linux.scm
index d085b375a2..439848919d 100644
--- a/gnu/services/linux.scm
+++ b/gnu/services/linux.scm
@@ -234,7 +234,7 @@ more information)."
;; lists are ungexp'd correctly since @var{schedule}
;; can be either a procedure, a string or a list.
#$(if (list? schedule)
- `(list ,@schedule)
+ #~'(#$@schedule)
schedule)
(lambda ()
(system* #$(file-append package "/sbin/fstrim")
diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm
index 6ab313b97c..49f897d8cf 100644
--- a/gnu/services/networking.scm
+++ b/gnu/services/networking.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2013-2022 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2013-2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2016, 2018, 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 John Darrington <jmd@gnu.org>
@@ -536,6 +536,7 @@ restrict source notrap nomodify noquery\n"))
(provision '(ntpd))
(documentation "Run the Network Time Protocol (NTP) daemon.")
(requirement '(user-processes networking))
+ (actions (list (shepherd-configuration-action ntpd.conf)))
(start #~(make-forkexec-constructor
(list (string-append #$ntp "/bin/ntpd") "-n"
"-c" #$ntpd.conf "-u" "ntpd"
@@ -1235,6 +1236,7 @@ project's documentation} for more information."
;; TODO: iwd? is deprecated and should be passed
;; with shepherd-requirement, remove later.
,@(if iwd? '(iwd) '())))
+ (actions (list (shepherd-configuration-action conf)))
(start
#~(lambda _
(let ((pid
diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm
index c4745cecf5..7295a45b59 100644
--- a/gnu/services/xorg.scm
+++ b/gnu/services/xorg.scm
@@ -358,6 +358,22 @@ in @var{modules}."
files)
#t))))
+(define (xorg-configuration-server-package-path config input path)
+ "Lookup the direct @var{input} in the xorg server package of @var{config}
+and append @var{path} to it."
+ (let* ((server (xorg-configuration-server config))
+ (package (lookup-package-direct-input server input)))
+ (when package (file-append package path))))
+
+(define (xorg-configuration-dri-driver-path config)
+ (xorg-configuration-server-package-path config "mesa" "/lib/dri"))
+
+(define (xorg-configuration-xkb-bin-dir config)
+ (xorg-configuration-server-package-path config "xkbcomp" "/bin"))
+
+(define (xorg-configuration-xkb-dir config)
+ (xorg-configuration-server-package-path config "xkeyboard-config" "/share/X11/xkb"))
+
(define* (xorg-wrapper #:optional (config (xorg-configuration)))
"Return a derivation that builds a script to start the X server with the
given @var{config}. The resulting script should be used in place of
@@ -365,12 +381,13 @@ given @var{config}. The resulting script should be used in place of
(define exp
;; Write a small wrapper around the X server.
#~(begin
- (setenv "XORG_DRI_DRIVER_PATH" (string-append #$mesa "/lib/dri"))
- (setenv "XKB_BINDIR" (string-append #$xkbcomp "/bin"))
+ (setenv "XORG_DRI_DRIVER_PATH"
+ #$(xorg-configuration-dri-driver-path config))
+ (setenv "XKB_BINDIR" #$(xorg-configuration-xkb-bin-dir config))
(let ((X (string-append #$(xorg-configuration-server config) "/bin/X")))
(apply execl X X
- "-xkbdir" (string-append #$xkeyboard-config "/share/X11/xkb")
+ "-xkbdir" #$(xorg-configuration-xkb-dir config)
"-config" #$(xorg-configuration->file config)
"-configdir" #$(xorg-configuration-directory
(xorg-configuration-modules config))
diff --git a/gnu/system/linux-container.scm b/gnu/system/linux-container.scm
index c2fd55d48e..409386a84f 100644
--- a/gnu/system/linux-container.scm
+++ b/gnu/system/linux-container.scm
@@ -5,6 +5,7 @@
;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2020 Google LLC
;;; Copyright © 2022 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2023 Pierre Langlois <pierre.langlois@gmx.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -49,9 +50,12 @@ from OS that are needed on the bare metal and not in a container."
(define base
(remove (lambda (service)
(memq (service-kind service)
- (list (service-kind %linux-bare-metal-service)
- firmware-service-type
- system-service-type)))
+ (cons* (service-kind %linux-bare-metal-service)
+ firmware-service-type
+ system-service-type
+ (if shared-network?
+ (list hosts-service-type)
+ '()))))
(operating-system-default-essential-services os)))
(cons (service system-service-type
diff --git a/guix/build/syscalls.scm b/guix/build/syscalls.scm
index df9b9f6ac7..d947b010d3 100644
--- a/guix/build/syscalls.scm
+++ b/guix/build/syscalls.scm
@@ -970,7 +970,10 @@ backend device."
(string->pointer key)
(string->pointer "")
0)))
- (cond ((< size 0) #f)
+ (cond ((< size 0)
+ (throw 'system-error "getxattr" "~S: ~A"
+ (list file key (strerror err))
+ (list err)))
((zero? size) "")
;; Get VALUE in buffer of SIZE. XXX actual size can race.
(else (let*-values (((buf) (make-bytevector size))
diff --git a/guix/lint.scm b/guix/lint.scm
index 3ed7fd6e4d..9eece374ff 100644
--- a/guix/lint.scm
+++ b/guix/lint.scm
@@ -1,7 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 Cyril Roelandt <tipecaml@gmail.com>
;;; Copyright © 2014, 2015 Eric Bavier <bavier@member.fsf.org>
-;;; Copyright © 2013-2022 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2013-2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org>
;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
@@ -1485,6 +1485,9 @@ the NIST server non-fatal."
(package-version package))))
((force lookup) name version)))))
+;; Prevent Guile 3 from inlining this procedure so we can mock it in tests.
+(set! package-vulnerabilities package-vulnerabilities)
+
(define* (check-vulnerabilities package
#:optional (package-vulnerabilities
package-vulnerabilities))
diff --git a/guix/substitutes.scm b/guix/substitutes.scm
index 84c7be83ca..e732096933 100644
--- a/guix/substitutes.scm
+++ b/guix/substitutes.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2013-2021, 2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2014 Nikita Karetnikov <nikita@karetnikov.org>
;;; Copyright © 2018 Kyle Meyer <kyle@kyleam.com>
;;; Copyright © 2020 Christopher Baines <mail@cbaines.net>
@@ -35,6 +35,7 @@
#:select ((open-connection-for-uri
. guix:open-connection-for-uri)
resolve-uri-reference))
+ #:autoload (gnutls) (error->string error/premature-termination)
#:use-module (guix progress)
#:use-module (ice-9 match)
#:use-module (ice-9 format)
@@ -152,6 +153,13 @@ indicates that PATH is unavailable at CACHE-URL."
(strerror
(system-error-errno `(system-error ,@args)))))
#f)
+ (('gnutls-error error proc . rest)
+ (if (eq? error error/premature-termination)
+ (begin
+ (warning (G_ "~a: TLS connection failed: in ~a: ~a~%") host
+ proc (error->string error))
+ #f)
+ (apply throw 'gnutls-error error proc rest)))
(args
(apply throw args)))))
diff --git a/tests/guix-home.sh b/tests/guix-home.sh
index 3151f66683..11b068ca43 100644
--- a/tests/guix-home.sh
+++ b/tests/guix-home.sh
@@ -36,8 +36,8 @@ container_supported ()
fi
}
-NIX_STORE_DIR="$(guile -c '(use-modules (guix config))(display %storedir)')"
localstatedir="$(guile -c '(use-modules (guix config))(display %localstatedir)')"
+NIX_STORE_DIR="$(guile -c '(use-modules (guix config))(display %storedir)')"
GUIX_DAEMON_SOCKET="$localstatedir/guix/daemon-socket/socket"
export NIX_STORE_DIR GUIX_DAEMON_SOCKET