gnu: ruby-safe-yaml: Fix build.

* gnu/packages/ruby.scm (ruby-safe-yaml)[arguments]: Build with #:ruby
ruby-2.7 and update style.
This commit is contained in:
Christopher Baines 2023-07-04 16:19:54 +01:00
parent e13dc6a024
commit 9c164d72b2
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -13727,17 +13727,18 @@ (define-public ruby-safe-yaml
(native-inputs
(list ruby-rspec ruby-hashie ruby-heredoc-unindent))
(arguments
'(#:test-target "spec"
#:phases
(modify-phases %standard-phases
(add-before 'check 'set-TZ
(lambda _
;; This test is dependent on the timezone
;; spec/transform/to_date_spec.rb:35
;; # SafeYAML::Transform::ToDate converts times to the local
;; timezone
(setenv "TZ" "UTC-11")
#t)))))
(list
#:ruby ruby-2.7
#:test-target "spec"
#:phases
#~(modify-phases %standard-phases
(add-before 'check 'set-TZ
(lambda _
;; This test is dependent on the timezone
;; spec/transform/to_date_spec.rb:35
;; # SafeYAML::Transform::ToDate converts times to the local
;; timezone
(setenv "TZ" "UTC-11"))))))
(home-page "https://github.com/dtao/safe_yaml")
(synopsis "YAML parser")
(description "The SafeYAML gem provides an alternative implementation of