@@ 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")