Subject: bug#61711: closed (Re: [bug#61711] [PATCH] gnu: Add emacs-calc-currency.)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 23 Feb 2023 14:31:02 +0000

Your bug report

#61711: [PATCH] gnu: Add emacs-calc-currency.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
61711: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61711
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#61711] [PATCH] gnu: Add emacs-calc-currency.
From: Nicolas Goaziou <[email-masked]>
To: conses <[email-masked]>
Cc: [email-masked]
Date: Thu, 23 Feb 2023 15:30:41 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

conses <[email-masked]> writes:

> * gnu/packages/emacs-xyz.scm (emacs-calc-currency): New variable.

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou

Subject: [PATCH] gnu: Add emacs-calc-currency.
From: conses <[email-masked]>
To: [email-masked]
Date: Wed, 22 Feb 2023 16:35:52 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/emacs-xyz.scm (emacs-calc-currency): New variable.
---
 gnu/packages/emacs-xyz.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 3b12642bc9..f4c5caaa1a 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -6273,6 +6273,38 @@ (define-public emacs-literate-elisp
 Emacs can load Org files as Lisp source files directly.")
     (license license:gpl3+)))
 
+(define-public emacs-calc-currency
+  (let ((commit "7021d892ef38b01b875082aba4bae2517ce47ae6")
+        (revision "0"))
+    (package
+      (name "emacs-calc-currency")
+      (version (git-version "0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/jws85/calc-currency")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "0y4m0hasg4ji6zfis3088hq90pm9998lnnh8yg9g8yqqaqpfizp8"))))
+      (build-system emacs-build-system)
+      (propagated-inputs (list emacs-f))
+      (arguments
+       (list #:tests? #t
+             #:test-command #~(list "emacs" "--batch"
+                                    "-L" "."
+                                    "-l" "test/calc-currency-init.el"
+                                    "-l" "test/calc-currency-ecb-test.el"
+                                    "-l" "test/calc-currency-oxr-test.el"
+                                    ;; test/calc-currency-utils-test.el fails
+                                    "-f" "ert-run-tests-batch-and-exit")))
+      (home-page "https://github.com/jws85/calc-currency")
+      (synopsis "Add currency units to Emacs Calc")
+      (description "This package adds custom units to the Units Table in Emacs
+Calc by fetching exchange rates backends.")
+      (license license:gpl3+))))
+
 (define-public emacs-literate-calc-mode
   (let ((commit "ba7d22140a165b0fdd900a8d04916115ca6ab8ff")
         (revision "2"))
-- 
2.39.1

-- 
Best regards,
conses