* 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>
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>
* 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>
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>
* 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.
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.
* gnu/packages/language.scm (mecab): New variable.
* gnu/packages/patches/mecab-variable-param.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* 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.
* 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.
* 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.
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].
* 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.