gnu: ruby-sqlite3: Update to 2.5.0.

* gnu/packages/ruby.scm (ruby-sqlite3): Update to 2.5.0.
[arguments]<#:phases>: Add phase 'relax-requirements to only run
useful tests.
<#:modules>: Add required modules.
[native-inputs]: Remove ruby-ruby-memcheck.

Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-01-31 09:20:06 +01:00 committed by Andreas Enge
parent 727d86499a
commit 1e73dc4466
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -11512,7 +11512,7 @@ neither too verbose nor too minimal.")
(define-public ruby-sqlite3 (define-public ruby-sqlite3
(package (package
(name "ruby-sqlite3") (name "ruby-sqlite3")
(version "1.6.3") (version "2.5.0")
(source (source
(origin (origin
(method git-fetch) ;for tests (method git-fetch) ;for tests
@ -11522,13 +11522,34 @@ neither too verbose nor too minimal.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"0ijj8z8fpk2lczydkxv71k250g5gd8ip8klsscxc9f16b01gh9qs")))) "1fanv7bv5lszd5g752yy8nmpjhrl9gqwbbkbis2xbh83y96f2zfm"))))
(build-system ruby-build-system) (build-system ruby-build-system)
(arguments (arguments
(list (list
#:gem-flags #~(list "--" "--enable-system-libraries") #:gem-flags #~(list "--" "--enable-system-libraries")
#:modules '((guix build ruby-build-system)
(guix build utils)
(ice-9 rdelim)
(ice-9 textual-ports))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'relax-requirements
(lambda _
;; Don't try to format C code, remove rubocop-rake.
(delete-file "rakelib/format.rake")
;; Don't try to run valgrind-like memory tests.
;; This cuts all lines after Minitest::TestTask.create
(with-atomic-file-replacement
"rakelib/test.rake"
(lambda (in out)
(let loop ()
(let ((line (read-line in)))
(cond
((eof-object? line) #f)
((string-prefix? "Minitest::TestTask.create" line) #f)
(else
(format out "~a~%" line)
(loop)))))))))
(delete 'check) (delete 'check)
(add-after 'install 'check (add-after 'install 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
@ -11543,7 +11564,6 @@ neither too verbose nor too minimal.")
(list sqlite)) (list sqlite))
(native-inputs (native-inputs
(list ruby-hoe (list ruby-hoe
ruby-ruby-memcheck
ruby-rake-compiler ruby-rake-compiler
ruby-rake-compiler-dock)) ruby-rake-compiler-dock))
(synopsis "Interface with SQLite3 databases") (synopsis "Interface with SQLite3 databases")