From c776b6ba8e3fc825d60cb292f18dcdf4eb38d95f Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sun, 26 Sep 2021 23:06:34 -0400 Subject: gnu: Add python-pytest-assume. * gnu/packages/check.scm (python-pytest-assume): New variable. --- gnu/packages/check.scm | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 287f633c58..9044d65252 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -35,7 +35,7 @@ ;;; Copyright © 2020 Josh Marshall ;;; Copyright © 2020 Vinicius Monego ;;; Copyright © 2020 Tanguy Le Carrour -;;; Copyright © 2020 Maxim Cournoyer +;;; Copyright © 2020, 2021 Maxim Cournoyer ;;; Copyright © 2021 Hugo Lecomte ;;; ;;; This file is part of GNU Guix. @@ -1114,6 +1114,39 @@ and many external plugins.") ("python-py" ,python2-py) ("python-wcwidth" ,python2-wcwidth)))))) +(define-public python-pytest-assume + (package + (name "python-pytest-assume") + (version "2.4.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-assume" version)) + (sha256 + (base32 "0zilqsy9fcjr6l2f9qzfxpkp40h24csnjm5mifhpmzb0fr9r0glq")))) + (build-system python-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) + (propagated-inputs + `(("python-pytest" ,python-pytest) + ("python-six" ,python-six))) + (home-page "https://github.com/astraw38/pytest-assume") + (synopsis "Pytest plugin that allows multiple failures per test") + + (description "This package provides a Pytest plugin that allows multiple +failures per test. This is a fork from pytest-expect which includes the +following improvements: +@itemize +@item showlocals support (the Pytest option) +@item global usage support (a fixture is not required) +@item output refinements and tweaks. +@end itemize") + (license license:expat))) + (define-public python-pytest-cov (package (name "python-pytest-cov") -- cgit v1.2.3