diff mbox series

[bug#50537,v2,01/27] gnu: Add ruby-sucker-punch

Message ID 20220427184633.94169-1-singpolyma@singpolyma.net
State Accepted
Headers show
Series [bug#50537,v2,01/27] gnu: Add ruby-sucker-punch | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Stephen Paul Weber April 27, 2022, 6:46 p.m. UTC
* gnu/packages/ruby.scm (ruby-sucker-punch): New variable.
---
 gnu/packages/ruby.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index acccc4d4c4..50d6f86943 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -12217,3 +12217,35 @@  functions for complex numbers.  The functions in this module accept integers,
 floating-point numbers or complex numbers as arguments.")
     (home-page "https://github.com/ruby/cmath")
     (license license:bsd-2)))
+
+(define-public ruby-sucker-punch
+  (package
+    (name "ruby-sucker-punch")
+    (version "2.0.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (rubygems-uri "sucker_punch" version))
+        (sha256
+          (base32
+            "008vv7gpv2nm5n1njzvabd3aagbywc240y23vifvq6plir53ybay"))))
+    (build-system ruby-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'extract-gemspec 'less-strict-dependencies
+           (lambda _
+             (substitute* "sucker_punch.gemspec"
+               (("1.0.0") "1.0"))
+             #t)))))
+    (propagated-inputs
+      `(("ruby-concurrent" ,ruby-concurrent)))
+    (native-inputs
+     `(("ruby-pry" ,ruby-pry)))
+    (synopsis
+      "Asynchronous processing library for Ruby")
+    (description
+      "Asynchronous processing library for Ruby")
+    (home-page
+      "https://github.com/brandonhilkert/sucker_punch")
+    (license license:expat)))