[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/08: gnu: python-pytest-runner: Update to 6.0.0.
From: |
guix-commits |
Subject: |
07/08: gnu: python-pytest-runner: Update to 6.0.0. |
Date: |
Sun, 18 Sep 2022 07:00:07 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 44d37eaae1d883b71e45c487ba0445f7cd3fa299
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sun Sep 18 02:20:49 2022 +0200
gnu: python-pytest-runner: Update to 6.0.0.
* gnu/packages/check.scm (python-pytest-runner): Update to 6.0.0.
---
gnu/packages/check.scm | 37 ++++++++++++++++++++++++-------------
1 file changed, 24 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index bdd7ad1f3e..794a3f4c22 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1210,28 +1210,39 @@ Python's @code{random.seed}.")
(define-public python-pytest-runner
(package
(name "python-pytest-runner")
- (version "5.2")
+ (version "6.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pytest-runner" version))
(sha256
(base32
- "0awll1bva5zy8cspsxcpv7pjcrdf5c6pf56nqn4f74vvmlzfgiwn"))))
+ "11dnhxnjmh4nf1j8rnvx944ha3wg8ggrgrwdcx4c7d19xmi57n5l"))))
(build-system python-build-system)
(arguments
- '(;; FIXME: The test suite requires 'python-flake8' and 'python-black',
- ;; but that introduces a circular dependency.
- #:tests? #f
- #:phases (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (if tests?
- (invoke "pytest" "-vv")
- (format #t "test suite not run~%"))
- #t)))))
+ (list
+ ;; FIXME: The test suite requires 'python-flake8' and 'python-black',
+ ;; but that introduces a circular dependency.
+ #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'build
+ (lambda _
+ (let ((circa-1980 (* 10 366 24 60 60)))
+ (setenv "SOURCE_DATE_EPOCH" (number->string circa-1980))
+ (invoke "python" "-m" "build" "--wheel" "--no-isolation"
"."))))
+ (replace 'install
+ (lambda _
+ (let ((whl (car (find-files "dist" "\\.whl$"))))
+ (invoke "pip" "--no-cache-dir" "--no-input"
+ "install" "--no-deps" "--prefix" #$output whl))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (if tests?
+ (invoke "pytest" "-vv")
+ (format #t "test suite not run~%")))))))
(native-inputs
- (list python-setuptools-scm))
+ (list python-pypa-build python-setuptools-scm python-wheel))
(home-page "https://github.com/pytest-dev/pytest-runner")
(synopsis "Invoke py.test as a distutils command")
(description
- branch core-updates updated (5339cb1161 -> cbe461f2d4), guix-commits, 2022/09/18
- 01/08: gnu: glade: Fix failing test., guix-commits, 2022/09/18
- 03/08: gnu: ghc@8.4: Adjust test suite for Python 3.10., guix-commits, 2022/09/18
- 05/08: gnu: gnome-clocks: Add missing input., guix-commits, 2022/09/18
- 07/08: gnu: python-pytest-runner: Update to 6.0.0.,
guix-commits <=
- 02/08: gnu: fontforge@20190801: Fix build., guix-commits, 2022/09/18
- 04/08: gnu: python-matplotlib: Disable test that fails on Python 3.10., guix-commits, 2022/09/18
- 06/08: gnu: shepherd: Promote 0.9 to the default., guix-commits, 2022/09/18
- 08/08: gnu: xkeyboard-config: Update to 2.36., guix-commits, 2022/09/18