Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 asgiref, 4 buildPythonPackage, 5 channels, 6 cryptography, 7 fetchFromGitHub, 8 msgpack, 9 setuptools, 10 redis, 11}: 12 13buildPythonPackage rec { 14 pname = "channels-redis"; 15 version = "4.3.0"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "django"; 20 repo = "channels_redis"; 21 tag = version; 22 hash = "sha256-zn313s1rzypSR5D3iE/05PeBQkx/Se/yaA3NS9BY//Y="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ 28 redis 29 asgiref 30 channels 31 msgpack 32 ]; 33 34 optional-dependencies = { 35 cryptography = [ cryptography ]; 36 }; 37 38 # Fails with : ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 6379) 39 # (even with a local Redis instance running) 40 doCheck = false; 41 42 pythonImportsCheck = [ "channels_redis" ]; 43 44 meta = with lib; { 45 description = "Redis-backed ASGI channel layer implementation"; 46 homepage = "https://github.com/django/channels_redis/"; 47 changelog = "https://github.com/django/channels_redis/blob/${src.tag}/CHANGELOG.txt"; 48 license = licenses.bsd3; 49 maintainers = with maintainers; [ mmai ]; 50 }; 51}