Subject: [bug#76480] [PATCH 44/51] gnu: Add python-mpsplines.

From: Sharlatan Hellseher <[email-masked]>
Date: Fri, 21 Feb 2025 21:49:38 +0000

* gnu/packages/python-science.scm (python-mpsplines): New variable.

Change-Id: I1ae05c5bff783f7716e578bfc01699a10d13c337
---
 gnu/packages/python-science.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 5a473b391b9..444081d2fa2 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -1106,6 +1106,39 @@ (define-public python-mpl-scatter-density
 density maps, both for interactive and non-interactive use.")
     (license license:bsd-2)))
 
+(define-public python-mpsplines
+  ;; No release on PyPI no git tag, use the latest commit.
+  (let ((commit "4967655fca8f4d0fc0685486c8ec2f1fe2f199d2")
+        (revision "0"))
+    (package
+      (name "python-mpsplines")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/jararias/mpsplines")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1wqfvjp1d6xzb07qnq72h76f0mx7za9pasgw3qp3ciaycmlkvdr3"))))
+      (build-system pyproject-build-system)
+      (arguments
+       (list #:tests? #f)) ; no tests provided
+      (native-inputs
+       (list python-setuptools
+             python-wheel))
+      (propagated-inputs
+       (list python-scipy
+             python-numpy
+             python-loguru))
+      (home-page "https://github.com/jararias/mpsplines")
+      (synopsis "Mean preserving interpolation with splines")
+      (description
+       "Thi package implements a functionality for mean-preserving
+interpolation of 1D data (for example, time series) with splines.")
+      (license license:bsd-3))))
+
 (define-public python-pyamg
   (package
     (name "python-pyamg")
-- 
2.47.1