[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#41807] [PATCH 07/26] gnu: Add python-trio.
From: |
Giacomo Leidi |
Subject: |
[bug#41807] [PATCH 07/26] gnu: Add python-trio. |
Date: |
Thu, 11 Jun 2020 17:13:38 +0200 |
* gnu/packages/python-xyz.scm (python-trio): New variable.
---
gnu/packages/python-xyz.scm | 58 +++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f1feccd8c2..b6dec540ab 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20220,3 +20220,61 @@ async function is running under.")
TLS certificates for testing purposes.")
;; Choice of either license.
(license (list license:expat license:asl2.0))))
+
+(define-public python-trio
+ (package
+ (name "python-trio")
+ (version "0.15.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "trio" version))
+ (sha256
+ (base32
+ "0cvzd0ls2c5971v7rw1jpxq533sdjblb15xwsd2axcnqp158c41h"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; This test fails with a timeout error.
+ (delete-file "trio/_core/tests/test_ki.py")
+ ;; This test depends on trio/_core/tests/test_ki.py.
+ (delete-file "trio/tests/test_threads.py")
+ ;; This test depends on network access.
+ (delete-file "trio/tests/test_socket.py")
+ ;; This test depends on writing to $HOME.
+ (delete-file "trio/tests/test_exports.py")))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("python-astor" ,python-astor)
+ ("python-jedi" ,python-jedi)
+ ("python-pylint" ,python-pylint)
+ ("python-pyopenssl" ,python-pyopenssl)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)
+ ("python-trustme" ,python-trustme)))
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (invoke "pytest")
+ #t)))))
+ (propagated-inputs
+ `(("python-async-generator"
+ ,python-async-generator)
+ ("python-attrs" ,python-attrs)
+ ("python-cffi" ,python-cffi)
+ ("python-contextvars" ,python-contextvars)
+ ("python-idna" ,python-idna)
+ ("python-outcome" ,python-outcome)
+ ("python-sniffio" ,python-sniffio)
+ ("python-sortedcontainers"
+ ,python-sortedcontainers)))
+ (home-page "https://github.com/python-trio/trio")
+ (synopsis
+ "Python library for async concurrency and I/O")
+ (description
+ "The Trio project's goal is to produce a production-quality,
+permissively licensed, async/await-native I/O library for Python.")
+ ;; Choice of either license.
+ (license (list license:expat license:asl2.0))))
+
--
2.26.2
- [bug#41807] [PATCHES] Add python-sanic and dependencies., paul, 2020/06/11
- [bug#41807] [PATCH 01/26] gnu: Add python-outcome., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 03/26] gnu: Add python-contextvars., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 06/26] gnu: Add python-trustme., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 07/26] gnu: Add python-trio.,
Giacomo Leidi <=
- [bug#41807] [PATCH 08/26] gnu: Add python-httptools., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 13/26] gnu: Add python-h2., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 15/26] gnu: Add python-mypy-extensions., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 18/26] gnu: python-typing-extensions: Update to 3.7.4.2., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 10/26] gnu: Add python-h11., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 20/26] gnu: Add python-nbsphinx., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 21/26] gnu: Add python-dataclasses., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 04/26] gnu: Add python-curio., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 12/26] gnu: Add python-hyperframe., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 05/26] gnu: Add python-sniffio., Giacomo Leidi, 2020/06/11