diff options
| author | Marius Bakke <mbakke@fastmail.com> | 2020-01-16 00:45:53 +0100 |
|---|---|---|
| committer | Marius Bakke <mbakke@fastmail.com> | 2020-01-24 20:44:33 +0100 |
| commit | 0ae97f5dd1c6cc2ad8e9f27f62e5a72e0d5fbb4c (patch) | |
| tree | 1d9d64be060162ea5c256b14d8136a692b3c1169 /gnu/packages | |
| parent | db6fb90a1fc29ab8a5fb61483e0e30d74c4eb8d8 (diff) | |
gnu: python2-pytest: Update to 4.6.9.
* gnu/packages/check.scm (python2-pytest): Update to 4.6.9.
(python2-pytest-bootstrap)[propagated-inputs]: Add
PYTHON2-IMPORTLIB-METADATA-BOOTSTRAP, PYTHON2-PACKAGING-BOOTSTRAP, and
PYTHON2-WCWIDTH. Replace PYTHON2-PLUGGY with PYTHON2-PLUGGY-BOOTSTRAP.
* gnu/packages/python-compression.scm (python2-zipp-bootstrap): New public variable.
* gnu/packages/python-xyz.scm (python2-importlib-resources-bootstrap): New
public variable.
(python-importlib-metadata)[native-inputs]: Change from PYTHON-PACKAGING to
PYTHON-PACKAGING-BOOTSTRAP.
[properties]: New field.
(python2-importlib-metadata-bootstrap, python2-contextlib2-bootstrap,
python2-pluggy-bootstrap): New public variables.
(python-packaging)[arguments]: Allow overriding #:tests?.
(python2-packaging-bootstrap): New public variable.
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/check.scm | 16 | ||||
| -rw-r--r-- | gnu/packages/python-compression.scm | 12 | ||||
| -rw-r--r-- | gnu/packages/python-xyz.scm | 78 |
3 files changed, 96 insertions, 10 deletions
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index c28e488a142..941b4547b62 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm | |||
| @@ -821,13 +821,13 @@ and many external plugins.") | |||
| 821 | (package | 821 | (package |
| 822 | (inherit (strip-python2-variant python-pytest)) | 822 | (inherit (strip-python2-variant python-pytest)) |
| 823 | (name "python2-pytest") | 823 | (name "python2-pytest") |
| 824 | (version "4.4.2") | 824 | (version "4.6.9") |
| 825 | (source (origin | 825 | (source (origin |
| 826 | (method url-fetch) | 826 | (method url-fetch) |
| 827 | (uri (pypi-uri "pytest" version)) | 827 | (uri (pypi-uri "pytest" version)) |
| 828 | (sha256 | 828 | (sha256 |
| 829 | (base32 | 829 | (base32 |
| 830 | "18w38kjnffdcrlbw6ny6dksgxai6x9bxpjs2m6klqmb8hfzjkcb2")))) | 830 | "0fgkmpc31nzy97fxfrkqbzycigdwxwwmninx3qhkzp81migggs0r")))) |
| 831 | (build-system python-build-system) | 831 | (build-system python-build-system) |
| 832 | (arguments | 832 | (arguments |
| 833 | `(#:python ,python-2 | 833 | `(#:python ,python-2 |
| @@ -836,11 +836,14 @@ and many external plugins.") | |||
| 836 | `(("python-atomicwrites" ,python2-atomicwrites) | 836 | `(("python-atomicwrites" ,python2-atomicwrites) |
| 837 | ("python-attrs" ,python2-attrs-bootstrap) | 837 | ("python-attrs" ,python2-attrs-bootstrap) |
| 838 | ("python-funcsigs" ,python2-funcsigs) | 838 | ("python-funcsigs" ,python2-funcsigs) |
| 839 | ("python-importlib-metadata" ,python2-importlib-metadata-bootstrap) | ||
| 839 | ("python-more-itertools" ,python2-more-itertools) | 840 | ("python-more-itertools" ,python2-more-itertools) |
| 841 | ("python-packaging" ,python2-packaging-bootstrap) | ||
| 840 | ("python-pathlib2" ,python2-pathlib2) | 842 | ("python-pathlib2" ,python2-pathlib2) |
| 841 | ("python-pluggy" ,python2-pluggy) | 843 | ("python-pluggy" ,python2-pluggy) |
| 842 | ("python-py" ,python2-py) | 844 | ("python-py" ,python2-py) |
| 843 | ("python-six" ,python2-six-bootstrap))) | 845 | ("python-six" ,python2-six-bootstrap) |
| 846 | ("python-wcwidth" ,python2-wcwidth))) | ||
| 844 | (native-inputs | 847 | (native-inputs |
| 845 | `(("bash" ,bash) ;tests require 'compgen' | 848 | `(("bash" ,bash) ;tests require 'compgen' |
| 846 | ("python-hypothesis" ,python2-hypothesis) | 849 | ("python-hypothesis" ,python2-hypothesis) |
| @@ -871,10 +874,13 @@ and many external plugins.") | |||
| 871 | `(("python-atomicwrites" ,python2-atomicwrites) | 874 | `(("python-atomicwrites" ,python2-atomicwrites) |
| 872 | ("python-attrs" ,python2-attrs-bootstrap) | 875 | ("python-attrs" ,python2-attrs-bootstrap) |
| 873 | ("python-funcsigs" ,python2-funcsigs-bootstrap) | 876 | ("python-funcsigs" ,python2-funcsigs-bootstrap) |
| 877 | ("python-importlib-metadata" ,python2-importlib-metadata-bootstrap) | ||
| 874 | ("python-more-itertools" ,python2-more-itertools) | 878 | ("python-more-itertools" ,python2-more-itertools) |
| 879 | ("python-packaging" ,python2-packaging-bootstrap) | ||
| 875 | ("python-pathlib2" ,python2-pathlib2-bootstrap) | 880 | ("python-pathlib2" ,python2-pathlib2-bootstrap) |
| 876 | ("python-pluggy" ,python2-pluggy) | 881 | ("python-pluggy" ,python2-pluggy-bootstrap) |
| 877 | ("python-py" ,python2-py)))))) | 882 | ("python-py" ,python2-py) |
| 883 | ("python-wcwidth" ,python2-wcwidth)))))) | ||
| 878 | 884 | ||
| 879 | (define-public python-pytest-cov | 885 | (define-public python-pytest-cov |
| 880 | (package | 886 | (package |
diff --git a/gnu/packages/python-compression.scm b/gnu/packages/python-compression.scm index 70abc7bad18..7924479185b 100644 --- a/gnu/packages/python-compression.scm +++ b/gnu/packages/python-compression.scm | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | ;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu> | 5 | ;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu> |
| 6 | ;;; Copyright © 2018, 2019 Efraim Flashner <efraim@flashner.co.il> | 6 | ;;; Copyright © 2018, 2019 Efraim Flashner <efraim@flashner.co.il> |
| 7 | ;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr> | 7 | ;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr> |
| 8 | ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com> | ||
| 8 | ;;; | 9 | ;;; |
| 9 | ;;; This file is part of GNU Guix. | 10 | ;;; This file is part of GNU Guix. |
| 10 | ;;; | 11 | ;;; |
| @@ -243,6 +244,17 @@ wrapper. It provides a backport of the @code{Path} object.") | |||
| 243 | ("python-unittest2" ,python2-unittest2) | 244 | ("python-unittest2" ,python2-unittest2) |
| 244 | ,@(package-native-inputs base)))))) | 245 | ,@(package-native-inputs base)))))) |
| 245 | 246 | ||
| 247 | ;; This package is used to bootstrap pytest, via importlib-metadata. | ||
| 248 | (define-public python2-zipp-bootstrap | ||
| 249 | (hidden-package | ||
| 250 | (package/inherit | ||
| 251 | python2-zipp | ||
| 252 | (arguments | ||
| 253 | `(#:tests? #f | ||
| 254 | ,@(package-arguments python2-zipp))) | ||
| 255 | (native-inputs | ||
| 256 | `(("python-setuptools-scm" ,python2-setuptools-scm)))))) | ||
| 257 | |||
| 246 | (define-public python-zstandard | 258 | (define-public python-zstandard |
| 247 | (package | 259 | (package |
| 248 | (name "python-zstandard") | 260 | (name "python-zstandard") |
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index ea67be17ef1..12faca73eb6 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm | |||
| @@ -5004,6 +5004,16 @@ older Python versions.") | |||
| 5004 | for older versions of Python.") | 5004 | for older versions of Python.") |
| 5005 | (license license:asl2.0))) | 5005 | (license license:asl2.0))) |
| 5006 | 5006 | ||
| 5007 | ;; For importlib-metadata-bootstrap below. | ||
| 5008 | (define-public python2-importlib-resources-bootstrap | ||
| 5009 | (hidden-package | ||
| 5010 | (package/inherit | ||
| 5011 | python2-importlib-resources | ||
| 5012 | (name "python2-importlib-resources-bootstrap") | ||
| 5013 | (propagated-inputs | ||
| 5014 | `(("python-pathlib2-bootstrap" ,python2-pathlib2-bootstrap) | ||
| 5015 | ("python-typing" ,python2-typing)))))) | ||
| 5016 | |||
| 5007 | (define-public python-importlib-metadata | 5017 | (define-public python-importlib-metadata |
| 5008 | (package | 5018 | (package |
| 5009 | (name "python-importlib-metadata") | 5019 | (name "python-importlib-metadata") |
| @@ -5019,7 +5029,7 @@ for older versions of Python.") | |||
| 5019 | `(("python-zipp" ,python-zipp))) | 5029 | `(("python-zipp" ,python-zipp))) |
| 5020 | (native-inputs | 5030 | (native-inputs |
| 5021 | `(("python-setuptools-scm" ,python-setuptools-scm) | 5031 | `(("python-setuptools-scm" ,python-setuptools-scm) |
| 5022 | ("python-packaging" ,python-packaging))) | 5032 | ("python-packaging" ,python-packaging-bootstrap))) |
| 5023 | (home-page "https://importlib-metadata.readthedocs.io/") | 5033 | (home-page "https://importlib-metadata.readthedocs.io/") |
| 5024 | (synopsis "Read metadata from Python packages") | 5034 | (synopsis "Read metadata from Python packages") |
| 5025 | (description | 5035 | (description |
| @@ -5045,6 +5055,22 @@ need to use the older and less efficient @code{pkg_resources} package.") | |||
| 5045 | ("python-pathlib2" ,python2-pathlib2) | 5055 | ("python-pathlib2" ,python2-pathlib2) |
| 5046 | ,@(package-propagated-inputs base)))))) | 5056 | ,@(package-propagated-inputs base)))))) |
| 5047 | 5057 | ||
| 5058 | ;; This package is used by python2-pytest, and thus must not depend on it. | ||
| 5059 | (define-public python2-importlib-metadata-bootstrap | ||
| 5060 | (hidden-package | ||
| 5061 | (package/inherit | ||
| 5062 | python2-importlib-metadata | ||
| 5063 | (name "python2-importlib-metadata-bootstrap") | ||
| 5064 | (arguments | ||
| 5065 | `(#:tests? #f | ||
| 5066 | ,@(package-arguments python2-importlib-metadata))) | ||
| 5067 | (propagated-inputs | ||
| 5068 | `(("python-zipp" ,python2-zipp-bootstrap) | ||
| 5069 | ("python-pathlib2" ,python2-pathlib2-bootstrap) | ||
| 5070 | ("python-configparser" ,python2-configparser) | ||
| 5071 | ("python-contextlib2" ,python2-contextlib2-bootstrap) | ||
| 5072 | ("python-importlib-resources" ,python2-importlib-resources-bootstrap)))))) | ||
| 5073 | |||
| 5048 | (define-public python-jaraco-packaging | 5074 | (define-public python-jaraco-packaging |
| 5049 | (package | 5075 | (package |
| 5050 | (name "python-jaraco-packaging") | 5076 | (name "python-jaraco-packaging") |
| @@ -8288,6 +8314,18 @@ the standard library.") | |||
| 8288 | (native-inputs | 8314 | (native-inputs |
| 8289 | `(("python2-unittest2" ,python2-unittest2)))))) | 8315 | `(("python2-unittest2" ,python2-unittest2)))))) |
| 8290 | 8316 | ||
| 8317 | ;; This package is used by python2-pytest via python2-importlib-metadata, | ||
| 8318 | ;; and thus can not depend on python-unittest2 (which depends on pytest). | ||
| 8319 | (define-public python2-contextlib2-bootstrap | ||
| 8320 | (hidden-package | ||
| 8321 | (package/inherit | ||
| 8322 | python2-contextlib2 | ||
| 8323 | (name "python2-contextlib2-bootstrap") | ||
| 8324 | (arguments | ||
| 8325 | `(#:tests? #f | ||
| 8326 | ,@(package-arguments python2-contextlib2))) | ||
| 8327 | (native-inputs '())))) | ||
| 8328 | |||
| 8291 | (define-public python-texttable | 8329 | (define-public python-texttable |
| 8292 | (package | 8330 | (package |
| 8293 | (name "python-texttable") | 8331 | (name "python-texttable") |
| @@ -8786,6 +8824,20 @@ Pytest but stripped of Pytest specific details.") | |||
| 8786 | (propagated-inputs | 8824 | (propagated-inputs |
| 8787 | `(("python-importlib-metadata" ,python2-importlib-metadata)))))) | 8825 | `(("python-importlib-metadata" ,python2-importlib-metadata)))))) |
| 8788 | 8826 | ||
| 8827 | ;; This package requires python2-importlib-metadata, but that package | ||
| 8828 | ;; ends up needing python2-pluggy via python2-pytest, so we need this | ||
| 8829 | ;; variant to solve the circular dependency. | ||
| 8830 | (define-public python2-pluggy-bootstrap | ||
| 8831 | (hidden-package | ||
| 8832 | (package/inherit | ||
| 8833 | python2-pluggy | ||
| 8834 | (name "python2-pluggy-bootstrap") | ||
| 8835 | (arguments | ||
| 8836 | `(#:tests? #f | ||
| 8837 | ,@(package-arguments python2-pluggy))) | ||
| 8838 | (propagated-inputs | ||
| 8839 | `(("python-importlib-metadata" ,python2-importlib-metadata-bootstrap)))))) | ||
| 8840 | |||
| 8789 | (define-public python-tox | 8841 | (define-public python-tox |
| 8790 | (package | 8842 | (package |
| 8791 | (name "python-tox") | 8843 | (name "python-tox") |
| @@ -13107,7 +13159,11 @@ several utilities, as well as an API for building localization tools.") | |||
| 13107 | (arguments | 13159 | (arguments |
| 13108 | `(#:phases (modify-phases %standard-phases | 13160 | `(#:phases (modify-phases %standard-phases |
| 13109 | (replace 'check | 13161 | (replace 'check |
| 13110 | (lambda _ (invoke "py.test" "-vv")))))) | 13162 | (lambda* (#:key tests? #:allow-other-keys) |
| 13163 | (if tests? | ||
| 13164 | (invoke "py.test" "-vv") | ||
| 13165 | (format #t "test suite not run~%")) | ||
| 13166 | #t))))) | ||
| 13111 | (native-inputs | 13167 | (native-inputs |
| 13112 | `(("python-pretend" ,python-pretend) | 13168 | `(("python-pretend" ,python-pretend) |
| 13113 | ("python-pytest" ,python-pytest))) | 13169 | ("python-pytest" ,python-pytest))) |
| @@ -13125,7 +13181,10 @@ information.") | |||
| 13125 | ;; licenses. | 13181 | ;; licenses. |
| 13126 | (license (list license:asl2.0 license:bsd-2)))) | 13182 | (license (list license:asl2.0 license:bsd-2)))) |
| 13127 | 13183 | ||
| 13128 | ;; A variant with minimal dependencies, for bootstrapping Pytest. | 13184 | (define-public python2-packaging |
| 13185 | (package-with-python2 python-packaging)) | ||
| 13186 | |||
| 13187 | ;; Variants with minimal dependencies, for bootstrapping Pytest. | ||
| 13129 | (define-public python-packaging-bootstrap | 13188 | (define-public python-packaging-bootstrap |
| 13130 | (hidden-package | 13189 | (hidden-package |
| 13131 | (package/inherit | 13190 | (package/inherit |
| @@ -13136,8 +13195,17 @@ information.") | |||
| 13136 | `(("python-pyparsing" ,python-pyparsing))) | 13195 | `(("python-pyparsing" ,python-pyparsing))) |
| 13137 | (arguments '(#:tests? #f))))) | 13196 | (arguments '(#:tests? #f))))) |
| 13138 | 13197 | ||
| 13139 | (define-public python2-packaging | 13198 | (define-public python2-packaging-bootstrap |
| 13140 | (package-with-python2 python-packaging)) | 13199 | (hidden-package |
| 13200 | (package/inherit | ||
| 13201 | python2-packaging | ||
| 13202 | (name "python2-packaging-bootstrap") | ||
| 13203 | (native-inputs '()) | ||
| 13204 | (propagated-inputs | ||
| 13205 | `(("python-pyparsing" ,python2-pyparsing))) | ||
| 13206 | (arguments | ||
| 13207 | `(#:tests? #f | ||
| 13208 | ,@(package-arguments python2-packaging)))))) | ||
| 13141 | 13209 | ||
| 13142 | (define-public python-relatorio | 13210 | (define-public python-relatorio |
| 13143 | (package | 13211 | (package |
