1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, asgiref
5, django
6, daphne
7, pytest-asyncio
8, pytest-django
9, pytestCheckHook
10}:
11
12buildPythonPackage rec {
13 pname = "channels";
14 version = "3.0.4";
15
16 src = fetchFromGitHub {
17 owner = "django";
18 repo = pname;
19 rev = version;
20 sha256 = "0jdylcb77n04rqyzg9v6qfzaxp1dnvdvnxddwh3x1qazw3csi5y2";
21 };
22
23 propagatedBuildInputs = [
24 asgiref
25 django
26 daphne
27 ];
28
29 checkInputs = [
30 pytest-asyncio
31 pytest-django
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "channels" ];
36
37 meta = with lib; {
38 description = "Brings event-driven capabilities to Django with a channel system";
39 license = licenses.bsd3;
40 homepage = "https://github.com/django/channels";
41 maintainers = with maintainers; [ fab ];
42 };
43}