1{ lib
2, buildPythonPackage
3, fetchPypi
4, async-timeout
5, typing-extensions
6, hiredis
7, isPyPy
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "aioredis";
13 version = "2.0.0";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "3a2de4b614e6a5f8e104238924294dc4e811aefbe17ddf52c04a93cbf06e67db";
20 };
21
22 propagatedBuildInputs = [
23 async-timeout
24 typing-extensions
25 ] ++ lib.optional (!isPyPy) hiredis;
26
27 # Wants to run redis-server, hardcoded FHS paths, too much trouble.
28 doCheck = false;
29
30 meta = with lib; {
31 description = "Asyncio (PEP 3156) Redis client library";
32 homepage = "https://github.com/aio-libs/aioredis";
33 license = licenses.mit;
34 maintainers = with maintainers; [ mmai ];
35 };
36}