1{ stdenv, buildPythonPackage, fetchPypi,
2 asgiref, autobahn, twisted, hypothesis
3}:
4buildPythonPackage rec {
5 pname = "daphne";
6 name = "${pname}-${version}";
7 version = "1.3.0";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "1xmmjp21m1w88ljsgnkf6cbzw5nxamh9cfmfgzxffpn4cdmvn96i";
12 };
13
14 buildInputs = [ hypothesis ];
15 propagatedBuildInputs = [ asgiref autobahn twisted ];
16
17 meta = with stdenv.lib; {
18 description = "Django ASGI (HTTP/WebSocket) server";
19 license = licenses.bsd3;
20 homepage = https://github.com/django/daphne;
21 };
22}