~ruther/guix-local

5403940d77551b76c389a3dfb16131ae51d8eb75 — Nicolas Graves 11 months ago 2d50711
gnu: python-stestr: Update to 4.2.0.

* gnu/packages/python-check.scm (python-stestr): Update to 4.2.0.
[arguments]<#:test-flags>: Refresh them.
<#:phases>: Add phase 'configure-check.
[native-inputs]: Add python-flit-core-next.

Change-Id: I2f50c92a15c7d074c0d129b25b2a0b6c414fa982
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 8 insertions(+), 11 deletions(-)

M gnu/packages/python-check.scm
M gnu/packages/python-check.scm => gnu/packages/python-check.scm +8 -11
@@ 3690,26 3690,23 @@ possibly work.")
(define-public python-stestr
  (package
    (name "python-stestr")
    ;; XXX: The latest version needs flit-core=>3.12.
    (version "4.1.0")
    (version "4.2.0")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "stestr" version))
       (sha256
        (base32 "12p96kzanzzssr6z4hq6k62pdbsql4mf369ms69c4qyfxrlw6qaz"))))
        (base32 "17623fqkg3a0z7rx8jcxwvgx6afg6wzvj4q6cgip5hqw5ngn7v25"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:test-flags
      ;; Two tets fail.
      #~(list "--exclude-regex" (string-join
                                 (list "test_initialise_expands_user_directory"
                                       "test_open_expands_user_directory")
                                 "|"))
      #~(list "--test-path" "stestr/tests")
      #:phases
      #~(modify-phases %standard-phases
          ;; TODO: Implement in pypproject-build-system's  test-backends.
          (add-before 'check 'configure-check
            (lambda _
              (setenv "HOME" (getcwd))))
          (replace 'check
            (lambda* (#:key tests? test-flags #:allow-other-keys)
              (when tests?


@@ 3718,8 3715,8 @@ possibly work.")
    (native-inputs
     (list python-ddt
           python-iso8601
           python-setuptools
           python-wheel))
           python-flit-core-next ;requires >=3.12
           python-setuptools))
    (propagated-inputs
     (list python-cliff
           python-fixtures