[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
142/166: gnu: Add python-aioredis.
From: |
guix-commits |
Subject: |
142/166: gnu: Add python-aioredis. |
Date: |
Tue, 19 Apr 2022 09:12:33 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython+polyglossia
in repository guix.
commit ca583a9620a9e87360d82b657a6e2b78e9df092e
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Apr 18 09:17:07 2022 -0400
gnu: Add python-aioredis.
* gnu/packages/databases.scm (python-aioredis): New variable.
---
gnu/packages/databases.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 539d4c3a3f..2caac329eb 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -3920,6 +3920,41 @@ parsing code in hiredis. It primarily speeds up parsing
of multi bulk replies."
(define-public python2-hiredis
(package-with-python2 python-hiredis))
+(define-public python-aioredis
+ (package
+ (name "python-aioredis")
+ (version "2.0.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "aioredis" version))
+ (sha256
+ (base32 "13nrkk45az6qdiwfpbw80ls6bfip0i27qlkh9gsp2b9zk6pim9ga"))))
+ (build-system python-build-system)
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ (add-before 'check 'start-redis
+ (lambda _
+ (invoke "redis-server" "--daemonize" "yes")))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv")))))))
+ (native-inputs
+ (list python-pytest
+ python-pytest-asyncio
+ python-uvloop
+ redis))
+ (propagated-inputs
+ (list python-async-timeout
+ python-hiredis
+ python-typing-extensions))
+ (home-page "https://github.com/aio-libs/aioredis-py")
+ (synopsis "Redis support for Python's @code{asyncio} module")
+ (description "This package provides Redis support for the Python
+@code{asyncio} (PEP 3156) module.")
+ (license license:expat)))
+
(define-public python-fakeredis
(package
(name "python-fakeredis")
- 95/166: gnu: python-trio: Update to 0.20.0., (continued)
- 95/166: gnu: python-trio: Update to 0.20.0., guix-commits, 2022/04/19
- 112/166: gnu: Add texlive-lm-math., guix-commits, 2022/04/19
- 103/166: gnu: python-jupyter-core: Update to 4.10.0., guix-commits, 2022/04/19
- 120/166: gnu: python-sphinx: Propagate TexLive dependencies., guix-commits, 2022/04/19
- 114/166: gnu: Add python-jupyter-server-mathjax., guix-commits, 2022/04/19
- 111/166: gnu: Add texlive-unicode-math., guix-commits, 2022/04/19
- 117/166: gnu: python-notebook: Update to 6.4.10., guix-commits, 2022/04/19
- 139/166: gnu: python-sqlalchemy: Run tests in parallel via xdist., guix-commits, 2022/04/19
- 106/166: gnu: Add python-pytest-tornado., guix-commits, 2022/04/19
- 145/166: gnu: Add python-dictpath., guix-commits, 2022/04/19
- 142/166: gnu: Add python-aioredis.,
guix-commits <=
- 154/166: gnu: python-scikit-learn: Parallelize build and test suite., guix-commits, 2022/04/19
- 156/166: gnu: python-umap-learn: Update to 0.5.3., guix-commits, 2022/04/19
- 157/166: gnu: python-jupyter-server: Update to 1.16.0., guix-commits, 2022/04/19
- 158/166: gnu: python-voila: Update to 0.3.5., guix-commits, 2022/04/19
- 160/166: gnu: python-sparqlkernel: Use gexps and fix inputs., guix-commits, 2022/04/19