python3Packages.channels-redis: 2.4.0 -> 3.2.0

authored by Fabian Affolter and committed by Jonathan Ringer 80c16755 5e9d92c8

+17 -26
+17 -26
pkgs/development/python-modules/channels-redis/default.nix
··· 1 - { stdenv, buildPythonPackage, fetchPypi, pythonOlder 2 - , redis, channels, msgpack, aioredis, hiredis, asgiref 3 - # , fetchFromGitHub, async_generator, async-timeout, cryptography, pytest, pytest-asyncio 1 + { stdenv 2 + , aioredis 3 + , asgiref 4 + , buildPythonPackage 5 + , channels 6 + , fetchPypi 7 + , hiredis 8 + , msgpack 9 + , pythonOlder 10 + , redis 4 11 }: 5 12 6 13 buildPythonPackage rec { 7 14 pname = "channels-redis"; 8 - version = "2.4.0"; 15 + version = "3.2.0"; 9 16 10 17 disabled = pythonOlder "3.6"; 11 18 12 19 src = fetchPypi { 13 20 inherit version; 14 21 pname = "channels_redis"; 15 - sha256 = "1g4izdf8237pwxn85bv5igc2bajrvck1p2a7q448qmjfznrbrk5p"; 22 + sha256 = "1rjs9irnq59yr6zwc9k6nnw6xrmr48dakrm25m0gcwskn1iimcrg"; 16 23 }; 17 24 18 25 buildInputs = [ redis hiredis ]; 19 26 20 27 propagatedBuildInputs = [ channels msgpack aioredis asgiref ]; 21 28 22 - # Fetch from github (no tests files on pypi) 23 - # src = fetchFromGitHub { 24 - # rev = version; 25 - # owner = "django"; 26 - # repo = "channels_redis"; 27 - # sha256 = "05niaqjv790mnrvca26kbnvb50fgnk2zh0k4np60cn6ilp4nl0kc"; 28 - # }; 29 - # 30 - # checkInputs = [ 31 - # async_generator 32 - # async-timeout 33 - # cryptography 34 - # pytest 35 - # pytest-asyncio 36 - # ]; 37 - # 38 - # # Fails with : ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 6379) 39 - # # (even with a local redis instance running) 40 - # checkPhase = '' 41 - # pytest -p no:django tests/ 42 - # ''; 29 + # Fails with : ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 6379) 30 + # (even with a local Redis instance running) 31 + doCheck = false; 43 32 44 33 postPatch = '' 45 34 sed -i "s/msgpack~=0.6.0/msgpack/" setup.py 46 35 sed -i "s/aioredis~=1.0/aioredis/" setup.py 47 36 ''; 37 + 38 + pythonImportsCheck = [ "channels_redis" ]; 48 39 49 40 meta = with stdenv.lib; { 50 41 homepage = "https://github.com/django/channels_redis/";