summary refs log tree commit diff
path: root/pkgs/development/python-modules/channels/default.nix
blob: e50dc051361a9db29c1c887d098ac4719735956a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib
, buildPythonPackage
, fetchFromGitHub
, asgiref
, django
, daphne
, pytest-asyncio
, pytest-django
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "channels";
  version = "3.0.4";

  src = fetchFromGitHub {
    owner = "django";
    repo = pname;
    rev = version;
    sha256 = "0jdylcb77n04rqyzg9v6qfzaxp1dnvdvnxddwh3x1qazw3csi5y2";
  };

  propagatedBuildInputs = [
    asgiref
    django
    daphne
  ];

  checkInputs = [
    pytest-asyncio
    pytest-django
    pytestCheckHook
  ];

  pythonImportsCheck = [ "channels" ];

  meta = with lib; {
    description = "Brings event-driven capabilities to Django with a channel system";
    license = licenses.bsd3;
    homepage = "https://github.com/django/channels";
    maintainers = with maintainers; [ fab ];
  };
}