[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/15: gnu: Add python-pytest-6.
From: |
guix-commits |
Subject: |
07/15: gnu: Add python-pytest-6. |
Date: |
Sun, 29 Nov 2020 14:08:56 -0500 (EST) |
apteryx pushed a commit to branch master
in repository guix.
commit d4732deb4f885152e98b64a70806fbe5e4b44843
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Nov 27 23:35:12 2020 -0500
gnu: Add python-pytest-6.
* gnu/packages/check.scm (python-pytest-6): New variable.
(python-pytest-6-bootstrap): Likewise.
---
gnu/packages/check.scm | 52 +++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 51 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index cf9b85d..ccdef2a 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -35,6 +35,7 @@
;;; Copyright © 2020 Josh Marshall <joshua.r.marshall.1991@gmail.com>
;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
;;; Copyright © 2020 Tanguy Le Carrour <tanguy@bioneland.org>
+;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -81,7 +82,8 @@
#:use-module (guix build-system go)
#:use-module (guix build-system meson)
#:use-module (guix build-system python)
- #:use-module (guix build-system trivial))
+ #:use-module (guix build-system trivial)
+ #:use-module (srfi srfi-1))
(define-public pedansee
(package
@@ -931,6 +933,45 @@ and many external plugins.")
(license license:expat)
(properties `((python2-variant . ,(delay python2-pytest))))))
+(define-public python-pytest-6
+ (package
+ (inherit (strip-python2-variant python-pytest))
+ (version "6.1.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest" version))
+ (sha256
+ (base32
+ "0gl2sdm322vzmsh5k4f8kj9raiq2y7kdinnca4m45ifvii5fk9y0"))))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (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 involve 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~%"))
+ #t)))))
+ (propagated-inputs
+ (append (alist-delete "python-py"
+ (package-propagated-inputs python-pytest))
+ `(("python-py" ,python-py-next))))
+ (native-inputs
+ (append (alist-delete "python-pytest"
+ (package-native-inputs python-pytest))
+ `(("python-pytest" ,python-pytest-6-bootstrap)
+ ("python-toml" ,python-toml)
+ ("python-iniconfig" ,python-iniconfig))))))
+
;; Pytest 4.x are the last versions that support Python 2.
(define-public python2-pytest
(package
@@ -975,6 +1016,15 @@ and many external plugins.")
(arguments `(#:tests? #f))
(properties `((python2-variant . ,(delay python2-pytest-bootstrap))))))
+(define-public python-pytest-6-bootstrap
+ (package
+ (inherit (strip-python2-variant python-pytest-6))
+ (name "python-pytest-bootstrap")
+ (arguments `(#:tests? #f))
+ (native-inputs
+ `(("python-setuptools-scm" ,python-setuptools-scm)
+ ("python-toml" ,python-toml)))))
+
(define-public python2-pytest-bootstrap
(hidden-package
(package/inherit
- branch master updated (0216fc2 -> c601e2b), guix-commits, 2020/11/29
- 04/15: gnu: Add python-iniconfig., guix-commits, 2020/11/29
- 02/15: gnu: python-cairocffi: Fix indentation., guix-commits, 2020/11/29
- 01/15: gnu: python-html5lib: Update to 1.1., guix-commits, 2020/11/29
- 05/15: gnu: Add python-py-next., guix-commits, 2020/11/29
- 03/15: gnu: python-cairocffi: Update to 1.2.0., guix-commits, 2020/11/29
- 06/15: gnu: python-typing-extensions: Update to 3.7.4.3., guix-commits, 2020/11/29
- 09/15: gnu: python-mypy: Update to 0.790., guix-commits, 2020/11/29
- 14/15: gnu: python-pyphen: Update to 0.10.0., guix-commits, 2020/11/29
- 07/15: gnu: Add python-pytest-6.,
guix-commits <=
- 15/15: gnu: weasyprint: Update to 52.1., guix-commits, 2020/11/29
- 13/15: gnu: python-tinycss2: Update to 1.1.0., guix-commits, 2020/11/29
- 08/15: gnu: python-pytest-xdist: Update to 2.1.0., guix-commits, 2020/11/29
- 10/15: gnu: python-cairosvg: Update to 2.5.0., guix-commits, 2020/11/29
- 11/15: gnu: python-cssselect2: Update to 0.4.1., guix-commits, 2020/11/29
- 12/15: gnu: python-flit: Update to 3.0.0., guix-commits, 2020/11/29