guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: Add ruby-braintree.


From: guix-commits
Subject: branch master updated: gnu: Add ruby-braintree.
Date: Thu, 30 Jun 2022 10:29:22 -0400

This is an automated email from the git hooks/post-receive script.

raghavgururajan pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new aeea9a3111 gnu: Add ruby-braintree.
aeea9a3111 is described below

commit aeea9a31111850283d699291cee51149fbe0fbcc
Author: Stephen Paul Weber <singpolyma@singpolyma.net>
AuthorDate: Thu Jun 30 10:22:49 2022 -0400

    gnu: Add ruby-braintree.
    
    * gnu/packages/ruby.scm (ruby-braintree): New variable.
    
    Signed-off-by: Raghav Gururajan <rg@raghavgururajan.name>
---
 gnu/packages/ruby.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]