[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
55/204: gnu: Add python-pytest-enabler.
From: |
guix-commits |
Subject: |
55/204: gnu: Add python-pytest-enabler. |
Date: |
Wed, 20 Apr 2022 02:03:19 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit f1629c8aad458ba3301d23f2c9c7a5f540fda427
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Apr 6 00:28:29 2022 -0400
gnu: Add python-pytest-enabler.
* gnu/packages/check.scm (python-pytest-enabler): New variable.
---
gnu/packages/check.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 135fd671a2..8ed53f7e27 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -2225,6 +2225,36 @@ failures.")
(description "Enable installed pytest plugins")
(license license:expat))))
+(define-public python-pytest-enabler
+ (package/inherit python-pytest-enabler-bootstrap
+ (arguments
+ (substitute-keyword-arguments
+ (package-arguments python-pytest-enabler-bootstrap)
+ ((#:tests? _ #f)
+ #t)
+ ((#:phases phases #~%standard-phases)
+ #~(modify-phases #$phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "-m" "pytest" "-vv" "tests"))))))))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs python-pytest-enabler-bootstrap)
+ (replace "python-jaraco-context-bootstrap" python-jaraco-context)
+ (replace "python-jaraco-functools-bootstrap" python-jaraco-functools)))
+ (native-inputs
+ (modify-inputs (package-native-inputs python-pytest-enabler-bootstrap)
+ (append python-pytest
+ python-pytest-black
+ python-pytest-checkdocs
+ python-pytest-cov
+ python-pytest-flake8
+ python-pytest-mypy
+ python-types-toml)))
+ (properties (alist-delete 'hidden?
+ (package-properties
+ python-pytest-enabler-bootstrap)))))
+
(define-public python-pytest-freezegun
(package
(name "python-pytest-freezegun")
- 94/204: gnu: pylint: Run tests in parallel., (continued)
- 94/204: gnu: pylint: Run tests in parallel., guix-commits, 2022/04/20
- 95/204: gnu: python-trio: Update to 0.20.0., guix-commits, 2022/04/20
- 98/204: gnu: python-greenlet: Update to 1.1.2., guix-commits, 2022/04/20
- 103/204: gnu: python-jupyter-core: Update to 4.10.0., guix-commits, 2022/04/20
- 105/204: gnu: python-ipykernel: Update to 6.13.0., guix-commits, 2022/04/20
- 112/204: gnu: Add texlive-lm-math., guix-commits, 2022/04/20
- 144/204: gnu: python-falcon: Update to 3.1.0., guix-commits, 2022/04/20
- 43/204: gnu: Add python-pytest-freezegun., guix-commits, 2022/04/20
- 45/204: gnu: Add python-path-bootstrap., guix-commits, 2022/04/20
- 46/204: gnu: Add python-pip-run-bootstrap., guix-commits, 2022/04/20
- 55/204: gnu: Add python-pytest-enabler.,
guix-commits <=
- 57/204: gnu: Add python-pip-run., guix-commits, 2022/04/20
- 61/204: gnu: python-faker: Update to 13.3.4 and honor TESTS?., guix-commits, 2022/04/20
- 50/204: gnu: Add python-types-docutils., guix-commits, 2022/04/20
- 66/204: gnu: Add python-xdoctest., guix-commits, 2022/04/20
- 69/204: gnu: python-pathpy: Deprecate by python-path., guix-commits, 2022/04/20
- 78/204: gnu: Add python-afdko., guix-commits, 2022/04/20
- 81/204: gnu: Add python-skia-pathops., guix-commits, 2022/04/20
- 84/204: gnu: Add python-ufo2ft., guix-commits, 2022/04/20
- 99/204: gnu: Add python-pytest-forked-next., guix-commits, 2022/04/20
- 107/204: gnu: python-ipyparallel: Update to 8.2.1., guix-commits, 2022/04/20