2017-09-28 13:01:19 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi,
|
2017-04-26 13:37:24 +01:00
|
|
|
asgiref, asgi_ipc, msgpack, six, redis, cryptography
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
2017-09-28 13:01:19 +01:00
|
|
|
version = "1.4.3";
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "asgi_redis";
|
|
|
|
name = "${pname}-${version}";
|
2017-04-26 13:37:24 +01:00
|
|
|
|
2017-09-28 13:01:19 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "10xk7k7mcd28nb3v93mc8xa7sa6p02jnbl8idk6scr6p75jaixzi";
|
2017-04-26 13:37:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# Requires a redis server available
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ asgiref asgi_ipc msgpack six redis cryptography ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Redis-backed ASGI channel layer implementation";
|
|
|
|
license = licenses.bsd3;
|
2017-11-10 21:13:27 +00:00
|
|
|
homepage = https://github.com/django/asgi_redis/;
|
2017-04-26 13:37:24 +01:00
|
|
|
};
|
|
|
|
}
|