2017-04-26 13:37:24 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchurl,
|
|
|
|
asgiref, asgi_ipc, msgpack, six, redis, cryptography
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
2017-06-21 08:03:40 +01:00
|
|
|
version = "1.4.2";
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "asgi_redis";
|
|
|
|
name = "${pname}-${version}";
|
2017-04-26 13:37:24 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/a/asgi_redis/${name}.tar.gz";
|
2017-06-21 08:03:40 +01:00
|
|
|
sha256 = "aa8e9342a3e66c4e7f9035b074f6f66b92e5f1cf8022f1446106ed6dd004a274";
|
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;
|
|
|
|
homepage = http://github.com/django/asgi_redis/;
|
|
|
|
};
|
|
|
|
}
|