mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
7a128a223d
commit
6619750a8c
1 changed files with 27 additions and 24 deletions
|
@ -4606,41 +4606,44 @@ servers, regular expressions, and more.")
|
|||
(define-public python-zope-testrunner
|
||||
(package
|
||||
(name "python-zope-testrunner")
|
||||
(version "5.2")
|
||||
(version "7.4")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "zope.testrunner" version))
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/zopefoundation/zope.testrunner")
|
||||
(commit version)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"0jyyf1dcz156q95x2y7yw2v420q2xn3cff0c5aci7hmdmcbn0gc7"))))
|
||||
(build-system python-build-system)
|
||||
(base32 "0gd5rnzw6vzbx766jxqr4zc6qx7gk75r2c0nqqvhkb12hzk5ca2g"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
'(#:tests? #f ;FIXME: Tests can't find zope.interface.
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'remove-problematic-test
|
||||
(lambda _
|
||||
;; This test contains invalid syntax, which breaks bytecode
|
||||
;; compilation. For simplicity just remove it.
|
||||
(delete-file
|
||||
"src/zope/testrunner/tests/testrunner-ex/sample2/badsyntax.py"))))))
|
||||
(native-inputs
|
||||
(list python-zope-testing))
|
||||
(propagated-inputs
|
||||
(list python-six python-zope-exceptions python-zope-interface))
|
||||
(home-page "https://pypi.org/project/zope.testrunner/")
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'remove-problematic-test
|
||||
(lambda _
|
||||
;; This test contains invalid syntax, which breaks bytecode
|
||||
;; compilation. For simplicity just remove it.
|
||||
(delete-file
|
||||
"src/zope/testrunner/tests/testrunner-ex/sample2/badsyntax.py")))
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(if tests?
|
||||
(invoke "zope-testrunner" "--test-path=src")
|
||||
(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")
|
||||
(description "Zope.testrunner provides a script for running Python
|
||||
tests.")
|
||||
(description "This package provides a script for running Python tests.")
|
||||
(license license:zpl2.1)))
|
||||
|
||||
(define-public python-zope-testrunner-bootstrap
|
||||
(package
|
||||
(inherit (python-zope-bootstrap-package python-zope-testrunner))
|
||||
(propagated-inputs
|
||||
`(("python-six" ,python-six)
|
||||
("python-zope-exceptions" ,python-zope-exceptions-bootstrap)))
|
||||
(list python-six python-zope-exceptions-bootstrap))
|
||||
(properties `((hidden? . #t)))))
|
||||
|
||||
(define-public python-zope-i18nmessageid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue