gnu: python-zope-testrunner: Update to 7.4.

* gnu/packages/python-web.scm (python-zope-testrunner): Update to 7.4.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]: Improve style.
<#:phases>: Add 'check phase replacement.
[native-inputs]: Add python-setuptools.
[propagated-inputs]: Remove python-six.
[home-page]: Use the readthedocs link.
[description]: Improve style.
(python-zope-testrunner-bootstrap)[propagated-inputs]: Improve style.

Change-Id: Ia8ae67343431cf683f31e5f2cfff64a5826559e0
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-09-20 23:21:44 +02:00 committed by Sharlatan Hellseher
parent 7a128a223d
commit 6619750a8c
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -4606,41 +4606,44 @@ servers, regular expressions, and more.")
(define-public python-zope-testrunner (define-public python-zope-testrunner
(package (package
(name "python-zope-testrunner") (name "python-zope-testrunner")
(version "5.2") (version "7.4")
(source (source
(origin (origin
(method url-fetch) (method git-fetch)
(uri (pypi-uri "zope.testrunner" version)) (uri (git-reference
(url "https://github.com/zopefoundation/zope.testrunner")
(commit version)))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32 "0gd5rnzw6vzbx766jxqr4zc6qx7gk75r2c0nqqvhkb12hzk5ca2g"))))
"0jyyf1dcz156q95x2y7yw2v420q2xn3cff0c5aci7hmdmcbn0gc7")))) (build-system pyproject-build-system)
(build-system python-build-system)
(arguments (arguments
'(#:tests? #f ;FIXME: Tests can't find zope.interface. (list
#:phases #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'remove-problematic-test (add-after 'unpack 'remove-problematic-test
(lambda _ (lambda _
;; This test contains invalid syntax, which breaks bytecode ;; This test contains invalid syntax, which breaks bytecode
;; compilation. For simplicity just remove it. ;; compilation. For simplicity just remove it.
(delete-file (delete-file
"src/zope/testrunner/tests/testrunner-ex/sample2/badsyntax.py")))))) "src/zope/testrunner/tests/testrunner-ex/sample2/badsyntax.py")))
(native-inputs (replace 'check
(list python-zope-testing)) (lambda* (#:key tests? #:allow-other-keys)
(propagated-inputs (if tests?
(list python-six python-zope-exceptions python-zope-interface)) (invoke "zope-testrunner" "--test-path=src")
(home-page "https://pypi.org/project/zope.testrunner/") (format #t "test suite not run~%")))))))
(native-inputs (list python-setuptools python-zope-testing))
(propagated-inputs (list python-zope-exceptions python-zope-interface))
(home-page "https://zopetestrunner.readthedocs.io")
(synopsis "Zope testrunner script") (synopsis "Zope testrunner script")
(description "Zope.testrunner provides a script for running Python (description "This package provides a script for running Python tests.")
tests.")
(license license:zpl2.1))) (license license:zpl2.1)))
(define-public python-zope-testrunner-bootstrap (define-public python-zope-testrunner-bootstrap
(package (package
(inherit (python-zope-bootstrap-package python-zope-testrunner)) (inherit (python-zope-bootstrap-package python-zope-testrunner))
(propagated-inputs (propagated-inputs
`(("python-six" ,python-six) (list python-six python-zope-exceptions-bootstrap))
("python-zope-exceptions" ,python-zope-exceptions-bootstrap)))
(properties `((hidden? . #t))))) (properties `((hidden? . #t)))))
(define-public python-zope-i18nmessageid (define-public python-zope-i18nmessageid