Archived
1
0
Fork 0

gnu: ruby-tzinfo: Update to 2.0.6.

* gnu/packages/ruby.scm (ruby-tzinfo): Update to 2.0.6.
[arguments,propagated-inputs]: Update style.
This commit is contained in:
Christopher Baines 2023-06-18 11:45:00 +01:00
parent daea7bc223
commit 88b29ec5cf
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -7011,7 +7011,7 @@ utilities for Ruby.")
(define-public ruby-tzinfo (define-public ruby-tzinfo
(package (package
(name "ruby-tzinfo") (name "ruby-tzinfo")
(version "2.0.4") (version "2.0.6")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -7022,31 +7022,29 @@ utilities for Ruby.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"0jaq1givdaz5jxz47xngyj3j315n872rk97mnpm5njwm48wy45yh")))) "1n1gzjqwwnx209h8d054miva0y7x17db2ahy7jav5r25ibhh7rgm"))))
(build-system ruby-build-system) (build-system ruby-build-system)
(arguments (arguments
'(#:phases (list
(modify-phases %standard-phases #:phases
(add-after 'unpack 'skip-safe-tests #~(modify-phases %standard-phases
(lambda _ (add-after 'unpack 'skip-safe-tests
(substitute* "test/test_utils.rb" (lambda _
(("def safe_test\\(options = \\{\\}\\)") (substitute* "test/test_utils.rb"
(("def safe_test\\(options = \\{\\}\\)")
"def safe_test(options = {}) "def safe_test(options = {})
skip('The Guix build environment has an unsafe load path')")) skip('The Guix build environment has an unsafe load path')"))))
#t)) (add-before 'check 'pre-check
(add-before 'check 'pre-check (lambda _
(lambda _ (setenv "HOME" (getcwd))
(setenv "HOME" (getcwd)) (substitute* "Gemfile"
(substitute* "Gemfile" (("simplecov.*") "simplecov'\n"))))
(("simplecov.*") "simplecov'\n")) (replace 'check
#t)) (lambda* (#:key tests? test-target #:allow-other-keys)
(replace 'check (when tests?
(lambda* (#:key tests? test-target #:allow-other-keys) (invoke "bundler" "exec" "rake" test-target)))))))
(when tests?
(invoke "bundler" "exec" "rake" test-target))
#t)))))
(propagated-inputs (propagated-inputs
`(("ruby-concurrent-ruby" ,ruby-concurrent))) (list ruby-concurrent))
(native-inputs (native-inputs
(list ruby-simplecov)) (list ruby-simplecov))
(synopsis "Time zone library for Ruby") (synopsis "Time zone library for Ruby")