From 229f6d148713cf171edbe7cffcd63c784658a40f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 21 Oct 2022 10:47:58 +0200 Subject: [PATCH] python310Packages.channels: 3.0.5 -> 4.0.0 --- .../python-modules/channels/default.nix | 29 +++++++++++++------ 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/channels/default.nix b/pkgs/development/python-modules/channels/default.nix index e4c8658f59bf..5bc2db228ae4 100644 --- a/pkgs/development/python-modules/channels/default.nix +++ b/pkgs/development/python-modules/channels/default.nix @@ -1,47 +1,58 @@ { lib -, buildPythonPackage -, fetchFromGitHub , asgiref -, django +, buildPythonPackage , daphne +, django +, fetchFromGitHub , pytest-asyncio , pytest-django , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "channels"; - version = "3.0.5"; + version = "4.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "django"; repo = pname; rev = version; - sha256 = "sha256-bKrPLbD9zG7DwIYBst1cb+zkDsM8B02wh3D80iortpw="; + hash = "sha256-n88MxwYQ4O2kBy/W0Zvi3FtIlhZQQRCssB/lYrFNvps="; }; propagatedBuildInputs = [ asgiref django - daphne ]; + passthru.optional-dependencies = { + daphne = [ + daphne + ]; + }; + checkInputs = [ pytest-asyncio pytest-django pytestCheckHook - ]; + ] ++ passthru.optional-dependencies.daphne; pytestFlagsArray = [ "--asyncio-mode=legacy" ]; - pythonImportsCheck = [ "channels" ]; + 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"; + license = licenses.bsd3; maintainers = with maintainers; [ fab ]; }; }