emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#42744: closed ([PATCH 4/4] gnu: Add python-pytest-trio.)


From: GNU bug Tracking System
Subject: bug#42744: closed ([PATCH 4/4] gnu: Add python-pytest-trio.)
Date: Sun, 09 Aug 2020 11:58:02 +0000

Your message dated Sun, 9 Aug 2020 14:56:25 +0300
with message-id <20200809115625.GF840@E5400>
and subject line Re: [bug#42744] [PATCH 4/4] gnu: Add python-pytest-trio.
has caused the debbugs.gnu.org bug report #42744,
regarding [PATCH 4/4] gnu: Add python-pytest-trio.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
42744: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=42744
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH 4/4] gnu: Add python-pytest-trio. Date: Fri, 7 Aug 2020 10:24:16 -0300
* 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




--- End Message ---
--- Begin Message --- Subject: Re: [bug#42744] [PATCH 4/4] gnu: Add python-pytest-trio. Date: Sun, 9 Aug 2020 14:56:25 +0300
Thanks! Pushed as 51431f0b9fe7a2b2aba12287fc9ec9a31cc1a36f


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

Attachment: signature.asc
Description: PGP signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]