[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/09: gnu: Add python-libensemble.
From: |
guix-commits |
Subject: |
01/09: gnu: Add python-libensemble. |
Date: |
Sat, 11 May 2024 13:27:50 -0400 (EDT) |
monego pushed a commit to branch master
in repository guix.
commit 88c170a916ff069af427f4aa0d23cbfba3be7c19
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Sun Mar 31 21:40:54 2024 -0300
gnu: Add python-libensemble.
* gnu/packages/maths.scm (python-libensemble): New variable.
Change-Id: I45d4ba209af746f22f3f6c74a01063726478de0f
---
gnu/packages/maths.scm | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 93335d23f7..b7ebb2019c 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -839,6 +839,58 @@ LP/MIP solver is included in the package.")
(base32
"040sfaa9jclg2nqdh83w71sv9rc1sznpnfiripjdyr48cady50a2"))))))
+(define-public python-libensemble
+ (package
+ (name "python-libensemble")
+ (version "1.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "libensemble" version))
+ (sha256
+ (base32 "0ckmr04z7ai9mar58si0wzyyy8dnq6g89pg57mzmfz5mkbg4fbsa"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list ncurses
+ python-mock
+ python-mpi4py
+ python-pytest
+ python-pytest-cov
+ python-pytest-timeout))
+ (propagated-inputs (list python-numpy
+ python-psutil
+ python-pydantic-2
+ python-pyyaml
+ python-tomli))
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-psutil
+ (lambda _
+ (substitute* "setup.py"
+ (("psutil>=5.9.4") "psutil>=5.9.2"))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; These files require MPI and call subprocesses.
+ (delete-file
+ "libensemble/tests/unit_tests/test_executor.py")
+ (delete-file
+ "libensemble/tests/unit_tests/test_executor_gpus.py")
+ (setenv "TERM" "xterm")
+ ;; A very bad way to skip another MPI test.
+ (substitute* "libensemble/tests/run-tests.sh"
+ (("export UNIT_TEST_MPI_SUBDIR=.*")
+ "export UNIT_TEST_MPI_SUBDIR=''"))
+ ;; Run only unit tests, regression tests require MPI.
+ (invoke "bash" "libensemble/tests/run-tests.sh" "-u")))))))
+ (home-page "https://github.com/Libensemble/libensemble")
+ (synopsis "Toolkit for dynamic ensembles of calculations")
+ (description "@code{libensemble} is a complete toolkit for dynamic
+ensembles of calculations. It connects @code{deciders} to experiments or
+simulations.")
+ (license license:bsd-3)))
+
(define-public linasm
(package
(name "linasm")
- branch master updated (4eb1a5426b -> 43e790f4c9), guix-commits, 2024/05/11
- 03/09: gnu: toxic: Update to 0.15.1., guix-commits, 2024/05/11
- 04/09: gnu: weechat: Update to 4.2.2., guix-commits, 2024/05/11
- 06/09: gnu: python-hy: Update to 0.28.0., guix-commits, 2024/05/11
- 05/09: gnu: gplates: Update to 2.5., guix-commits, 2024/05/11
- 01/09: gnu: Add python-libensemble.,
guix-commits <=
- 07/09: gnu: python-scikit-rf: Update to 1.0.0., guix-commits, 2024/05/11
- 08/09: gnu: mlt: Update to 7.24.0., guix-commits, 2024/05/11
- 09/09: gnu: kdenlive: Update to 24.02.2., guix-commits, 2024/05/11
- 02/09: gnu: c-toxcore: Update to 0.2.19., guix-commits, 2024/05/11