sharlatan pushed a commit to branch ruby-team
in repository guix.
commit 3aad9b1a75f75d7b1f7cb2af53cb6b8ddda95e59
Author: Nicolas Graves <[email protected]>
AuthorDate: Fri Jan 31 09:20:06 2025 +0100
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 <[email protected]>
---
gnu/packages/ruby.scm | 26 +++++++++++++++++++++++---
1 file changed, 23 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index a496715601..40941eded5 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -11492,7 +11492,7 @@ neither too verbose nor too minimal.")
(define-public ruby-sqlite3
(package
(name "ruby-sqlite3")
- (version "1.6.3")
+ (version "2.5.0")
(source
(origin
(method git-fetch) ;for tests
@@ -11502,13 +11502,34 @@ neither too verbose nor too minimal.")
(file-name (git-file-name name version))
(sha256
(base32
- "0ijj8z8fpk2lczydkxv71k250g5gd8ip8klsscxc9f16b01gh9qs"))))
+ "1fanv7bv5lszd5g752yy8nmpjhrl9gqwbbkbis2xbh83y96f2zfm"))))
(build-system ruby-build-system)
(arguments
(list
#:gem-flags #~(list "--" "--enable-system-libraries")
+ #:modules '((guix build ruby-build-system)
+ (guix build utils)
+ (ice-9 rdelim)
+ (ice-9 textual-ports))
#: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)
(add-after 'install 'check
(lambda* (#:key tests? #:allow-other-keys)
@@ -11523,7 +11544,6 @@ neither too verbose nor too minimal.")
(list sqlite))
(native-inputs
(list ruby-hoe
- ruby-ruby-memcheck
ruby-rake-compiler
ruby-rake-compiler-dock))
(synopsis "Interface with SQLite3 databases")