mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: ruby-tzinfo: Update to 2.0.6-0.5cfebcb.
* gnu/packages/ruby-xyz.scm (ruby-tzinfo): Update to 2.0.6-0.5cfebcb.
This commit is contained in:
parent
b2d6cd0388
commit
ed4279f64f
1 changed files with 43 additions and 41 deletions
|
@ -6796,49 +6796,51 @@ utilities for Ruby.")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
(define-public ruby-tzinfo
|
(define-public ruby-tzinfo
|
||||||
(package
|
;; XXX: Unreleased for Ruby@3.3.
|
||||||
(name "ruby-tzinfo")
|
(let ((commit "5cfebcbdbe3beff2a254ea0709a1586968a301a0")
|
||||||
(version "2.0.6")
|
(revision "0"))
|
||||||
(source
|
(package
|
||||||
(origin
|
(name "ruby-tzinfo")
|
||||||
(method git-fetch)
|
(version (git-version "2.0.6" revision commit))
|
||||||
(uri (git-reference
|
(source
|
||||||
;; Pull from git because the gem has no tests.
|
(origin
|
||||||
(url "https://github.com/tzinfo/tzinfo")
|
(method git-fetch)
|
||||||
(commit (string-append "v" version))))
|
(uri (git-reference
|
||||||
(file-name (git-file-name name version))
|
;; Pull from git because the gem has no tests.
|
||||||
(sha256
|
(url "https://github.com/tzinfo/tzinfo")
|
||||||
(base32
|
(commit commit)))
|
||||||
"1n1gzjqwwnx209h8d054miva0y7x17db2ahy7jav5r25ibhh7rgm"))))
|
(file-name (git-file-name name version))
|
||||||
(build-system ruby-build-system)
|
(sha256
|
||||||
(arguments
|
(base32 "02sp9pp3qxds1cw8kks3iha6ib5wrjybh4d2qjm0rksrqkq1gd6q"))))
|
||||||
(list
|
(build-system ruby-build-system)
|
||||||
#:phases
|
(arguments
|
||||||
#~(modify-phases %standard-phases
|
(list
|
||||||
(add-after 'unpack 'skip-safe-tests
|
#:phases
|
||||||
(lambda _
|
#~(modify-phases %standard-phases
|
||||||
(substitute* "test/test_utils.rb"
|
(add-after 'unpack 'skip-safe-tests
|
||||||
(("def safe_test\\(options = \\{\\}\\)")
|
(lambda _
|
||||||
"def safe_test(options = {})
|
(substitute* "test/test_utils.rb"
|
||||||
|
(("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')"))))
|
||||||
(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
|
(replace 'check
|
||||||
(lambda* (#:key tests? test-target #:allow-other-keys)
|
(lambda* (#:key tests? test-target #:allow-other-keys)
|
||||||
(when tests?
|
(when tests?
|
||||||
(invoke "bundler" "exec" "rake" test-target)))))))
|
(invoke "bundler" "exec" "rake" test-target)))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list 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")
|
||||||
(description "TZInfo is a Ruby library that provides daylight savings
|
(description "TZInfo is a Ruby library that provides daylight savings
|
||||||
aware transformations between times in different time zones.")
|
aware transformations between times in different time zones.")
|
||||||
(home-page "https://tzinfo.github.io")
|
(home-page "https://tzinfo.github.io")
|
||||||
(license license:expat)))
|
(license license:expat))))
|
||||||
|
|
||||||
(define-public ruby-tzinfo-data
|
(define-public ruby-tzinfo-data
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue