summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-09-19 15:15:50 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-20 16:18:48 +0100
commit7d0647fb62924666c74339b95474d5c8e63486dd (patch)
tree6e8cc356a0a82bbf9eb1adfe4ba7d669de06436b
parent00836376f57e6a0b4c2feb7ea33194ffe80d9821 (diff)
gnu: python-subunit: Update to 1.4.4.
* gnu/packages/check.scm (python-subunit): Update to 1.4.4. Don't inherit from python-subunit as it's no longer required and migrate missing fields from it. [build-system]: Switch to pygobject-build-system. [arguments] <test-backend>: Use custom. <test-flags>: Provide options to run testtols. <phases>: Add 'disable-failing-tests, and 'disable-failing-console-scripts. [propagated-inputs]: Remove python-extras; add python-iso8601 and python-pygobject. [native-inputs]: Remove python-hypothesis; add python-setuptools. Change-Id: I394f8e3c3caf500cc875e8ba480bef108ad558aa
-rw-r--r--gnu/packages/check.scm50
1 files changed, 45 insertions, 5 deletions
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index cd08809291..e34b443b5c 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -2286,15 +2286,55 @@ python-subunit package instead.")
(define-public python-subunit
(package
- (inherit python-subunit-bootstrap)
(name "python-subunit")
- (propagated-inputs
- (list python-extras python-testtools))
+ (version "1.4.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "python-subunit" version))
+ (sha256
+ (base32 "0d7arni5h98x7mpgpv90bzipf6p6q9djcdwj4m2ky7da64qkcy8h"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-backend #~'custom
+ #:test-flags #~(list "-m" "testtools.run" "subunit.test_suite")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-failing-tests
+ (lambda _
+ ;; There are two failing tests:
+ ;; subunit.tests.test_test_protocol.TestExecTestCase.test_args
+ ;; AssertionError: 1 != 0
+ ;;
+ ;; subunit.tests.test_test_protocol.TestExecTestCase.test_run
+ ;; AssertionError: Lists differ: [('startTest',
+ ;; <subunit.RemotedTestCase de[666 chars]r'>)] != []
+ (substitute* "python/subunit/tests/test_test_protocol.py"
+ (("test_args") "_off_test_args")
+ (("test_run") "_off_test_run"))))
+ (add-after 'disable-failing-tests 'disable-failing-console-scripts
+ (lambda _
+ (substitute* "setup.py"
+ ;; Requries not maintained python-junitxml.
+ (("'subunit2junitxml=.*subunit2junitxml:main',") "")
+ ;; To avoid Gtk in inputs.
+ (("'subunit-notify=.*subunit_notify:main',") "")
+ (("'subunit2gtk=.*subunit2gtk:main',") "")))))))
(native-inputs
- (list python-fixtures python-hypothesis python-testscenarios))
+ (list python-fixtures
+ python-setuptools
+ python-testscenarios))
+ (propagated-inputs
+ (list python-iso8601
+ python-pygobject
+ python-testtools))
+ (home-page "https://github.com/testing-cabal/subunit")
+ (synopsis "Python implementation of the subunit protocol")
(description
"Python-subunit is a Python implementation of the subunit test streaming
-protocol.")))
+protocol.")
+ (license (list license:bsd-3 license:asl2.0)))) ; at the user's option
;; Fixtures requires python-pbr at runtime, but pbr uses fixtures for its
;; own tests. Hence this bootstrap variant.