diff mbox series

[bug#50537,v2,02/27] gnu: Add ruby-niceogiri.

Message ID 20220427184633.94169-2-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-niceogiri): New variable.
---
 gnu/packages/ruby.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 50d6f86943..6547a2d35d 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -12249,3 +12249,37 @@  floating-point numbers or complex numbers as arguments.")
     (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)))