From fdf6b5a4af5b853242ead9988d84162ba9d8794a Mon Sep 17 00:00:00 2001 From: Ghislain Vaillant Date: Thu, 13 Nov 2025 09:57:26 +0100 Subject: [PATCH] gnu: Add python-pytest-fail-slow. * gnu/packages/python-check.scm (python-pytest-fail-slow): New variable. Change-Id: I367efe9418a0792f9a1a64530fd1d83ef2cb992b Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-check.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 0eeeab24aed473528d77e0f9adb88fcfd5a14fb2..d0c350b929b591ecaa64cec3e1f67845b56f423f 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -2656,6 +2656,32 @@ advanced doctest support and enables the testing of reStructuredText files.") variables in the @file{pytest.ini} file.") (license license:expat))) +(define-public python-pytest-fail-slow + (package + (name "python-pytest-fail-slow") + (version "0.6.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jwodder/pytest-fail-slow") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0xabggi5s6p87dji1f8gg08fxp74g9h2nbj9x9n5vkzmf3hy5l7i")))) + (build-system pyproject-build-system) + ;; Each test waits 2-5s which delays completion. + ;; tests: 317 passed + (native-inputs + (list python-hatchling + python-pytest-bootstrap)) + (propagated-inputs + (list python-pluggy)) + (home-page "https://github.com/jwodder/pytest-fail-slow") + (synopsis "Fail tests that take too long to run") + (description "Pytest plugin for failing tests that take too long to run.") + (license license:expat))) + (define-public python-pytest-filter-subpackage (package (name "python-pytest-filter-subpackage")