diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-05-01 12:31:14 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-05-01 12:31:43 +0100 |
commit | 304f8bebbb3bc77b27be7ead82f2d79a10fe1843 (patch) | |
tree | f993055521c01703c4c179f356d0529a4183044d | |
parent | 4296310b59e8f04680c81ffa511adddfb9166897 (diff) | |
download | guix-304f8bebbb3bc77b27be7ead82f2d79a10fe1843.tar.gz guix-304f8bebbb3bc77b27be7ead82f2d79a10fe1843.zip |
gnu: python-pytest-mpi: Enable tests.
* gnu/packages/python-check.scm (python-pytest-mpi) [build-sytem]:
Switch to pyproject.
[propagated-inputs]: Remove python-pytest.
[native-inputs]: Add openmpi, python-pytest, python-setuptools,
python-sybil, and python-wheel.
Change-Id: I3f6b048e5e1b86048922b3d132a6d9c51e85f857
-rw-r--r-- | gnu/packages/python-check.scm | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 52ce51aa2e..a0909f6159 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -57,6 +57,7 @@ #:use-module (gnu packages docker) #:use-module (gnu packages jupyter) #:use-module (gnu packages maths) + #:use-module (gnu packages mpi) #:use-module (gnu packages openstack) #:use-module (gnu packages perl) #:use-module (gnu packages python-build) @@ -2515,12 +2516,21 @@ framework and makes it easy to undo any monkey patching. The fixtures are: (uri (pypi-uri "pytest-mpi" version)) (sha256 (base32 "1a954cai5lr327np5f38mg8gw91p4akx8m2z416wvwzq24swvcq9")))) - (build-system python-build-system) - (propagated-inputs (list python-pytest)) + (build-system pyproject-build-system) + (arguments + ;; See <https://github.com/aragilar/pytest-mpi/issues/4>. + (list #:test-flags #~(list "-p" "pytester"))) + (native-inputs + (list openmpi + python-pytest + python-setuptools + python-sybil + python-wheel)) (home-page "https://pytest-mpi.readthedocs.io") - (synopsis "Pytest plugin for working with MPI") - (description "This plugin for Pytest provides tools for running Python -tests with MPI and for testing code using MPI.") + (synopsis "Pytest plugin to collect information from tests") + (description + "@code{pytest_mpi} is a plugin for pytest providing some useful tools +when running tests under MPI, and testing MPI-related code.") (license license:bsd-3))) (define-public python-pytest-mpl |