codesnap: init at 0.8.2 (#364266)
[NixPkgs.git] / pkgs / development / python-modules / channels / default.nix
blob6611b3bae32e2cfeb891f50e087e8e1103630df8
2   lib,
3   asgiref,
4   buildPythonPackage,
5   daphne,
6   django,
7   fetchFromGitHub,
8   async-timeout,
9   pytest-asyncio,
10   pytest-django,
11   pytestCheckHook,
12   pythonOlder,
13   setuptools,
16 buildPythonPackage rec {
17   pname = "channels";
18   version = "4.2.0";
19   pyproject = true;
21   disabled = pythonOlder "3.8";
23   src = fetchFromGitHub {
24     owner = "django";
25     repo = "channels";
26     rev = "refs/tags/${version}";
27     hash = "sha256-JkmS+QVF1MTdLID+c686Fd8L3kA+AIr7sLCaAoABh+s=";
28   };
30   build-system = [ setuptools ];
32   dependencies = [
33     asgiref
34     django
35   ];
37   optional-dependencies = {
38     daphne = [ daphne ];
39   };
41   nativeCheckInputs = [
42     async-timeout
43     pytest-asyncio
44     pytest-django
45     pytestCheckHook
46   ] ++ lib.flatten (builtins.attrValues optional-dependencies);
48   pythonImportsCheck = [ "channels" ];
50   meta = with lib; {
51     description = "Brings event-driven capabilities to Django with a channel system";
52     homepage = "https://github.com/django/channels";
53     changelog = "https://github.com/django/channels/blob/${version}/CHANGELOG.txt";
54     license = licenses.bsd3;
55     maintainers = with maintainers; [ fab ];
56   };