gnu: Add python-asynctest.

* gnu/packages/python-xyz.scm (python-asynctest): New variable.
This commit is contained in:
Maxim Cournoyer 2023-04-17 08:53:43 -04:00
parent 96be62d2ed
commit 3c232c1361
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -18867,6 +18867,35 @@ callback-heavy mode of interaction typical in some Kivy applications.")
without requiring an event loop, useful for creative responsive GUIs.") without requiring an event loop, useful for creative responsive GUIs.")
(license license:expat))) (license license:expat)))
(define-public python-asynctest
(package
(name "python-asynctest")
(version "0.13.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "asynctest" version))
(sha256
(base32
"1b3zsy7p84gag6q8ai2ylyrhx213qdk2h2zb6im3xn0m5n264y62"))))
(build-system python-build-system)
(arguments
;; The test suite appears to be incompatible with Python 3.9+, completes
;; with 25 failures and 41 errors out of 220 tests (see:
;; https://github.com/Martiusweb/asynctest/issues/149).
(list #:tests? #f
#:phases #~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "unittest" "test")))))))
(home-page "https://github.com/Martiusweb/asynctest/")
(synopsis "Unittest extensions for testing asyncio libraries")
(description
"The @code{asynctest} Python package is built on top of the standard
@code{unittest} module and cuts down boilerplate code when testing libraries
for @code{asyncio}.")
(license license:asl2.0)))
(define-public python-binaryornot (define-public python-binaryornot
(package (package
(name "python-binaryornot") (name "python-binaryornot")