Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 58 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ lib, asgiref, buildPythonPackage, daphne, django, fetchFromGitHub, async-timeout, pytest-asyncio, pytest-django, pytestCheckHook, pythonOlder, setuptools,}:
buildPythonPackage rec { pname = "channels"; version = "4.2.2"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "django"; repo = "channels"; tag = version; hash = "sha256-Hx6ItDLt+QAy43SvyYVUY76Sva7+MYjcz0wJeXES/HQ="; };
build-system = [ setuptools ];
dependencies = [ asgiref django ];
optional-dependencies = { daphne = [ daphne ]; };
nativeCheckInputs = [ async-timeout pytest-asyncio pytest-django pytestCheckHook ] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "channels" ];
meta = with lib; { description = "Brings event-driven capabilities to Django with a channel system"; homepage = "https://github.com/django/channels"; changelog = "https://github.com/django/channels/blob/${version}/CHANGELOG.txt"; license = licenses.bsd3; maintainers = with maintainers; [ fab ]; };}