1{ lib 2, aioredis 3, asgiref 4, buildPythonPackage 5, channels 6, cryptography 7, fetchFromGitHub 8, hiredis 9, msgpack 10, pythonOlder 11, redis 12}: 13 14buildPythonPackage rec { 15 pname = "channels-redis"; 16 version = "4.1.0"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "django"; 23 repo = "channels_redis"; 24 rev = "refs/tags/${version}"; 25 hash = "sha256-Eid9aWlLNnqr3WAnsLe+Pz9gsugCsdDKi0+nFNF02CI="; 26 }; 27 28 buildInputs = [ 29 hiredis 30 redis 31 ]; 32 33 propagatedBuildInputs = [ 34 aioredis 35 asgiref 36 channels 37 msgpack 38 ]; 39 40 passthru.optional-dependencies = { 41 cryptography = [ 42 cryptography 43 ]; 44 }; 45 46 # Fails with : ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 6379) 47 # (even with a local Redis instance running) 48 doCheck = false; 49 50 pythonImportsCheck = [ 51 "channels_redis" 52 ]; 53 54 meta = with lib; { 55 description = "Redis-backed ASGI channel layer implementation"; 56 homepage = "https://github.com/django/channels_redis/"; 57 changelog = "https://github.com/django/channels_redis/blob/${version}/CHANGELOG.txt"; 58 license = licenses.bsd3; 59 maintainers = with maintainers; [ mmai ]; 60 }; 61}