Subject: [PATCH 03/46] gnu: Add python-kalepy.

From: Sharlatan Hellseher <[email-masked]>
Date: Sat, 23 Nov 2024 19:50:50 +0000

* gnu/packages/statistics.scm (python-kalepy): New variable.

Change-Id: I1bdaedd07f6149eeffe115eb30c17035a0ed75fd
---
 gnu/packages/statistics.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 7089030fcc..2f48598f87 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -22,6 +22,7 @@
 ;;; Copyright © 2023 Troy Figiel <[email-masked]>
 ;;; Copyright © 2024 Vinicius Monego <[email-masked]>
 ;;; Copyright © 2024 Nicolas Graves <[email-masked]>
+;;; Copyright © 2024 Sharlatan Hellseher <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2385,6 +2386,37 @@ (define-public python-patsy
     ;; and is covered by the PSFL.
     (license (list license:bsd-2 license:psfl))))
 
+(define-public python-kalepy
+  (package
+    (name "python-kalepy")
+    (version "1.4.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "kalepy" version))
+       (sha256
+        (base32 "1a1d98vjkjs8zwx4hdss3gv67jyf25mmsrdc5qi8hpxminkizb6w"))))
+    (build-system pyproject-build-system)
+    (native-inputs
+     (list python-pytest
+           python-setuptools
+           python-wheel))
+    (propagated-inputs
+     (list python-matplotlib
+           python-numba
+           python-numpy
+           python-scipy
+           python-six))
+    (home-page "https://github.com/lzkelley/kalepy")
+    (synopsis "Kernel Density Estimation (KDE) and sampling")
+    (description
+     "This package performs KDE operations on multidimensional data to
+calculate estimated PDFs (probability distribution functions), and resample
+new data from those PDFs.")
+    ;; MIT   - setup.py
+    ;; GPL3+ - LICENSE
+    (license (list license:gpl3+ license:expat))))
+
 (define-public python-lifelines
   (package
     (name "python-lifelines")
-- 
2.46.0