diff options
| author | Vinicius Monego <monego@posteo.net> | 2025-08-29 21:21:14 -0300 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-30 15:16:51 +0000 |
| commit | 05f6e5887e0b71820e51912f3efe9d4fcf974c4c (patch) | |
| tree | d21021662605af8c4eff782d904101d027c94e73 /gnu/packages/python-science.scm | |
| parent | 9186b39eea390dc0c24b21b3b4ba97df5b21ba8b (diff) | |
gnu: Add python-iminuit.
* gnu/packages/python-science.scm (python-iminuit): New variable.
Change-Id: I65da990dda737fd744e22d83007c736a92a8ec0a
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-science.scm')
| -rw-r--r-- | gnu/packages/python-science.scm | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index f7168a7786b..6fc41c743f4 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -75,6 +75,7 @@ #:use-module (gnu packages graphviz) #:use-module (gnu packages image) #:use-module (gnu packages image-processing) + #:use-module (gnu packages jupyter) #:use-module (gnu packages machine-learning) #:use-module (gnu packages maths) #:use-module (gnu packages mpi) @@ -1595,6 +1596,58 @@ Features: @end itemize") (license license:bsd-2))) +(define-public python-iminuit + (package + (name "python-iminuit") + (version "2.31.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "iminuit" version)) + (sha256 + (base32 "066y0khk5bv56jv0p5bkkmya3rwijskz9yq9ch3jlgfqzzqh9q6m")))) + (build-system pyproject-build-system) + (arguments + (list #:test-flags #~(list "-k" "not test_interactive_pyside6"))) + (native-inputs + (list cmake-minimal + pybind11 + python-annotated-types + python-boost-histogram + python-ipykernel + python-jacobi + python-joblib + python-pydantic-2 + python-pytest + python-resample + python-scikit-build-core + python-tabulate)) + ;; All inputs besides python-numpy are optional but greatly improve + ;; the package. + ;; FIXME: Numba segfaults Python in some tests. + (propagated-inputs + (list python-ipywidgets + python-matplotlib + ;; python-numba + ;; python-numba-stats + python-numpy + python-scipy + python-unicodeitplus)) + (home-page "https://github.com/scikit-hep/iminuit") + (synopsis "Python interface for MINUIT2") + (description + "@code{iminuit} is a Jupyter-friendly Python interface for the @code{Minuit2} +C++ library maintained by CERN's ROOT team. + +Minuit was designed to optimize statistical cost functions, for +maximum-likelihood and least-squares fits. It provides the best-fit +parameters and error estimates from likelihood profile analysis. + +Optionally, Iminuit supports SciPy minimizers as alternatives to Minuit's +MIGRAD algorithm and Numba accelerated functions.") + ;; Python interface under MIT Expat, Iminuit C++ library under LGPL v2.1+. + (license (list license:expat license:lgpl2.1+)))) + (define-public python-jacobi (package (name "python-jacobi") |
