guix-commits
[Top][All Lists]
Advanced

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

01/02: gnu: Add ruby-niceogiri.


From: guix-commits
Subject: 01/02: gnu: Add ruby-niceogiri.
Date: Sat, 2 Jul 2022 12:02:55 -0400 (EDT)

raghavgururajan pushed a commit to branch master
in repository guix.

commit d633207a7069fcc44d41dc008009cfb5408169c0
Author: Stephen Paul Weber <singpolyma@singpolyma.net>
AuthorDate: Sat Jul 2 11:33:29 2022 -0400

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

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 24aec2a819..24f2b49dec 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -12921,3 +12921,34 @@ any unhandled exceptions.")
     (description "Braintree provides resources and tools for developers to
 integrate Braintree's global payments platform.")
     (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")      ;rspec
+              ((".*dependency.*bundler.*") "\n")
+              ((".*dependency.*guard-rspec.*") "\n")))))))
+   (native-inputs
+    (list ruby-rspec
+           ruby-yard))
+   (propagated-inputs (list ruby-nokogiri))
+   (home-page "https://github.com/benlangfeld/Niceogiri";)
+   (synopsis "Supplement for Nokogiri")
+   (description "Niceogiri provides wrappers and helpers for XML manipulation
+using Nokogiri.")
+   (license license:expat)))



reply via email to

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