nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 46 lines 1.0 kB view raw
1{ lib 2, aioredis 3, asgiref 4, buildPythonPackage 5, channels 6, fetchPypi 7, hiredis 8, msgpack 9, pythonOlder 10, redis 11}: 12 13buildPythonPackage rec { 14 pname = "channels-redis"; 15 version = "3.4.0"; 16 17 disabled = pythonOlder "3.6"; 18 19 src = fetchPypi { 20 inherit version; 21 pname = "channels_redis"; 22 sha256 = "sha256-Xf/UzBYXQSW9QEP8j+dGLKdAPPgB1Zqfp0EO0QH6alc="; 23 }; 24 25 buildInputs = [ redis hiredis ]; 26 27 propagatedBuildInputs = [ channels msgpack aioredis asgiref ]; 28 29 # Fails with : ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 6379) 30 # (even with a local Redis instance running) 31 doCheck = false; 32 33 postPatch = '' 34 sed -i "s/msgpack~=0.6.0/msgpack/" setup.py 35 sed -i "s/aioredis~=1.0/aioredis/" setup.py 36 ''; 37 38 pythonImportsCheck = [ "channels_redis" ]; 39 40 meta = with lib; { 41 homepage = "https://github.com/django/channels_redis/"; 42 description = "Redis-backed ASGI channel layer implementation"; 43 license = licenses.bsd3; 44 maintainers = with maintainers; [ mmai ]; 45 }; 46}