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