GNU bug report logs -
#42744
[PATCH 4/4] gnu: Add python-pytest-trio.
Previous Next
Reported by: Vinicius Monego <monego <at> posteo.net>
Date: Fri, 7 Aug 2020 13:25:04 UTC
Severity: normal
Tags: patch
Done: Efraim Flashner <efraim <at> flashner.co.il>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* 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
This bug report was last modified 4 years and 364 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.