From 304f8bebbb3bc77b27be7ead82f2d79a10fe1843 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 1 May 2025 12:31:14 +0100 Subject: [PATCH] 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 --- gnu/packages/python-check.scm | 20 +++++++++++++++----- 1 file 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 . + (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