python310Packages.channels-redis: 3.4.1 -> 4.0.0
This commit is contained in:
parent
5804c8cde2
commit
a169e6f7b2
@ -3,7 +3,8 @@
|
||||
, asgiref
|
||||
, buildPythonPackage
|
||||
, channels
|
||||
, fetchPypi
|
||||
, cryptography
|
||||
, fetchFromGitHub
|
||||
, hiredis
|
||||
, msgpack
|
||||
, pythonOlder
|
||||
@ -12,34 +13,47 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "channels-redis";
|
||||
version = "3.4.1";
|
||||
version = "4.0.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
pname = "channels_redis";
|
||||
sha256 = "sha256-eOSi8rKnRP5ah4SOw2te5J9SLGgIzv5sWDZj0NUx+qg=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "django";
|
||||
repo = "channels_redis";
|
||||
rev = version;
|
||||
hash = "sha256-YiLNrMRroa8T4uPNwa5ussFoFYjyg31waGpBGhAETmY=";
|
||||
};
|
||||
|
||||
buildInputs = [ redis hiredis ];
|
||||
buildInputs = [
|
||||
hiredis
|
||||
redis
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ channels msgpack aioredis asgiref ];
|
||||
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;
|
||||
|
||||
postPatch = ''
|
||||
sed -i "s/msgpack~=0.6.0/msgpack/" setup.py
|
||||
sed -i "s/aioredis~=1.0/aioredis/" setup.py
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "channels_redis" ];
|
||||
pythonImportsCheck = [
|
||||
"channels_redis"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/django/channels_redis/";
|
||||
description = "Redis-backed ASGI channel layer implementation";
|
||||
homepage = "https://github.com/django/channels_redis/";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ mmai ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user