~ruther/guix-local

fdf6b5a4af5b853242ead9988d84162ba9d8794a — Ghislain Vaillant 5 months ago 157f2e8
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>
1 files changed, 26 insertions(+), 0 deletions(-)

M gnu/packages/python-check.scm
M gnu/packages/python-check.scm => gnu/packages/python-check.scm +26 -0
@@ 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")