~ruther/guix-local

8c06ed66d0dc24ea5bafa2045f609a5f76006ad5 — Ricardo Wurmus 1 year, 3 months ago 975f78b
gnu: python-testtools: Update to 2.7.2.

* gnu/packages/check.scm (python-testtools-bootstrap):
Update to 2.7.2.
[propagated-inputs]: Drop labels.
[native-inputs]: Add python-hatchling, python-hatch-vcs, and
python-setuptools.
[build-system]: Use pyproject-build-system.
(python-testtools): Update to 2.7.2.
[arguments]: Disable some tests.
[native-inputs]: Add python-hatch-vcs, python-hatchling, python-twisted, and
python-setuptools.

Change-Id: I7c065b490229ecf4c11257c709b439521ef14222
1 files changed, 25 insertions(+), 9 deletions(-)

M gnu/packages/check.scm
M gnu/packages/check.scm => gnu/packages/check.scm +25 -9
@@ 2196,19 2196,21 @@ subprocess and see the output as well as any file modifications.")
(define-public python-testtools-bootstrap
  (package
    (name "python-testtools-bootstrap")
    (version "2.6.0")
    (version "2.7.2")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "testtools" version))
       (sha256
        (base32
         "02mkphygx8897617m8qnmj0alksyvvfcjmazzfxyrlzjq0a5xdi8"))))
    (build-system python-build-system)
    (arguments '(#:tests? #f))
         "18vy77n4ab2dvgx5ni6gfp2d0haxhh3yrkm6mih8n3zsy30vprav"))))
    (build-system pyproject-build-system)
    (arguments (list #:tests? #f))
    (propagated-inputs
     `(("python-fixtures" ,python-fixtures-bootstrap)
       ("python-pbr" ,python-pbr-minimal)))
     (list python-fixtures-bootstrap python-pbr-minimal))
    (native-inputs
     (list python-hatchling python-hatch-vcs
           python-setuptools)) ;due to python-pbr-minimal
    (home-page "https://github.com/testing-cabal/testtools")
    (synopsis
     "Extensions to the Python standard library unit testing framework")


@@ 2221,17 2223,31 @@ subprocess and see the output as well as any file modifications.")
    (inherit python-testtools-bootstrap)
    (name "python-testtools")
    (arguments
     `(#:phases
       (modify-phases %standard-phases
     (list
      #:phases
      '(modify-phases %standard-phases
         (replace 'check
           (lambda* (#:key tests? #:allow-other-keys)
             (when tests?
               ;; There are six failing tests:
               ;; "test_fast_keyboard_interrupt_stops_test_run"
               ;; "test_keyboard_interrupt_stops_test_run"
               ;; "test_fast_sigint_raises_no_result_error"
               ;; "test_fast_sigint_raises_no_result_error_second_time"
               ;; "test_sigint_raises_no_result_error"
               ;; "test_sigint_raises_no_result_error_second_time"
               (substitute* "testtools/tests/twistedsupport/__init__.py"
                 (("test_spinner,") "")
                 (("test_runtest,") ""))
               (invoke "python" "-m" "testtools.run"
                       "testtools.tests.test_suite")))))))
    (propagated-inputs
     (list python-fixtures python-pbr))
    (native-inputs
     `(("python-testscenarios" ,python-testscenarios-bootstrap)))
     (list python-hatchling python-hatch-vcs
           python-testscenarios-bootstrap
           python-twisted
           python-setuptools)) ;due to python-pbr
    (description
     "Testtools extends the Python standard library unit testing framework to
provide matchers, more debugging information, and cross-Python