mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-04 18:38:57 -05:00
gnu: ruby-marcel: Fix build.
* gnu/packages/rails.scm (ruby-marcel)[arguments]: Remove the byebug dependency. [native-inputs]: Remove ruby-byebug.
This commit is contained in:
parent
0ea78508fe
commit
158b3dc693
1 changed files with 19 additions and 12 deletions
|
@ -977,18 +977,25 @@ (define-public ruby-marcel
|
||||||
"1i1x24afmn09n48fj4yz2pdm6vlfnq14gism0cgxsyqmlrvsxajn"))))
|
"1i1x24afmn09n48fj4yz2pdm6vlfnq14gism0cgxsyqmlrvsxajn"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list #:test-target "default"
|
(list
|
||||||
#:phases #~(modify-phases %standard-phases
|
#:test-target "default"
|
||||||
(add-before 'check 'disable-problematic-tests
|
#:phases
|
||||||
(lambda _
|
#~(modify-phases %standard-phases
|
||||||
(substitute* "test/mime_type_test.rb"
|
(add-after 'unpack 'patch
|
||||||
;; One test fails because of the newer rack
|
(lambda _
|
||||||
;; version used (see:
|
;; Remove byebug dependency
|
||||||
;; https://github.com/rails/marcel/issues/91).
|
(substitute* "test/test_helper.rb"
|
||||||
(("test \"gets content type.*" all)
|
(("require 'byebug'") ""))))
|
||||||
(string-append
|
(add-before 'check 'disable-problematic-tests
|
||||||
all " skip('fails on guix')\n"))))))))
|
(lambda _
|
||||||
(native-inputs (list ruby-byebug ruby-nokogiri ruby-rack))
|
(substitute* "test/mime_type_test.rb"
|
||||||
|
;; One test fails because of the newer rack
|
||||||
|
;; version used (see:
|
||||||
|
;; https://github.com/rails/marcel/issues/91).
|
||||||
|
(("test \"gets content type.*" all)
|
||||||
|
(string-append
|
||||||
|
all " skip('fails on guix')\n"))))))))
|
||||||
|
(native-inputs (list ruby-nokogiri ruby-rack))
|
||||||
(propagated-inputs (list ruby-mimemagic))
|
(propagated-inputs (list ruby-mimemagic))
|
||||||
(synopsis "MIME type detection using magic numbers, filenames and extensions")
|
(synopsis "MIME type detection using magic numbers, filenames and extensions")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue