[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
12/27: gnu: python-pytest: Use G-expression.
From: |
guix-commits |
Subject: |
12/27: gnu: python-pytest: Use G-expression. |
Date: |
Fri, 9 Sep 2022 11:08:14 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 5f40f663f4b19ec2081def6813f499b54ea983bc
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Mon Aug 15 21:39:25 2022 +0200
gnu: python-pytest: Use G-expression.
* gnu/packages/check.scm (python-pytest)[arguments]: Use gexp. While at it,
refer to THIS-PACKAGE instead of the version field.
---
gnu/packages/check.scm | 48 +++++++++++++++++++++++++-----------------------
1 file changed, 25 insertions(+), 23 deletions(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 0bce93fc79..7d131e55b5 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -984,27 +984,29 @@ standard library.")
"0f8c31v5r2kgjixvy267n0nhc4xsy65g3n9lz1i1377z5pn5ydjg"))))
(build-system python-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'build 'pretend-version
- ;; The version string is usually derived via setuptools-scm, but
- ;; without the git metadata available, the version string is set to
- ;; '0.0.0'.
- (lambda _
- (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" ,version)))
- (replace 'check
- (lambda* (#:key (tests? #t) #:allow-other-keys)
- (setenv "TERM" "dumb") ;attempt disabling markup tests
- (if tests?
- (invoke "pytest" "-vv" "-k"
- (string-append
- ;; This test involves the /usr directory, and fails.
- " not test_argcomplete"
- ;; These test do not honor the isatty detection and
- ;; fail.
- " and not test_code_highlight"
- " and not test_color_yes"))
- (format #t "test suite not run~%")))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'pretend-version
+ ;; The version string is usually derived via setuptools-scm, but
+ ;; without the git metadata available, the version string is set to
+ ;; '0.0.0'.
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION"
+ #$(package-version this-package))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (setenv "TERM" "dumb") ;attempt disabling markup tests
+ (if tests?
+ (invoke "pytest" "-vv" "-k"
+ (string-append
+ ;; This test involves the /usr directory, and fails.
+ " not test_argcomplete"
+ ;; These test do not honor the isatty detection and
+ ;; fail.
+ " and not test_code_highlight"
+ " and not test_color_yes"))
+ (format #t "test suite not run~%")))))))
(propagated-inputs
(list python-attrs-bootstrap
python-iniconfig
@@ -1013,8 +1015,8 @@ standard library.")
python-py
python-tomli))
(native-inputs
- (list ;; Tests need the "regular" bash since 'bash-final' lacks `compgen`.
- bash
+ ;; Tests need the "regular" bash since 'bash-final' lacks `compgen`.
+ (list bash
python-hypothesis
python-nose
python-pytest-bootstrap
- branch core-updates updated (8ea970a945 -> 5fcbbe37c0), guix-commits, 2022/09/09
- 01/27: gnu: QPDF: Fix build with grep 3.8., guix-commits, 2022/09/09
- 02/27: gnu: inkscape: Fix build with Poppler 22.9.0., guix-commits, 2022/09/09
- 09/27: gnu: python-exceptiongroup: Disable tests., guix-commits, 2022/09/09
- 10/27: gnu: python-hypothesis: Update to 6.54.5., guix-commits, 2022/09/09
- 13/27: gnu: python-coverage: Update to 6.4.3., guix-commits, 2022/09/09
- 12/27: gnu: python-pytest: Use G-expression.,
guix-commits <=
- 03/27: gnu: gjs: Update to 1.73.2., guix-commits, 2022/09/09
- 04/27: gnu: serf: Build with the default scons., guix-commits, 2022/09/09
- 18/27: gnu: Remove python-pytest-forked-next., guix-commits, 2022/09/09
- 21/27: gnu: python-pytest-mock: Update to 3.8.2., guix-commits, 2022/09/09
- 07/27: gnu: python-pytest: Update to 7.1.3., guix-commits, 2022/09/09
- 16/27: gnu: python-pytest-xdist: Add extra test input, don't propagate pytest., guix-commits, 2022/09/09
- 17/27: gnu: Remove python-pytest-xdist-next., guix-commits, 2022/09/09
- 25/27: gnu: SQLite: Update to 3.39.3., guix-commits, 2022/09/09
- 19/27: gnu: python-fonttools: Update to 4.37.1., guix-commits, 2022/09/09
- 20/27: gnu: python-parameterized: Update to 0.8.1., guix-commits, 2022/09/09