guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 23b3edba9d9d559d6dca0e98a26b9cacbb59281b
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Mon Jul 21 15:54:39 2025 +0100

    gnu: Add python-mcfit.
    
    * gnu/packages/machine-learning.scm (python-mcfit): New variable.
    
    Change-Id: I4927e8a4d5b0424265300e3496b31c0ba469c0bc
---
 gnu/packages/machine-learning.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/machine-learning.scm 
b/gnu/packages/machine-learning.scm
index 54bc87dfd8..6a24986701 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -433,6 +433,42 @@ machine learning algorithms based on GPs.")
      (list python))
     (synopsis "Python bindings of libSVM")))
 
+(define-public python-mcfit
+  ;; PyPI variant fails during compile-bytecode phase: "IndentationError:
+  ;; expected an indented block after function definition on line 10
+  ;; (mkfit.py, line 15)".
+  ;; GitHub provides no release tags, use the latest commit from the master
+  ;; branch.
+  ;; See: <https://github.com/eelregit/mcfit/issues/5>.
+  (let ((commit "be3a5cf9c474e16875126adcd35ba785fb781ebb")
+        (revision "0"))
+    (package
+      (name "python-mcfit")
+      (version (git-version "0.0.22" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+                (url "https://github.com/eelregit/mcfit";)
+                (commit commit)))
+         (sha256
+          (base32 "120ybwhrqpn9a9q96m6l8pw8a7cdz705vzqn3s87wnffa8nslbsi"))))
+      (build-system pyproject-build-system)
+      (native-inputs
+       (list python-pytest
+             python-setuptools
+             python-wheel))
+      (propagated-inputs
+       (list python-mpmath
+             python-numpy
+             python-scipy))
+      (home-page "https://github.com/eelregit/mcfit";)
+      (synopsis "Multiplicatively convolutional fast integral transforms")
+      (description
+       "This package provides multiplicatively convolutional fast integral
+transforms.")
+      (license license:gpl3+))))
+
 (define-public python-ml-collections
   (package
     (name "python-ml-collections")

Reply via email to