2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2021-01-05 17:05:55 +00:00
|
|
|
, aioredis
|
|
|
|
, asgiref
|
|
|
|
, buildPythonPackage
|
|
|
|
, channels
|
2022-10-30 15:09:59 +00:00
|
|
|
, cryptography
|
|
|
|
, fetchFromGitHub
|
2021-01-05 17:05:55 +00:00
|
|
|
, hiredis
|
|
|
|
, msgpack
|
|
|
|
, pythonOlder
|
|
|
|
, redis
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "channels-redis";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "4.1.0";
|
2022-10-30 15:09:59 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "django";
|
|
|
|
repo = "channels_redis";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-Eid9aWlLNnqr3WAnsLe+Pz9gsugCsdDKi0+nFNF02CI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
buildInputs = [
|
|
|
|
hiredis
|
|
|
|
redis
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aioredis
|
|
|
|
asgiref
|
|
|
|
channels
|
|
|
|
msgpack
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
|
|
|
cryptography = [
|
|
|
|
cryptography
|
|
|
|
];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
# Fails with : ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 6379)
|
|
|
|
# (even with a local Redis instance running)
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"channels_redis"
|
|
|
|
];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Redis-backed ASGI channel layer implementation";
|
2022-10-30 15:09:59 +00:00
|
|
|
homepage = "https://github.com/django/channels_redis/";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/django/channels_redis/blob/${version}/CHANGELOG.txt";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ mmai ];
|
|
|
|
};
|
|
|
|
}
|