~ruther/guix-local

c5de62092a4252ca106cb3c829a11ef36aa45a3f — Nicolas Graves 2 years ago adcada9
gnu: python-arrow: Move to pyproject-build-system.

* gnu/packages/time.scm (python-arrow): Improve package style.
  [build-system]: Move to pyproject-build-system.
  [arguments]: Moving check replacement phase from <#:phases> to
  equivalent <#:test-flags>.

Change-Id: I7e3d356610d624855c3898ccdbfb308ce9f6e627
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
1 files changed, 6 insertions(+), 10 deletions(-)

M gnu/packages/time.scm
M gnu/packages/time.scm => gnu/packages/time.scm +6 -10
@@ 512,17 512,13 @@ timestamps.")
              (sha256
               (base32
                "189knrgxb3x21lzvqac6qlpd32308hcmpccxdlvr5wmrl46b6d1r"))))
    (build-system python-build-system)
    (build-system pyproject-build-system)
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         (replace 'check
           (lambda* (#:key tests? #:allow-other-keys)
             (when tests?
               (invoke "pytest" "-vv" "tests"
                       ;; python-dateutil doesn't recognize America/Nuuk.
                       ;; Remove when python-dateutil > 2.8.1.
                       "-k" "not test_parse_tz_name_zzz")))))))
     (list
      #:test-flags '(list "tests"
                          ;; python-dateutil doesn't recognize America/Nuuk.
                          ;; Remove when python-dateutil > 2.8.1.
                          "-k" "not test_parse_tz_name_zzz")))
    (native-inputs
     (list ;; For testing
           python-chai