all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#67384] [PATCH] gnu: Add perl-math-sigfig.
@ 2023-11-22 19:21 Rikard Nordgren
  0 siblings, 0 replies; only message in thread
From: Rikard Nordgren @ 2023-11-22 19:21 UTC (permalink / raw)
  To: 67384; +Cc: hrn

* gnu/packages/perl-maths.scm (perl-math-sigfig): New variable.

Change-Id: Ied8b274cb68a8b1e0afb436552679a04d600e04e
---
 gnu/packages/perl-maths.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/perl-maths.scm b/gnu/packages/perl-maths.scm
index b317e3c1cf..df01d3ac9a 100644
--- a/gnu/packages/perl-maths.scm
+++ b/gnu/packages/perl-maths.scm
@@ -21,6 +21,7 @@ (define-module (gnu packages perl-maths)
   #:use-module (guix packages)
   #:use-module (guix download)
   #:use-module (guix build-system perl)
+  #:use-module (guix git-download)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages perl-check))
 
@@ -48,6 +49,31 @@ (define-public perl-math-cephes
 150 functions of the Cephes math library.")
     (license license:perl-license)))
 
+(define-public perl-math-sigfigs
+  (package
+    (name "perl-math-sigfigs")
+    (version "1.21")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/SBECK-github/Math-SigFigs")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "11fzn559s77cq82yddq4bgqjfan2c85cn42l2p30gnrnqrmsbg0l"))))
+    (build-system perl-build-system)
+    (native-inputs (list perl-test-inter perl-test-pod perl-test-pod-coverage
+                         perl-file-find-rule))
+    (home-page "https://metacpan.org/pod/Math::SigFigs")
+    (synopsis "Math with correct handling of significant figures")
+    (description
+     "@code{Math::SigFigs} contains routines for correct handling of
+significant figures.  It can handle real number or exponentials correctly.
+It can count the number of significant figures, format a number to a given
+number of significant figures, and do basic arithmetic.")
+    (license license:perl-license)))
+
 (define-public perl-math-matrixreal
   (package
     (name "perl-math-matrixreal")

base-commit: 23627b1706af25a0a30b96b9169a3495279aff1b
-- 
2.34.1





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-22 19:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-22 19:21 [bug#67384] [PATCH] gnu: Add perl-math-sigfig Rikard Nordgren

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.