From b715e332d966aa8c83e3406fb90838395d0ae428 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 5 Dec 2025 15:26:27 +0000 Subject: [PATCH] gnu: Add python-pytest-run-parallel. * gnu/packages/python-check.scm (python-pytest-run-parallel): New variable. Change-Id: I680f2dcc11e3457a3b05ebe65852a7cfd6c2df53 Signed-off-by: Rutherther --- gnu/packages/python-check.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index b6afb4566c25f312b4f6342bb17cd2aeafdb3f15..ccadace622a772c293c38373c67edfcab797c003 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -3677,6 +3677,34 @@ eliminate flaky failures.") flaky tests, thereby improving the consistency of the test suite results.") (license license:expat))) +(define-public python-pytest-run-parallel + (package + (name "python-pytest-run-parallel") + (version "0.8.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest_run_parallel" version)) + (sha256 + (base32 "1qiz0kpjzqad9s5kr1rx4zxncy4zfghzb85cl7hjzca0j34agbji")))) + (build-system pyproject-build-system) + (native-inputs + (list python-pytest-bootstrap + python-pytest-order + python-pytest-xdist + python-setuptools)) + (home-page "https://github.com/Quansight-Labs/pytest-run-parallel") + (synopsis "Pytest plugin to run tests concurrently") + (description + "This package provides a simple pytest plugin to run tests concurrently. + The main goal of pytest-run-parallel is to discover thread-safety issues that +could exist when using C libraries, this is of vital importance after +@url{https://peps.python.org/pep-0703/, PEP703}, which provides a path for a +CPython implementation without depending on the Global Interpreter Lock (GIL), +thus allowing for proper parallelism in programs that make use of the CPython +interpreter.") + (license license:expat))) + ;; This is only used by python-sanic (define-public python-pytest-sanic (package