Commit graph

111171 commits

Author SHA1 Message Date
gemmaro
ff0dad422c
gnu: Add ruby-enumerable-statistics.
* gnu/packages/statistics.scm (ruby-enumerable-statistics): New variable.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
2023-04-12 08:26:25 -04:00
Martin Marshall
314d23a3d8
gnu: Add mairix.
* gnu/packages/mail.scm (mairix): New variable.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
2023-04-12 08:26:25 -04:00
Bruno Victal
3dc2658a57
services: mympd: Use records for user and group fields.
* gnu/services/audio.scm (%mympd-user, %mympd-group)
(mympd-user-sanitizer, mympd-group-sanitizer): New variables.
(mympd-configuration)[user]: Use user-account as value type.
Sanitize via mympd-user-sanitizer.
[group]: Use user-group as value type.
Sanitize via mympd-group-sanitizer.
(mympd-serialize-configuration): Adjust accordingly.
(mympd-accounts): Likewise.
* doc/guix.texi (Audio Services)[myMPD]: Likewise.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2023-04-12 08:26:25 -04:00
Bruno Victal
8a7d44be81
services: mpd: Use proper records for user and group fields.
Deprecate using strings for these fields and prefer user-account
(resp. user-group) instead to avoid duplication within account-service-type.

Fixes #61570 <https://issues.guix.gnu.org/61570>.

* gnu/services/audio.scm (%mpd-user, %mpd-group)
(mpd-serialize-user-account, mpd-serialize-user-group)
(mpd-user-sanitizer, mpd-group-sanitizer): New variables.
(mpd-configuration)[user]: Use user-account as value type.
Sanitize via mpd-user-sanitizer.
[group]: Use user-group as value type.
Sanitize via mpd-group-sanitizer.
(mpd-shepherd-service): Adjust accordingly.
(mpd-accounts): Likewise.
* doc/guix.texi (Audio Services)[Music Player Daemon]: Likewise.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2023-04-12 08:26:25 -04:00
Bruno Victal
61cd4e90d5
services: mpd: Fix unintentional API breakage for mixer-type field.
* gnu/services/audio.scm (mpd-output)[mixer-type]: Use sanitizer to
accept both strings and symbols as values.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2023-04-12 08:26:24 -04:00
Bruno Victal
10093abf9c
services: replace bare serializers with (serializer ...)
* gnu/home/services/shells.scm
(home-zsh-configuration)[environment-variables]: Use (serializer ...).
(home-bash-configuration)[aliases, environment-variables]: Likewise.
(home-fish-configuration)[abbreviations, aliases]
[environment-variables]: Likewise.
* gnu/services/audio.scm (mpd-configuration)[music-dir, playlist-dir]
[endpoints, address, inputs, archive-plugins, input-cache-size]
[decoders, filters, playlist-plugins]: Likewise.
* gnu/services/linux.scm (fstrim-configuration)[extra-arguments]:
Likewise.
* gnu/services/security.scm (fail2ban-jail-configuration)[backend]
[log-encoding, extra-content]: Likewise.
* tests/services/configuration.scm: Update tests.
("serialize-configuration [deprecated]"): New test.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2023-04-12 08:26:24 -04:00
Bruno Victal
4c8030258b
services: configuration: Add user-defined sanitizer support.
This changes the 'custom-serializer' field into a generic
'extra-args' field that can be extended to support new literals.
Within extra-args, the literals 'sanitizer' and 'serializer' allow
for user-defined sanitization and serialization procedures respectively.
The 'empty-serializer' was also added as a literal to be used as before.

To prevent confusion between the new “explicit” style of specifying
a sanitizer, and the old “implicit” style, the latter has been
deprecated, and a warning is issued if it is encountered.

