@@ -12697,3 +12697,38 @@ Money objects.")
(home-page
"https://github.com/RubyMoney/monetize")
(license license:expat)))
+
+(define-public ruby-money-open-exchange-rates
+ (package
+ (name "ruby-money-open-exchange-rates")
+ (version "1.4.0")
+ (source
+ (origin
+ (method git-fetch)
+ ;; Download from GitHub because the rubygems version does not contain
+ ;; Rakefile.
+ (uri (git-reference
+ (url "https://github.com/spk/money-open-exchange-rates")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "11xwqli8snr19k48yh8h77sal5vxd4snzq9gxg08v61f0574m3gw"))))
+ (build-system ruby-build-system)
+ (propagated-inputs `(("ruby-money" ,ruby-money)))
+ (native-inputs
+ `(("ruby-minitest" ,ruby-minitest)
+ ("ruby-mocha" ,ruby-mocha)
+ ("ruby-timecop" ,ruby-timecop)
+ ("ruby-webmock" ,ruby-webmock)
+ ("ruby-monetize" ,ruby-monetize)
+ ("ruby-rake" ,ruby-rake)
+ ("ruby-rubocop" ,ruby-rubocop)))
+ (synopsis
+ "Calculates the exchange rate using published rates from open-exchange-rates")
+ (description
+ "This package provides a gem that calculates the exchange rate using
+published rates from open-exchange-rates. Compatible with the money gem.")
+ (home-page
+ "https://github.com/spk/money-open-exchange-rates")
+ (license license:expat)))