Subject: [bug#60835] [PATCH v4 3/8] gnu: Add cl-statistics.

From: jgart <[email-masked]>
Date: Wed, 18 Jan 2023 17:15:45 -0600

* gnu/packages/lisp-xyz.scm (cl-statistics, sbcl-statistics): New
variables.
---
 gnu/packages/lisp-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 90385e115a..ff5c8a10e8 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -26767,6 +26767,45 @@ (define-public cl-cephes
 #;(define-public ecl-cephes
   (sbcl-package->ecl-package sbcl-cephes))
 
+(define-public sbcl-statistics
+  (let ((commit "94fc87a2bf81355a40ce3730b4ed77710ecfabaf")
+        (revision "0"))
+    (package
+      (name "sbcl-statistics")
+      (version (git-version "1.1.1" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/Lisp-Stat/statistics")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0is69w6iwh4hyzc5ndgb3i2331f677sa7kw5wy8pmx6hawbkgyir"))))
+      (build-system asdf-build-system/sbcl)
+      (native-inputs (list sbcl-clunit2))
+      (inputs
+        (list sbcl-alexandria
+              sbcl-anaphora
+              sbcl-distributions
+              sbcl-let-plus
+              sbcl-numerical-utilities
+              sbcl-conduit-packages))
+      ;; https://github.com/Lisp-Stat/statistics/issues/2
+      (home-page "https://lisp-stat.dev/docs/")
+      (synopsis "Statistical functions in Common Lisp")
+      (description "This package provides a consolidation of Common
+      Lisp statistics
+libraries.")
+      (license (list license:ms-pl license:expat)))))
+
+(define-public cl-statistics
+  (sbcl-package->cl-source-package sbcl-statistics))
+
+;; https://github.com/Lisp-Stat/cephes.cl/issues/2 
+#;(define-public ecl-statistics
+  (sbcl-package->ecl-package sbcl-statistics))
+
 (define-public sbcl-seria
   (let ((commit "2bba04dc6abdc0b85a511cae9c460942e2ad305a")
         (revision "0"))
-- 
2.38.1