mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
gnu: Add python-pytest-asyncio.
* gnu/packages/check.scm (python-pytest-asyncio): New public variable. Signed-off-by: Marius Bakke <mbakke@fastmail.com>
This commit is contained in:
parent
51ac5ce4b5
commit
8b27771b77
1 changed files with 25 additions and 0 deletions
|
@ -32,6 +32,7 @@
|
|||
;;; Copyright © 2019 Chris Marusich <cmmarusich@gmail.com>
|
||||
;;; Copyright © 2020 Lars-Dominik Braun <ldb@leibniz-psychology.org>
|
||||
;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
|
||||
;;; Copyright © 2020 Josh Marshall <joshua.r.marshall.1991@gmail.com>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -1408,6 +1409,30 @@ (define-public python-coverage
|
|||
(define-public python2-coverage
|
||||
(package-with-python2 python-coverage))
|
||||
|
||||
(define-public python-pytest-asyncio
|
||||
(package
|
||||
(name "python-pytest-asyncio")
|
||||
(version "0.10.0")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "pytest-asyncio" version))
|
||||
(sha256
|
||||
(base32 "1bysy4nii13bm7h345wxf8fxcjhab7l374pqdv7vwv3izl053b4z"))))
|
||||
(build-system python-build-system)
|
||||
(native-inputs
|
||||
`(("python-coverage" ,python-coverage)
|
||||
("python-async-generator" ,python-async-generator)
|
||||
("python-hypothesis" ,python-hypothesis)
|
||||
("python-pytest" ,python-pytest)))
|
||||
(home-page "https://github.com/pytest-dev/pytest-asyncio")
|
||||
(synopsis "Pytest support for asyncio")
|
||||
(description "Python asyncio code is usually written in the form of
|
||||
coroutines, which makes it slightly more difficult to test using normal
|
||||
testing tools. @code{pytest-asyncio} provides useful fixtures and markers
|
||||
to make testing async code easier.")
|
||||
(license license:asl2.0)))
|
||||
|
||||
(define-public python-cov-core
|
||||
(package
|
||||
(name "python-cov-core")
|
||||
|
|
Loading…
Reference in a new issue