aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorStephen Paul Weber <singpolyma@singpolyma.net>2022-05-10 11:04:13 -0400
committerRaghav Gururajan <rg@raghavgururajan.name>2022-05-10 11:05:03 -0400
commit9d795fb8fd3feffe584462cdfe3869acee64d226 (patch)
tree73a63af2d34202b1c0a15c8cc5f8cea5608282f4 /gnu
parentdda07b2cbc9875b4a7ce290a867935313b2e88fd (diff)
downloadguix-9d795fb8fd3feffe584462cdfe3869acee64d226.tar.gz
guix-9d795fb8fd3feffe584462cdfe3869acee64d226.zip
gnu: Add ruby-money.
* gnu/packages/ruby.scm (ruby-money): New variable. Signed-off-by: Raghav Gururajan <rg@raghavgururajan.name>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/ruby.scm38
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 76dd78709f..cda56bf6d6 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -12538,3 +12538,41 @@ encoding.")
language. Dhall is a memory safe and non-Turing-complete configuration
language.")
(license license:gpl3+)))
+
+(define-public ruby-money
+ (package
+ (name "ruby-money")
+ (version "6.16.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "money" version))
+ (sha256
+ (base32 "0jkmsj5ymadik7bvl670bqwmvhsdyv7hjr8gq9z293hq35gnyiyg"))))
+ (build-system ruby-build-system)
+ (arguments
+ ;; No rakefile.
+ `(#:tests? #f))
+ (propagated-inputs
+ (list
+ ruby-i18n))
+ (home-page "https://rubymoney.github.io/money/")
+ (synopsis "Currency conversion library for Ruby")
+ (description "RubyMoney provides a library for dealing with money and
+currency conversion. Its features are:
+@itemize
+@item
+Provides a Money class which encapsulates all information about a certain
+amount of money, such as its value and its currency.
+@item
+Provides a Money::Currency class which encapsulates all information about a
+monetary unit.
+@item
+Represents monetary values as integers, in cents; so avoids floating point
+rounding errors.
+@item
+Represents currency as Money::Currency instances providing a high level of
+flexibility.
+@item Provides APIs for exchanging money from one currency to another.
+@end itemize")
+ (license license:expat)))