Subject: [bug#50537] [PATCH 02/27] gnu: Add ruby-niceogiri.

From: Stephen Paul Weber <[email-masked]>
Date: Sat, 11 Sep 2021 22:05:07 -0500

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

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index bb2ace23d3..1eb6a0fb82 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -12520,3 +12520,37 @@ management, status tracking and reporting.")
     (home-page
       "https://github.com/brandonhilkert/sucker_punch")
     (license license:expat)))
+
+(define-public ruby-niceogiri
+  (package
+    (name "ruby-niceogiri")
+    (version "1.1.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (rubygems-uri "niceogiri" version))
+        (sha256
+          (base32
+            "1ha93211bc9cvh23s9w89zz7rq8irpf64ccd9arvg8v1sxg2798a"))))
+    (build-system ruby-build-system)
+    (arguments
+     `(#:test-target "spec"
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'extract-gemspec 'less-strict-dependencies
+           (lambda _
+             (substitute* "niceogiri.gemspec"
+               (("2.7") "3.8")
+               ((".*guard-rspec.*") "\n"))
+             #t)))))
+    (propagated-inputs
+      `(("ruby-nokogiri" ,ruby-nokogiri)))
+    (native-inputs
+     `(("ruby-rspec" ,ruby-rspec)
+       ("ruby-yard" ,ruby-yard)))
+    (synopsis "Make dealing with XML less painful")
+    (description
+      "Make dealing with XML less painful")
+    (home-page
+      "https://github.com/benlangfeld/Niceogiri")
+    (license license:expat)))
-- 
2.20.1