[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50018] [PATCH 03/19] gnu: Add python-pytest-subtests.
From: |
Vinicius Monego |
Subject: |
[bug#50018] [PATCH 03/19] gnu: Add python-pytest-subtests. |
Date: |
Wed, 11 Aug 2021 23:44:55 +0000 |
* gnu/packages/python-check.scm (python-pytest-subtests): New variable.
---
gnu/packages/python-check.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 038ca177af..0eef7ba8e5 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -576,6 +576,34 @@ in Pytest.")
settings.")
(license license:expat)))
+(define-public python-pytest-subtests
+ (package
+ (name "python-pytest-subtests")
+ (version "0.5.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-subtests" version))
+ (sha256
+ (base32 "087i03nmkmfnrpc7mmizvr40ijnjw4lfxc22rnk8jk6s1szy9lav"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "python" "-m" "pytest")))))))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)
+ ("python-setuptools-scm" ,python-setuptools-scm)))
+ (home-page "https://github.com/pytest-dev/pytest-subtests")
+ (synopsis "Unittest subTest() support and subtests fixture")
+ (description "This Pytest plugin provides unittest @code{subTest()}
+support and @code{subtests} fixture.")
+ (license license:expat)))
+
(define-public python-pytest-vcr
;; This commit fixes integration with pytest-5
(let ((commit "4d6c7b3e379a6a7cba0b8f9d20b704dc976e9f05")
--
2.30.2
- [bug#50018] [PATCH 00/19] Update Celery to version 5., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 01/19] gnu: Add python-click-repl., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 02/19] gnu: Add python-click-didyoumean., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 04/19] gnu: python-aws-sam-translator: Update to 1.38.0., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 03/19] gnu: Add python-pytest-subtests.,
Vinicius Monego <=
- [bug#50018] [PATCH 05/19] gnu: python-aws-sam-translator: Change source for tests., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 07/19] gnu: python-cfn-lint: Respect #:tests?., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 06/19] gnu: python-cfn-lint: Update to 0.53.0., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 08/19] gnu: python-moto: Update to 2.2.2., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 13/19] gnu: python-kombu: Update to 5.1.0., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 16/19] gnu: python-celery: Enable tests., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 15/19] gnu: python-celery: Update to 5.1.2., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 09/19] gnu: python-moto: Respect #:tests?., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 12/19] gnu: python-amqp: Update to 5.0.6., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 10/19] gnu: python-vine: Update to 5.0.0., Vinicius Monego, 2021/08/11