From 8245801e613dfb7cb4620e13c7feebbb168015fa Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 4 Nov 2025 10:46:50 +0000 Subject: [PATCH] gnu: Add python-pytest-split. * gnu/packages/python-check.scm (python-pytest-split): New variable. Change-Id: If5137abe8d1dd5f9cb6a8f93bd7e740cf5fcec94 --- gnu/packages/python-check.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index d215d8788e8..0eeeab24aed 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -3679,6 +3679,39 @@ unexpectedly.") through Python's socket interface") (license license:expat))) +(define-public python-pytest-split + (package + (name "python-pytest-split") + (version "0.10.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jerry-git/pytest-split") + (commit version))) + (file-name (git-file-name name version)) + (sha256 (base32 "1w42zkw22h0ydfhbjdjp93frbrzi1rlkr17ifb9kavcbv7kfqxfl")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-pytest-config + (lambda _ + (substitute* "pyproject.toml" + (("--cov.*") "") + (("--no-cov-on-fail.*") ""))))))) + (native-inputs + (list python-poetry-core + python-pytest-bootstrap)) + (home-page "https://jerry-git.github.io/pytest-split/") + (synopsis "Pytest plugin to split the test suite to equally sized sub sutes") + (description + "This package provides Pytest plugin which splits the test suite to equally +sized sub suites based on +test execution time.") + (license license:expat))) + (define-public python-pytest-steps (package (name "python-pytest-steps")