Subject: [PATCH v2 07/27] gnu: Add ruby-promise.rb.

From: Stephen Paul Weber <[email-masked]>
Date: Wed, 27 Apr 2022 13:46:13 -0500

* gnu/packages/ruby.scm (ruby-promise.rb): New variable.
---
 gnu/packages/ruby.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 9b4e8c5311..691317559e 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -12423,3 +12423,36 @@ plus extensible, lightweight validation and coercion.")
     (home-page
       "https://github.com/tomdalling/value_semantics")
     (license license:expat)))
+
+(define-public ruby-promise.rb
+  (package
+    (name "ruby-promise.rb")
+    (version "0.7.4")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (rubygems-uri "promise.rb" version))
+        (sha256
+          (base32
+            "0a819sikcqvhi8hck1y10d1nv2qkjvmmm553626fmrh51h2i089d"))))
+    (build-system ruby-build-system)
+    (arguments
+     `(#:test-target "spec"
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'extract-gemspec 'less-strict-dependencies
+           (lambda _
+             (substitute* "Rakefile"
+               (("if Gem.ruby_version.*") "if false\n"))
+             (substitute* "spec/spec_helper.rb"
+               ((".*devtools/spec_helper.*") "\n"))
+             #t)))))
+    (native-inputs
+     `(("ruby-rspec" ,ruby-rspec)
+       ("ruby-rspec-its" ,ruby-rspec-its)
+       ("ruby-awesome-print" ,ruby-awesome-print)
+       ("ruby-fuubar" ,ruby-fuubar)))
+    (synopsis "Promises/A+ for Ruby")
+    (description "Promises/A+ for Ruby")
+    (home-page "https://github.com/lgierth/promise.rb")
+    (license license:unlicense)))
-- 
2.30.2