[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
17/26: gnu: Add python-janus.
From: |
guix-commits |
Subject: |
17/26: gnu: Add python-janus. |
Date: |
Mon, 18 Oct 2021 03:27:51 -0400 (EDT) |
lbraun pushed a commit to branch master
in repository guix.
commit 6ff3c33a0ee40afecc523809edeaa23ede9b2d74
Author: Sébastien Lerique <sl@eauchat.org>
AuthorDate: Fri Oct 15 11:40:29 2021 +0900
gnu: Add python-janus.
* gnu/packages/python-xyz.scm (python-janus): New variable.
Signed-off-by: Lars-Dominik Braun <lars@6xq.net>
---
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 49aeb08..a99df74 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -230,6 +230,45 @@
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-26))
+(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")
- 01/26: gnu: Add python-hypothesis-6.23., (continued)
- 01/26: gnu: Add python-hypothesis-6.23., guix-commits, 2021/10/18
- 02/26: gnu: python-peewee: Update to 3.14.4., guix-commits, 2021/10/18
- 05/26: gnu: python-hyperframe: Update to 6.0.1., guix-commits, 2021/10/18
- 03/26: gnu: python-pycryptodome: Update to 3.11.0., guix-commits, 2021/10/18
- 04/26: gnu: python-aiohttp-socks: Update to 0.6.0., guix-commits, 2021/10/18
- 06/26: gnu: python-h11: Update to 0.12.0., guix-commits, 2021/10/18
- 07/26: gnu: python-socks: Update to 1.2.4., guix-commits, 2021/10/18
- 08/26: gnu: python-hpack: Update to 4.0.0., guix-commits, 2021/10/18
- 09/26: gnu: python-h2: Update to 4.1.0., guix-commits, 2021/10/18
- 10/26: gnu: python-future: Update to 0.18.2., guix-commits, 2021/10/18
- 17/26: gnu: Add python-janus.,
guix-commits <=
- 18/26: gnu: Add python-logbook., guix-commits, 2021/10/18
- 21/26: gnu: Add python-olm., guix-commits, 2021/10/18
- 13/26: gnu: python-ukpostcodeparser: Update to 1.1.2., guix-commits, 2021/10/18
- 20/26: gnu: Add python-aspectlib., guix-commits, 2021/10/18
- 22/26: gnu: Add python-matrix-nio., guix-commits, 2021/10/18
- 12/26: gnu: python-faker: Update to 9.3.1., guix-commits, 2021/10/18
- 24/26: gnu: python-socks: Fix indentation., guix-commits, 2021/10/18
- 23/26: gnu: Add pantalaimon., guix-commits, 2021/10/18
- 26/26: gnu: python-xyz.scm: Add copyright line., guix-commits, 2021/10/18
- 25/26: gnu: python-faker: Fix indentation., guix-commits, 2021/10/18