* gnu/services/configuration.scm (define-configuration-helper):
Rename 'custom-serializer' to 'extra-args'.  Add support for literals
'sanitizer', 'serializer' and 'empty-serializer'.  Rename procedure
'field-sanitizer' to 'default-field-sanitizer' to avoid syntax clash.
Only define default field sanitizers if user-defined ones are absent.
(normalize-extra-args): New variable.
(<configuration-field>)[sanitizer]: New field.
* doc/guix.texi (Complex Configurations): Document the newly added
literals.
* tests/services/configuration.scm: Add tests for the new literals.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2023-04-12 08:26:24 -04:00
Liliana Marie Prikler
8775935128
gnu: Add python-clingraph.
* gnu/packages/potassco.scm (python-clingraph): New variable.
2023-04-12 08:26:24 -04:00
Liliana Marie Prikler
3a1a70b447
gnu: Separate potassco packages into their own module.
* gnu/packages/potassco.scm: New file.
* gnu/packages/maths.scm (libpotassco, clasp, clingo, python-clingo)
(python-telingo): Move to potassco module.  Adjust imports accordingly.
* gnu/packages/emacs-xyz.scm (emacs-pasp-mode): Move to potassco module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add %D%/packages/potassco.scm.
2023-04-12 08:26:24 -04:00
Liliana Marie Prikler
ce803f12f6
gnu: python-imageio: Update to 2.26.0.
* gnu/packages/python-xyz.scm (python-imageio): Update to 2.26.0.
[build-system]: Use pyproject-build-system.
[arguments]: Use G-Expressions.
<#:tests?>: Drop argument.
<#:test-flags>: New argument.
<#:phases>: Drop replacement for ‘check’.
Add ‘fix-source’ and ‘fix-failing-tests’.
[inputs]: Add freeimage.
[propagated-inputs]: Add python-imageio-ffmpeg.
2023-04-12 08:26:23 -04:00
Liliana Marie Prikler
1bb45f61ed
gnu: Add python-imageio-ffmpeg.
* gnu/packages/python-xyz.scm (python-imageio-ffmpeg): New variable.
2023-04-12 08:26:23 -04:00
John Kehayias
62cc728619
gnu: emacs-slime: Add missing propagated input.
Fixes error "Cannot open load file: No such file or directory,
../lib/macrostep" when trying to run slime.

