2021-01-25 09:26:54 +01:00
|
|
|
{
|
|
|
|
lib,
|
2020-12-28 22:47:16 +01:00
|
|
|
asgiref,
|
|
|
|
buildPythonPackage,
|
|
|
|
channels,
|
2022-10-21 10:56:29 +02:00
|
|
|
cryptography,
|
|
|
|
fetchFromGitHub,
|
2020-12-28 22:47:16 +01:00
|
|
|
msgpack,
|
|
|
|
pythonOlder,
|
|
|
|
redis,
|
2025-04-11 02:59:40 +02:00
|
|
|
setuptools,
|
2019-09-23 12:23:00 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "channels-redis";
|
2025-04-11 02:59:40 +02:00
|
|
|
version = "4.2.1";
|
|
|
|
pyproject = true;
|
2019-09-23 12:23:00 +02:00
|
|
|
|
2022-10-21 10:56:29 +02:00
|
|
|
disabled = pythonOlder "3.7";
|
2019-09-23 12:23:00 +02:00
|
|
|
|
2022-10-21 10:56:29 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "django";
|
|
|
|
repo = "channels_redis";
|
2025-01-03 21:24:13 +01:00
|
|
|
tag = version;
|
2025-04-11 02:59:40 +02:00
|
|
|
hash = "sha256-jQkpuOQNU2KCWavXSE/n8gdpQhhAafQbZYfbX71Rcds=";
|
2019-09-23 12:23:00 +02:00
|
|
|
};
|
|
|
|
|
2025-04-11 02:59:40 +02:00
|
|
|
build-system = [ setuptools ];
|
2022-10-21 10:56:29 +02:00
|
|
|
|
2025-04-11 02:59:40 +02:00
|
|
|
dependencies = [
|
|
|
|
redis
|
2022-10-21 10:56:29 +02:00
|
|
|
asgiref
|
|
|
|
channels
|
|
|
|
msgpack
|
|
|
|
];
|
|
|
|
|
2024-09-28 22:35:45 -07:00
|
|
|
optional-dependencies = {
|
2022-10-21 10:56:29 +02:00
|
|
|
cryptography = [ cryptography ];
|
|
|
|
};
|
2019-09-23 12:23:00 +02:00
|
|
|
|
2020-12-28 22:47:16 +01:00
|
|
|
# Fails with : ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 6379)
|
|
|
|
# (even with a local Redis instance running)
|
|
|
|
doCheck = false;
|
2019-09-23 12:23:00 +02:00
|
|
|
|
2022-10-21 10:56:29 +02:00
|
|
|
pythonImportsCheck = [ "channels_redis" ];
|
2020-12-28 22:47:16 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-09-23 12:23:00 +02:00
|
|
|
description = "Redis-backed ASGI channel layer implementation";
|
2022-10-21 10:56:29 +02:00
|
|
|
homepage = "https://github.com/django/channels_redis/";
|
2023-05-01 20:19:34 +02:00
|
|
|
changelog = "https://github.com/django/channels_redis/blob/${version}/CHANGELOG.txt";
|
2019-09-23 12:23:00 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ mmai ];
|
|
|
|
};
|
|
|
|
}
|