python3Packages.channels-redis: 2.4.0 -> 3.2.0
This commit is contained in:
parent
5e9d92c839
commit
80c1675581
|
@ -1,51 +1,42 @@
|
||||||
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder
|
{ stdenv
|
||||||
, redis, channels, msgpack, aioredis, hiredis, asgiref
|
, aioredis
|
||||||
# , fetchFromGitHub, async_generator, async-timeout, cryptography, pytest, pytest-asyncio
|
, asgiref
|
||||||
|
, buildPythonPackage
|
||||||
|
, channels
|
||||||
|
, fetchPypi
|
||||||
|
, hiredis
|
||||||
|
, msgpack
|
||||||
|
, pythonOlder
|
||||||
|
, redis
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "channels-redis";
|
pname = "channels-redis";
|
||||||
version = "2.4.0";
|
version = "3.2.0";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit version;
|
inherit version;
|
||||||
pname = "channels_redis";
|
pname = "channels_redis";
|
||||||
sha256 = "1g4izdf8237pwxn85bv5igc2bajrvck1p2a7q448qmjfznrbrk5p";
|
sha256 = "1rjs9irnq59yr6zwc9k6nnw6xrmr48dakrm25m0gcwskn1iimcrg";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ redis hiredis ];
|
buildInputs = [ redis hiredis ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ channels msgpack aioredis asgiref ];
|
propagatedBuildInputs = [ channels msgpack aioredis asgiref ];
|
||||||
|
|
||||||
# Fetch from github (no tests files on pypi)
|
# Fails with : ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 6379)
|
||||||
# src = fetchFromGitHub {
|
# (even with a local Redis instance running)
|
||||||
# rev = version;
|
doCheck = false;
|
||||||
# owner = "django";
|
|
||||||
# repo = "channels_redis";
|
|
||||||
# sha256 = "05niaqjv790mnrvca26kbnvb50fgnk2zh0k4np60cn6ilp4nl0kc";
|
|
||||||
# };
|
|
||||||
#
|
|
||||||
# checkInputs = [
|
|
||||||
# async_generator
|
|
||||||
# async-timeout
|
|
||||||
# cryptography
|
|
||||||
# pytest
|
|
||||||
# pytest-asyncio
|
|
||||||
# ];
|
|
||||||
#
|
|
||||||
# # Fails with : ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 6379)
|
|
||||||
# # (even with a local redis instance running)
|
|
||||||
# checkPhase = ''
|
|
||||||
# pytest -p no:django tests/
|
|
||||||
# '';
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i "s/msgpack~=0.6.0/msgpack/" setup.py
|
sed -i "s/msgpack~=0.6.0/msgpack/" setup.py
|
||||||
sed -i "s/aioredis~=1.0/aioredis/" setup.py
|
sed -i "s/aioredis~=1.0/aioredis/" setup.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "channels_redis" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://github.com/django/channels_redis/";
|
homepage = "https://github.com/django/channels_redis/";
|
||||||
description = "Redis-backed ASGI channel layer implementation";
|
description = "Redis-backed ASGI channel layer implementation";
|
||||||
|
|
Loading…
Reference in a new issue