guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

94/299: gnu: python-testtools: Update to 2.7.2.


From: guix-commits
Subject: 94/299: gnu: python-testtools: Update to 2.7.2.
Date: Mon, 13 Jan 2025 15:18:06 -0500 (EST)

rekado pushed a commit to branch python-team
in repository guix.

commit f5db4061d4448eb944e5f346d4629c1b689ad1a6
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Dec 30 23:27:43 2024 +0100

    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
---
 gnu/packages/check.scm | 34 +++++++++++++++++++++++++---------
 1 file changed, 25 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index e28564c0b0..9fbc1de8df 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]