Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5e9d92c83922
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 80c16755813a
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jan 1, 2021

  1. python3Packages.channels-redis: 2.4.0 -> 3.2.0

    fabaff authored and Jonathan Ringer committed Jan 1, 2021
    Copy the full SHA
    80c1675 View commit details
Showing with 17 additions and 26 deletions.
  1. +17 −26 pkgs/development/python-modules/channels-redis/default.nix
43 changes: 17 additions & 26 deletions pkgs/development/python-modules/channels-redis/default.nix
Original file line number Diff line number Diff line change
@@ -1,51 +1,42 @@
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder
, redis, channels, msgpack, aioredis, hiredis, asgiref
# , fetchFromGitHub, async_generator, async-timeout, cryptography, pytest, pytest-asyncio
{ stdenv
, aioredis
, asgiref
, buildPythonPackage
, channels
, fetchPypi
, hiredis
, msgpack
, pythonOlder
, redis
}:

buildPythonPackage rec {
pname = "channels-redis";
version = "2.4.0";
version = "3.2.0";

disabled = pythonOlder "3.6";

src = fetchPypi {
inherit version;
pname = "channels_redis";
sha256 = "1g4izdf8237pwxn85bv5igc2bajrvck1p2a7q448qmjfznrbrk5p";
sha256 = "1rjs9irnq59yr6zwc9k6nnw6xrmr48dakrm25m0gcwskn1iimcrg";
};

buildInputs = [ redis hiredis ];

propagatedBuildInputs = [ channels msgpack aioredis asgiref ];

# Fetch from github (no tests files on pypi)
# src = fetchFromGitHub {
# rev = version;
# 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/
# '';
# 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" ];

meta = with stdenv.lib; {
homepage = "https://github.com/django/channels_redis/";
description = "Redis-backed ASGI channel layer implementation";