summaryrefslogtreecommitdiff
path: root/gnu/packages/python-check.scm
diff options
context:
space:
mode:
authorGhislain Vaillant <ghislain.vaillant@inria.fr>2025-11-13 09:57:26 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-11-13 13:43:12 +0000
commitfdf6b5a4af5b853242ead9988d84162ba9d8794a (patch)
treefeddf2d7442687f46bd0e892824ce3e192f9d11a /gnu/packages/python-check.scm
parent157f2e8732157ecb5d3084afbbb8fb2891cbf342 (diff)
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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-check.scm')
-rw-r--r--gnu/packages/python-check.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 0eeeab24aed..d0c350b929b 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")