From 3731cc5012677e802b91fbf8af65d8b3eb26730f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 14 Feb 2025 22:11:21 +0000 Subject: gnu: Add python-mpsplines. * gnu/packages/python-science.scm (python-mpsplines): New variable. Change-Id: I1ae05c5bff783f7716e578bfc01699a10d13c337 --- gnu/packages/python-science.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index f7990bc9ea..679074c760 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") -- cgit v1.2.3