Files
nixpkgs/pkgs/development/python-modules/channels-redis/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
1.1 KiB
Nix

{
lib,
asgiref,
buildPythonPackage,
channels,
cryptography,
fetchFromGitHub,
msgpack,
setuptools,
redis,
}:
buildPythonPackage rec {
pname = "channels-redis";
version = "4.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "django";
repo = "channels_redis";
tag = version;
hash = "sha256-zn313s1rzypSR5D3iE/05PeBQkx/Se/yaA3NS9BY//Y=";
};
build-system = [ setuptools ];
dependencies = [
redis
asgiref
channels
msgpack
];
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 = {
description = "Redis-backed ASGI channel layer implementation";
homepage = "https://github.com/django/channels_redis/";
changelog = "https://github.com/django/channels_redis/blob/${src.tag}/CHANGELOG.txt";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ mmai ];
};
}