diff options
author | Stephen Paul Weber <singpolyma@singpolyma.net> | 2022-06-30 10:22:49 -0400 |
---|---|---|
committer | Raghav Gururajan <rg@raghavgururajan.name> | 2022-06-30 10:26:37 -0400 |
commit | aeea9a31111850283d699291cee51149fbe0fbcc (patch) | |
tree | fd8af073f2b1370e4cf9c17105d7606d9dcd6a57 /gnu/packages | |
parent | c6d792f34cc1af122d9089451a2b784d405d1923 (diff) | |
download | guix-aeea9a31111850283d699291cee51149fbe0fbcc.tar.gz |
gnu: Add ruby-braintree.
* gnu/packages/ruby.scm (ruby-braintree): New variable. Signed-off-by: Raghav Gururajan <rg@raghavgururajan.name>
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/ruby.scm | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 7c55357e10..24aec2a819 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -12876,3 +12876,48 @@ exceptions as they are raised.") (description "Pry-Rescue allows you to wrap code, to open a pry session at any unhandled exceptions.") (license license:expat))) + +(define-public ruby-braintree + (package + (name "ruby-braintree") + (version "4.7.0") + (source + (origin + (method git-fetch) + ;; Download from GitHub because the rubygems version does not contain + ;; Rakefile. + (uri (git-reference + (url "https://github.com/braintree/braintree_ruby") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1gixqf9vsjsyrk45lf9xcz0ggdydpgsk8ahknd27bbigz1j4pdf6")))) + (build-system ruby-build-system) + (arguments + `(#:test-target "test:unit" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'less-strict-dependencies + (lambda _ + (substitute* "Gemfile" + (("gem \"libxml-ruby\", \"3.2.0\"") + "gem \"libxml-ruby\", \"~> 3.0.0\"") + (("gem \"rspec\", \"3.9.0\"") + "gem \"rspec\", \"~> 3.8.0\"") + (("gem \"rubocop\", \"~>1.12.0\"") + "gem \"rubocop\", \"~> 1.10.0\""))))))) + (native-inputs + (list ruby-libxml + ruby-pry + ruby-rake + ruby-rspec + ruby-rubocop + ruby-webrick)) + (propagated-inputs + (list ruby-builder + ruby-rexml)) + (home-page "https://www.braintreepayments.com/") + (synopsis "Integration access to the Braintree Gateway") + (description "Braintree provides resources and tools for developers to +integrate Braintree's global payments platform.") + (license license:expat))) |