Ricardo Wurmus writes: > Christopher Baines writes: > >> * gnu/packages/ruby.scm (ruby-hamster): New variable. > […] >> + (add-after 'unpack 'remove-unnecessary-dependencies >> + (lambda _ >> + ;; pry is a debugging tool, and is unnecessary when running the >> + ;; tests >> + (substitute* "spec/lib/hamster/vector/insert_spec.rb" >> + (("require 'pry'") "")) >> + (substitute* "spec/spec_helper.rb" >> + (("require \"pry\"") "") > > We have a ruby-pry package. Wouldn’t it be nicer to add it instead of > patching the sources? It would make the package definition simpler, but it would lead to redundant rebuilds of this package, and all of it's dependants if the ruby-pry package changed. The ideal situation would be for things like this to be optional, but I think where this isn't the case, it's worth putting some effort in to the package definition to avoid unnecessary dependencies. >> + ;; CodeClimate is an online service, and is unnecessary for >> + ;; running the tests >> + (("require \"codeclimate-test-reporter\"") "") >> + (("CodeClimate.*\n") "")) > > Okay.