mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
dev-python/channels: new package, add 4.3.2
Signed-off-by: Alfred Wingate <parona@protonmail.com> Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
This commit is contained in:
1
dev-python/channels/Manifest
Normal file
1
dev-python/channels/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST channels-4.3.2.gh.tar.gz 206077 BLAKE2B c0913d67dc74bc728dd828584cf803b4ad175bab717de71ccf1e1c5b6aaca296fd15d011deb07b2876e63b7daaefab5e5ee24c323e907b3c563f5358759f14b8 SHA512 29d9c91aca721fad44143978863c45812bf596bb65cf99084803f78d85c664d5cc7ca1015df151cdc27754b822c9cfd18102989b6e5f59bc50257f6c9d8b8b3e
|
||||
62
dev-python/channels/channels-4.3.2.ebuild
Normal file
62
dev-python/channels/channels-4.3.2.ebuild
Normal file
@@ -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-4[${PYTHON_USEDEP}]
|
||||
>=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
|
||||
}
|
||||
14
dev-python/channels/files/channels-4.3.2-fix-install.patch
Normal file
14
dev-python/channels/files/channels-4.3.2-fix-install.patch
Normal file
@@ -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/*
|
||||
|
||||
13
dev-python/channels/metadata.xml
Normal file
13
dev-python/channels/metadata.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>negril.nx+gentoo@gmail.com</email>
|
||||
<name>Paul Zander</name>
|
||||
</maintainer>
|
||||
<stabilize-allarches/>
|
||||
<upstream>
|
||||
<remote-id type="github">django/channels</remote-id>
|
||||
<remote-id type="pypi">channels</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user