diff --git a/dev-python/channels/Manifest b/dev-python/channels/Manifest new file mode 100644 index 0000000000..93bbf27137 --- /dev/null +++ b/dev-python/channels/Manifest @@ -0,0 +1 @@ +DIST channels-4.3.2.gh.tar.gz 206077 BLAKE2B c0913d67dc74bc728dd828584cf803b4ad175bab717de71ccf1e1c5b6aaca296fd15d011deb07b2876e63b7daaefab5e5ee24c323e907b3c563f5358759f14b8 SHA512 29d9c91aca721fad44143978863c45812bf596bb65cf99084803f78d85c664d5cc7ca1015df151cdc27754b822c9cfd18102989b6e5f59bc50257f6c9d8b8b3e diff --git a/dev-python/channels/channels-4.3.2.ebuild b/dev-python/channels/channels-4.3.2.ebuild new file mode 100644 index 0000000000..df1bc7ea62 --- /dev/null +++ b/dev-python/channels/channels-4.3.2.ebuild @@ -0,0 +1,62 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{12..14} ) + +inherit distutils-r1 #pypi + +DESCRIPTION="Brings async, event-driven capabilities to Django" +HOMEPAGE=" + https://channels.readthedocs.io/ + https://github.com/django/channels/ + https://pypi.org/project/channels/ +" +# no tests in sdist +SRC_URI=" + https://github.com/django/channels/archive/refs/tags/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + =dev-python/asgiref-3.9.0[${PYTHON_USEDEP}] + >=dev-python/django-4.2[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/async-timeout[${PYTHON_USEDEP}] + dev-python/selenium[${PYTHON_USEDEP}] + ) +" + +EPYTEST_IGNORE=( + # avoid daphne as it requires autobahn + tests/sample_project/tests/test_selenium.py + tests/security/test_websocket.py + tests/test_database.py + tests/test_generic_http.py + tests/test_generic_websocket.py + tests/test_http.py + tests/test_testing.py +) + +EPYTEST_PLUGINS=( pytest-django pytest-asyncio ) +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/channels-4.3.2-fix-install.patch +) + +python_prepare_all() { + # avoid daphne as it requires autobahn + sed -e '/"daphne"/d' -i tests/sample_project/config/settings.py || die + + distutils-r1_python_prepare_all +} diff --git a/dev-python/channels/files/channels-4.3.2-fix-install.patch b/dev-python/channels/files/channels-4.3.2-fix-install.patch new file mode 100644 index 0000000000..18eca8f754 --- /dev/null +++ b/dev-python/channels/files/channels-4.3.2-fix-install.patch @@ -0,0 +1,14 @@ +diff --git a/setup.cfg b/setup.cfg +index 742e1f6..43d8c0d 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -52,7 +52,7 @@ types = + + [options.packages.find] + exclude = +- tests ++ tests* + + [flake8] + exclude = venv/*,tox/*,docs/*,testproject/*,build/* + diff --git a/dev-python/channels/metadata.xml b/dev-python/channels/metadata.xml new file mode 100644 index 0000000000..cccc435000 --- /dev/null +++ b/dev-python/channels/metadata.xml @@ -0,0 +1,13 @@ + + + + + negril.nx+gentoo@gmail.com + Paul Zander + + + + django/channels + channels + +