* gnu/packages/emacs-xyz.scm (emacs-slime)[propagated-inputs]: Add
emacs-macrostep.
2023-04-12 08:26:23 -04:00
Julien Lepiller
bc01fa2a7a
gnu: Add mecab-unidic.
* gnu/packages/language.scm (mecab-unidic): New variable.
2023-04-12 08:26:22 -04:00
Julien Lepiller
5d2273aaa0
gnu: Add mecab-ipadic.
* gnu/packages/language.scm (mecab-ipadic): New variable.
2023-04-12 08:26:22 -04:00
Julien Lepiller
55f9bfeda9
gnu: Add mecab.
* gnu/packages/language.scm (mecab): New variable.
* gnu/packages/patches/mecab-variable-param.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
2023-04-12 08:26:22 -04:00
Maxim Cournoyer
c8d63ecf1d
gnu: libexif: Update home page.
* gnu/packages/photo.scm (libexif) [home-page]: Update URL.
2023-04-11 21:50:34 -04:00
Maxim Cournoyer
f32c98c367
gnu: ruby-rubyzip: Re-instate all tests.
* gnu/packages/ruby.scm (ruby-rubyzip)
[arguments]: Do not patch ruby shebang in the patch-tests phase.
Remove the disable-problematic-tests phase.  Add the
unpatch-some-source-shebangs phase.
2023-04-11 21:35:54 -04:00
Maxim Cournoyer
5842d69824
gnu: python-gst: Update to 1.22.2.
* gnu/packages/gstreamer.scm (python-gst): Update to 1.22.2.
2023-04-11 21:00:43 -04:00
Maxim Cournoyer
6c0a68acac
gnu: gst-editing-services: Update to 1.22.2.
* gnu/packages/gstreamer.scm (gst-editing-services): Update to 1.22.2.
2023-04-11 21:00:43 -04:00
Maxim Cournoyer
359d851496
gnu: gst-libav: Update to 1.22.2.
* gnu/packages/gstreamer.scm (gst-libav): Update to 1.22.2.
2023-04-11 21:00:42 -04:00
Maxim Cournoyer
021b0ea7fd
gnu: gst-plugins-ugly: Update to 1.22.2.
* gnu/packages/gstreamer.scm (gst-plugins-ugly): Update to 1.22.2.
2023-04-11 21:00:42 -04:00
Maxim Cournoyer
d3754d5ea7
gnu: gst-plugins-bad: Update to 1.22.2.
* gnu/packages/gstreamer.scm (gst-plugins-bad): Update to 1.22.2.
2023-04-11 21:00:42 -04:00
Maxim Cournoyer
4750619073
gnu: gst-plugins-good: Update to 1.22.2.
* gnu/packages/gstreamer.scm (gst-plugins-good): Update to 1.22.2.
2023-04-11 21:00:42 -04:00
Maxim Cournoyer
e21b60f980
gnu: gst-plugins-base: Update to 1.22.2.
* gnu/packages/gstreamer.scm (gst-plugins-base): Update to 1.22.2.
2023-04-11 21:00:41 -04:00
Maxim Cournoyer
f2158fc9ae
gnu: gstreamer: Update to 1.22.2.
* gnu/packages/gstreamer.scm (gstreamer): Update to 1.22.2.
2023-04-11 21:00:27 -04:00
Maxim Cournoyer
c65543bcfd
gnu: gstreamer-docs: Update to 1.22.2.
* gnu/packages/gstreamer.scm (gstreamer-docs): Update to 1.22.2.
2023-04-11 21:00:17 -04:00
Maxim Cournoyer
2b17bf4c32
gnu: python-trio-typing: Switch to pyproject-build-system.
* gnu/packages/python-xyz.scm (python-trio-typing) [source]: Fix indentation.
[build-system]: Use pyproject-build-system.
[arguments]: Delete field.
2023-04-11 20:35:49 -04:00
Maxim Cournoyer
afdcd60743
gnu: xpra: Remove input labels and use gexps.
* gnu/packages/xorg.scm (xpra) [inputs]: Remove labels.
[arguments]: Use gexps.  Remove trailing #t in phases.  Use search-input-file
and this-package-input in the fix-paths phase.  Use search-input-file in
wrap-program.
2023-04-11 20:35:22 -04:00
Maxim Cournoyer
2ed5a1d535
gnu: python-service-identity: Update to 21.1.0.
* gnu/packages/python-crypto.scm (python-service-identity): Update to 21.1.0.
[build-system]: Use pyproject-build-system.
[native-inputs]: New field.
[propagated-inputs]: Remove python-pyopenssl.  Add python-cryptography and
python-six.
2023-04-11 20:35:21 -04:00
Maxim Cournoyer
367fce7a2f
gnu: python-pyopenssl: Update to 23.1.1.
* gnu/packages/python-crypto.scm (python-pyopenssl): Update to 23.1.1.
[source]: Remove patches.
[arguments]: Update faketime date in check phase.
Normalize pytest invocation in check phase override.
[propagated-inputs]: Remove python-six.
2023-04-11 20:35:21 -04:00
Maxim Cournoyer
5ec5e560ad
gnu: python-cryptography: Update to 40.0.1 [fixes CVE-2023-23931].
* gnu/packages/python-crypto.scm (python-cryptography-vectors): Delete
variable.
(python-cryptography-vectors-next): Rename to...
(python-cryptography-vectors): ... this.  Update to 40.0.1.
(python-cryptography): Delete variable.
(python-cryptography-next): Rename to...
(python-cryptography): ... this.  Update to 40.0.1.
[build-system]: Use pyproject-build-system.
[arguments]: Remove #:imported-modules and #:modules arguments.  Remove check
phase override.  Remove adjust-pyo3-requirement and configure-cargo phases.
Add disable-rust-extension-build and symlink-rust-library phases.
[native-inputs]: Replace python-cryptography-vectors-next with
python-cryptography-vectors.  Add python-iso8601.  Remove python-pytz.
Replace python-pytest with python-pytest-7.1.  Remove rust, rust:cargo and
python-setuptools-rust.
[inputs]: Remove all inputs.  Add python-cryptography-rust.
[propagated-inputs]: Remove python-asn1crypto, python-six, python-idna and
python-iso8601.
[description]: Start description with @code to avoid a lint warning.
2023-04-11 20:35:21 -04:00
Maxim Cournoyer
5cb19ebeac
gnu: python-celery: Use python-pytest-7.1.
* gnu/packages/python-xyz.scm (python-celery)
[native-inputs]: Replace python-pytest with python-pytest-7.1.
2023-04-11 20:35:21 -04:00
Maxim Cournoyer
a382c5a734
gnu: python-pint: Use python-pytest-7.1.
* gnu/packages/python-xyz.scm (python-pint)
[native-inputs]: Replace python-pytest with python-pytest-7.1.
2023-04-11 20:35:21 -04:00
Maxim Cournoyer
2759920c9d
gnu: python-pytest-subtests: Update to 0.10.0.
* gnu/packages/python-check.scm (python-pytest-subtests): Update to 0.10.0.
[native-inputs]: Replace python-pytest with python-pytest-7.1.
2023-04-11 20:35:20 -04:00
Maxim Cournoyer
e5f8329fe7
gnu: python-pytest-7.1: Replace python-toml with python-tomli.
* gnu/packages/check.scm (python-pytest-7.1)
[propagated-inputs]: Replace python-toml with python-tomli.
2023-04-11 20:35:20 -04:00
Maxim Cournoyer
9e5102ca64
gnu: Add python-cryptography-rust.
* gnu/packages/python-crypto.scm (python-cryptography-rust): New variable.
2023-04-11 20:35:20 -04:00
Maxim Cournoyer
b50bc41b51
gnu: rust-openssl-sys-0.9: Propagate openssl.
It appears that OpenSSL is expected to be available when building a package
using this library.

