[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#51222] [PATCH 18/25] gnu: Add python-janus.
From: |
Sébastien Lerique |
Subject: |
[bug#51222] [PATCH 18/25] gnu: Add python-janus. |
Date: |
Fri, 15 Oct 2021 11:40:29 +0900 |
* gnu/packages/python-xyz.scm (python-janus): New variable.
---
gnu/packages/python-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 02e605b16d..5f80a39fc0 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -269,6 +269,45 @@ The purpose of this package is to provide an easy way to
test asynchronous
HTTP requests.")
(license license:expat)))
+(define-public python-janus
+ (package
+ (name "python-janus")
+ (version "0.6.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "janus" version))
+ (sha256
+ (base32 "030xvl2vghi5ispfalhvch1rl6i2jsy5bf1dgjafa7vifppy04j7"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest" "--cov=janus" "--cov=tests")))))))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)
+ ("python-pytest-asyncio" ,python-pytest-asyncio)))
+ (home-page "https://github.com/aio-libs/janus/")
+ (synopsis
+ "Sync-async queue to interoperate between asyncio tasks and classic
threads")
+ (description
+ "Mixed sync-async queue, supposed to be used for communicating between
+classic synchronous (threaded) code and asynchronous (in terms of
+@url{https://docs.python.org/3/library/asyncio.html,asyncio}) one. Like
+@url{https://en.wikipedia.org/wiki/Janus,Janus god} the queue object from the
+library has two faces: synchronous and asynchronous interface. Synchronous is
+fully compatible with
+@url{https://docs.python.org/3/library/queue.html,standard queue},
+asynchronous one follows
+@url{https://docs.python.org/3/library/asyncio-queue.html,asyncio queue
+design}.")
+ (license license:asl2.0)))
+
(define-public python-ueberzug
(package
(name "python-ueberzug")
--
2.33.0
- [bug#51222] [PATCH 07/25] gnu: python-socks: Update to 1.2.4., (continued)
- [bug#51222] [PATCH 07/25] gnu: python-socks: Update to 1.2.4., Sébastien Lerique, 2021/10/14
- [bug#51222] [PATCH 10/25] gnu: python-future: Update to 0.18.2., Sébastien Lerique, 2021/10/14
- [bug#51222] [PATCH 09/25] gnu: python-h2: Update to 4.1.0., Sébastien Lerique, 2021/10/14
- [bug#51222] [PATCH 11/25] gnu: python-curio: Update to 1.5., Sébastien Lerique, 2021/10/14
- [bug#51222] [PATCH 13/25] gnu: python-ukpostcodeparser: Update to 1.1.2., Sébastien Lerique, 2021/10/14
- [bug#51222] [PATCH 14/25] gnu: python-unpaddedbase64: Update to 2.1.0., Sébastien Lerique, 2021/10/14
- [bug#51222] [PATCH 16/25] gnu: Add python2-atomicwrites-1.4., Sébastien Lerique, 2021/10/14
- [bug#51222] [PATCH 12/25] gnu: python-faker: Update to 9.3.1., Sébastien Lerique, 2021/10/14
- [bug#51222] [PATCH 15/25] gnu: Add python-atomicwrites-1.4., Sébastien Lerique, 2021/10/14
- [bug#51222] [PATCH 17/25] gnu: Add python-aioresponses., Sébastien Lerique, 2021/10/14
- [bug#51222] [PATCH 18/25] gnu: Add python-janus.,
Sébastien Lerique <=
- [bug#51222] [PATCH 19/25] gnu: Add python-logbook., Sébastien Lerique, 2021/10/14
- [bug#51222] [PATCH 21/25] gnu: Add python-matrix-nio., Sébastien Lerique, 2021/10/14
- [bug#51222] [PATCH 20/25] gnu: Add python-olm., Sébastien Lerique, 2021/10/14
- [bug#51222] [PATCH 22/25] gnu: Add python-pantalaimon., Sébastien Lerique, 2021/10/14
- [bug#51222] [PATCH 23/25] gnu: python-socks: Fix indentation., Sébastien Lerique, 2021/10/14
- [bug#51222] [PATCH 24/25] gnu: python-faker: Fix indentation., Sébastien Lerique, 2021/10/14
- [bug#51222] [PATCH 25/25] gnu: python-xyz.scm: Add copyright line., Sébastien Lerique, 2021/10/14
- [bug#51222] [PATCH 0/25] Package python-pantalaimon, Foo Chuan Wei, 2021/10/15
- [bug#51222] [PATCH 0/25] Package python-pantalaimon, Lars-Dominik Braun, 2021/10/16