diff options
author | Ricardo Wurmus <[email protected]> | 2024-12-30 23:27:43 +0100 |
---|---|---|
committer | Ricardo Wurmus <[email protected]> | 2025-01-20 21:37:28 +0100 |
commit | 8c06ed66d0dc24ea5bafa2045f609a5f76006ad5 (patch) | |
tree | 5bd0629a34b4ac0c49cb89bff9267b9cd08dfeb0 | |
parent | 975f78b1ce36b2251d99a0f4eef7536befde15c1 (diff) |
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
-rw-r--r-- | gnu/packages/check.scm | 34 |
1 files 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 |