gnu: python-arrow: Honor #:tests? in 'check' phase.
* gnu/packages/time.scm (python-arrow)[arguments]: 'check' phase honors #:tests?.
This commit is contained in:
parent
7ad7b07806
commit
b182121458
1 changed files with 7 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
|
;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
|
||||||
;;; Copyright © 2013, 2017, 2020 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2013, 2017, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
|
;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
|
||||||
;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2021 Efraim Flashner <efraim@flashner.co.il>
|
;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2021 Efraim Flashner <efraim@flashner.co.il>
|
||||||
;;; Copyright © 2015, 2017 Leo Famulari <leo@famulari.name>
|
;;; Copyright © 2015, 2017 Leo Famulari <leo@famulari.name>
|
||||||
|
@ -423,11 +423,12 @@ (define-public python-arrow
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(invoke "pytest" "-vv" "tests"
|
(when tests?
|
||||||
;; python-dateutil doesn't recognize America/Nuuk.
|
(invoke "pytest" "-vv" "tests"
|
||||||
;; Remove when python-dateutil > 2.8.1.
|
;; python-dateutil doesn't recognize America/Nuuk.
|
||||||
"-k" "not test_parse_tz_name_zzz"))))))
|
;; Remove when python-dateutil > 2.8.1.
|
||||||
|
"-k" "not test_parse_tz_name_zzz")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(;; For testing
|
`(;; For testing
|
||||||
("python-chai" ,python-chai)
|
("python-chai" ,python-chai)
|
||||||
|
|
Loading…
Reference in a new issue