2017-02-20 16:31:36 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchurl,
|
2017-04-26 15:07:22 +02:00
|
|
|
asgiref, autobahn, twisted, hypothesis
|
2017-02-20 16:31:36 +01:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 11:25:35 +02:00
|
|
|
pname = "daphne";
|
|
|
|
name = "${pname}-${version}";
|
2017-04-26 15:07:22 +02:00
|
|
|
version = "1.2.0";
|
2017-02-20 16:31:36 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/d/daphne/${name}.tar.gz";
|
2017-04-26 15:07:22 +02:00
|
|
|
sha256 = "084216isw7rwy693i62rbd8kvpqx418jvf1q72cplv833wz3in7l";
|
2017-02-20 16:31:36 +01:00
|
|
|
};
|
|
|
|
|
2017-04-26 15:07:22 +02:00
|
|
|
buildInputs = [ hypothesis ];
|
2017-02-20 16:31:36 +01:00
|
|
|
propagatedBuildInputs = [ asgiref autobahn twisted ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Django ASGI (HTTP/WebSocket) server";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
homepage = https://github.com/django/daphne;
|
|
|
|
};
|
|
|
|
}
|