From d3711c6c2ea62497f5a857b7d2e4a33ecad11a83 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 17 Jun 2025 14:52:03 +0100 Subject: [PATCH] gnu: Add python-dynesty. * gnu/packages/statistics.scm (python-dynesty): New variable. Change-Id: I8ddbc66c82136fc6c0470cc3cd313f3832cd24d6 --- gnu/packages/statistics.scm | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index e966dce59739e72ad1fc3890713b809bf96c5772..b295aaf0ec3551944b7404b05276fbcc2b7ee60c 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -465,6 +465,46 @@ publication-quality data plots. A large amount of 3rd-party packages are available, greatly increasing its breadth and scope.") (license license:gpl3+))) +(define-public python-dynesty + (package + (name "python-dynesty") + (version "2.1.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "dynesty" version)) + (sha256 + (base32 "04fkbixkfyqlr8zjky177bmqxqd19xcicqx3r1mhhy0z7942sx7x")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + #~(list "--numprocesses" (number->string (parallel-job-count)) + ;; To run a full tests suite takes a few hours on 16 threads, + ;; skip slow tests. + "-m" "not slow" + ;; Tests fail with error: (liwork>=max(1,10*n)||liwork==-1) + ;; failed for 10th keyword liwork: dsyevr:liwork= + "--deselect=tests/test_ellipsoid.py::test_bounding_crazy[1]" + "--deselect=tests/test_plot.py::test_gaussian[True-False-1-multi]"))) + (native-inputs + (list python-pytest + python-pytest-xdist + python-setuptools + python-wheel)) + (propagated-inputs + (list python-h5py + python-matplotlib + python-numpy + python-scipy + python-tqdm)) + (home-page "https://github.com/joshspeagle/dynesty") + (synopsis "Dynamic nested sampling computing Bayesian posteriors and evidences") + (description + "This package implements a Dynamic Nested Sampling for computing Bayesian +posteriors and evidences.") + (license license:expat))) + (define-public r-minimal (package (inherit r-with-tests) (name "r-minimal")