gnu: ruby-sqlite3: Update to 1.6.3.

* gnu/packages/ruby.scm (ruby-sqlite3): Update to 1.6.3.
[source]: Switch to the Git repository to aid running tests.
[arguments]: Update style and adjust.
[native-inputs]: Add ruby-ruby-memcheck, ruby-rake-compiler and
ruby-rake-compiler-dock.
This commit is contained in:
Christopher Baines 2023-06-27 10:08:35 +01:00
parent bcc615473d
commit 21d2e46211
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -10582,25 +10582,40 @@ neither too verbose nor too minimal.")
(define-public ruby-sqlite3 (define-public ruby-sqlite3
(package (package
(name "ruby-sqlite3") (name "ruby-sqlite3")
(version "1.4.4") (version "1.6.3")
(source (source
(origin (origin
(method url-fetch) (method git-fetch) ;for tests
(uri (rubygems-uri "sqlite3" version)) (uri (git-reference
(url "https://github.com/sparklemotion/sqlite3-ruby")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1z1wa639c278bsipczn6kv8b13fj85pi8gk7x462chqx6k0wm0ax")))) "0ijj8z8fpk2lczydkxv71k250g5gd8ip8klsscxc9f16b01gh9qs"))))
(build-system ruby-build-system) (build-system ruby-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:gem-flags #~(list "--" "--enable-system-libraries")
(add-before 'check 'add-gemtest-file #:phases
;; This file exists in the repository but is not distributed. #~(modify-phases %standard-phases
(lambda _ (invoke "touch" ".gemtest")))))) (delete 'check)
(add-after 'install 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "GEM_PATH"
(string-append (getenv "GEM_PATH") ":"
#$output "/lib/ruby/vendor_ruby"))
(invoke "rake" "test")))))))
(propagated-inputs
(list ruby-mini-portile-2))
(inputs (inputs
(list sqlite)) (list sqlite))
(native-inputs (native-inputs
(list ruby-hoe ruby-rake-compiler ruby-mini-portile-2)) (list ruby-hoe
ruby-ruby-memcheck
ruby-rake-compiler
ruby-rake-compiler-dock))
(synopsis "Interface with SQLite3 databases") (synopsis "Interface with SQLite3 databases")
(description (description
"This module allows Ruby programs to interface with the SQLite3 database "This module allows Ruby programs to interface with the SQLite3 database