* gnu/packages/crates-io.scm (rust-openssl-sys-0.9) [inputs]: Turn into...
[propagated-inputs].
2023-04-11 20:35:20 -04:00
Maxim Cournoyer
5d032a287d
gnu: rust-eyre-0.6: Update to 0.6.8.
* gnu/packages/crates-io.scm (rust-eyre-0.6): Update to 0.6.8.
[arguments]: Remove #:skip-build? argument.  Add rust-pyo3-0.13 to
 #:cargo-inputs.  Add #:cargo-development-inputs.
[native-inputs]: Add python.
2023-04-11 20:35:20 -04:00
Maxim Cournoyer
818f90df5c
gnu: rust-pem-1: Update to 1.1.1.
* gnu/packages/crates-io.scm (rust-pem-1): Update to 1.1.1.
[arguments] Add rust-serde-1 to #:cargo-inputs.
Add rust-serde-json-1 to #:cargo-development-inputs.
2023-04-11 20:35:19 -04:00
Bruno Victal
41118bb4e4
gnu: libexif: Update to 0.6.24. [fixes CVE-2020-0198, CVE-2020-0452]
* gnu/packages/photo.scm (libexif): Update to 0.6.24.
[source]: Switch to git checkout.
[native-inputs]: Add autoconf, automake, gettext-minimal and libtool.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2023-04-11 20:35:19 -04:00
Maxim Cournoyer
39b06acc6e
gnu: Add rust-base64-0.21.
* gnu/packages/crates-io.scm (rust-base64-0.21): New variable.
(rust-base64-0.13): Inherit from it.
2023-04-11 20:35:19 -04:00
Efraim Flashner
8282b3b625
gnu: rust-futures-sink-0.3: Update to 0.3.26.
* gnu/packages/crates-io.scm (rust-futures-sink-0.3): Update to 0.3.26.
2023-04-11 20:35:19 -04:00
Efraim Flashner
13f3f41cfb
gnu: rust-futures-util-0.3: Update to 0.3.26.
* gnu/packages/crates-io.scm (rust-futures-util-0.3): Update to 0.3.26.
[cargo-inputs]: Remove rust-proc-macro-hack-0.5,
rust-proc-macro-nested-0.1.
2023-04-11 20:35:19 -04:00
Efraim Flashner
dbb7621cf8
gnu: rust-futures-test-0.3: Update to 0.3.26.
* gnu/packages/crates-io.scm (rust-futures-test-0.3): Update to 0.3.26.
[arguments]: Skip tests.
[cargo-inputs]: Add rust-futures-macro-0.3, rust-futures-sink-0.3,
rust-pin-project-1. Remove rust-once-cell-1.
2023-04-11 20:35:18 -04:00
Efraim Flashner
8cb458e729
gnu: rust-futures-task-0.3: Update to 0.3.26.
* gnu/packages/crates-io.scm (rust-futures-task-0.3): Update to 0.3.26.
[cargo-inputs]: Remove rust-once-cell-1.
2023-04-11 20:35:18 -04:00
Efraim Flashner
55825e48d8
gnu: rust-futures-macro-0.3: Update to 0.3.26.
* gnu/packages/crates-io.scm (rust-futures-macro-0.3): Update to 0.3.26.
[cargo-inputs]: Remove rust-proc-macro-hack-0.5.
2023-04-11 20:35:18 -04:00
Efraim Flashner
12bb10d603
gnu: rust-futures-io-0.3: Update to 0.3.26.
* gnu/packages/crates-io.scm (rust-futures-io-0.3): Update to 0.3.26.
2023-04-11 20:35:18 -04:00
Efraim Flashner
ab16184e4a
gnu: rust-futures-executor-0.3: Update to 0.3.26.
* gnu/packages/crates-io.scm (rust-futures-executor-0.3): Update to 0.3.26.
2023-04-11 20:35:18 -04:00
Efraim Flashner
e6cca4d0ad
gnu: rust-futures-core-0.3: Update to 0.3.26.
* gnu/packages/crates-io.scm (rust-futures-core-0.3): Update to 0.3.26.
[cargo-inputs]: Add rust-portable-atomic-1.
2023-04-11 20:35:17 -04:00
Efraim Flashner
25c4a95245
gnu: rust-futures-channel-0.3: Update to 0.3.26.
* gnu/packages/crates-io.scm (rust-futures-channel-0.3): Update to 0.3.26.
2023-04-11 20:35:17 -04:00