guix_mirror_bot pushed a commit to branch master
in repository guix.

commit c7f8e752ab6fb1f768f9dd8b296c47823f37308d
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Jul 4 00:37:25 2025 +0100

    gnu: Add python-py-bobyqa.
    
    * gnu/packages/maths.scm (python-py-bobyqa): New variable.
    
    Change-Id: If5dcb5d7ecef4d5937c278f405b2ba93d2a02ec4
---
 gnu/packages/maths.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 550ca02b40..c0ea6ec5ff 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -4641,6 +4641,40 @@ bindings to almost all functions of PETSc.")
     ;; <https://github.com/dimpase/primecountpy/issues/16>.
     (license license:gpl2+)))
 
+(define-public python-py-bobyqa
+  (package
+    (name "python-py-bobyqa")
+    (version "1.5.0")
+    (source
+     (origin
+       (method git-fetch)               ;no tests in PyPI release
+       (uri (git-reference
+             (url "https://github.com/numericalalgorithmsgroup/pybobyqa";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0k9iapdlbp1k2ck1550ckw0y75f71gxzqkv4clz89ym4fwqwszv2"))))
+    (build-system pyproject-build-system)
+    (native-inputs
+     (list python-pytest
+           python-setuptools
+           python-wheel))
+    (propagated-inputs
+     (list python-numpy
+           python-pandas
+           python-scipy
+           python-setuptools))
+    (home-page "https://github.com/numericalalgorithmsgroup/pybobyqa";)
+    (synopsis "Derivative-free solver for general objective minimization")
+    (description
+     "Py-BOBYQA is a flexible package for solving bound-constrained general
+objective minimization, without requiring derivatives of the objective.  At
+its core, it is a Python implementation of the BOBYQA algorithm by Powell,but
+Py-BOBYQA has extra features improving its performance on some problems.
+Py-BOBYQA is particularly useful when evaluations of the objective function
+are expensive and/or noisy.")
+    (license license:gpl3)))
+
 (define-public python-pyglm
   (package
     (name "python-pyglm")

Reply via email to