From: Vinicius Monego <monego@posteo.net>
To: 42744@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#42744] [PATCH 4/4] gnu: Add python-pytest-trio.
Date: Fri, 7 Aug 2020 10:24:16 -0300 [thread overview]
Message-ID: <20200807132416.49309-4-monego@posteo.net> (raw)
In-Reply-To: <20200807132416.49309-1-monego@posteo.net>
* gnu/packages/python-check.scm (python-pytest-trio): New variable.
---
This pytest line was taken from pytest.ini the source code. Tests were failing
with simpler commands.
gnu/packages/python-check.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 7a84fe39f9..d0bde27e13 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -436,6 +436,39 @@ in Pytest.")
of the project to ensure it renders properly.")
(license license:expat)))
+(define-public python-pytest-trio
+ (package
+ (name "python-pytest-trio")
+ (version "0.6.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-trio" version))
+ (sha256
+ (base32 "1zm8didm9h5jkqhghl9bvqs7kr7sjci282c7grhk6yhpzn8a9w4v"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest" "-W" "error" "-ra" "-v" "--pyargs"
+ "pytest_trio" "--verbose" "--cov"))))))
+ (native-inputs
+ `(("python-hypothesis" ,python-hypothesis)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)))
+ (propagated-inputs
+ `(("python-trio" ,python-trio)))
+ (home-page "https://github.com/python-trio/pytest-trio")
+ (synopsis "Pytest plugin for trio")
+ (description
+ "This is a pytest plugin to help you test projects that use Trio, a
+friendly library for concurrency and async I/O in Python.")
+ ;; Either license applies.
+ (license (list license:expat license:asl2.0))))
+
(define-public python-pytest-flake8
(package
(name "python-pytest-flake8")
--
2.20.1
next prev parent reply other threads:[~2020-08-07 13:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-07 13:24 [bug#42741] [PATCH 1/4] gnu: Add python-outcome Vinicius Monego
2020-08-07 13:24 ` [bug#42742] [PATCH 2/4] gnu: Add python-trustme Vinicius Monego
2020-08-09 11:55 ` bug#42742: " Efraim Flashner
2020-08-07 13:24 ` [bug#42743] [PATCH 3/4] gnu: Add python-trio Vinicius Monego
2020-08-09 11:56 ` bug#42743: " Efraim Flashner
2020-08-07 13:24 ` Vinicius Monego [this message]
2020-08-09 11:56 ` bug#42744: [PATCH 4/4] gnu: Add python-pytest-trio Efraim Flashner
2020-08-07 18:45 ` [bug#42741] [PATCH 1/4] gnu: Add python-outcome Brett Gilio
2020-08-07 19:30 ` Vinicius Monego
2020-08-08 13:35 ` Vinicius Monego
2020-08-09 11:55 ` bug#42741: " Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200807132416.49309-4-monego@posteo.net \
--to=monego@posteo.net \
--cc=42744@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).