mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
package/python-daphne: new package
Daphne is a HTTP, HTTP2 and WebSocket protocol server for ASGI and ASGI-HTTP, developed to power Django Channels. It supports automatic negotiation of protocols; there's no need for URL prefixing to determine WebSocket endpoints versus HTTP endpoints. In addition, add the patch: remove pytest-runner-requirement. Setup and runtime work without without pytest-runner as such, it is not actually a requirement for building. Signed-off-by: Adam Duskett <Aduskett@gmail.com> [Thomas: - alphabetic ordering of select in Config.in - make the license more precise, as suggested by Yegor] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
0864b16dcc
commit
2319da688e
@ -55,6 +55,7 @@ F: package/php/
|
|||||||
F: package/policycoreutils/
|
F: package/policycoreutils/
|
||||||
F: package/python3/
|
F: package/python3/
|
||||||
F: package/python-asgiref/
|
F: package/python-asgiref/
|
||||||
|
F: package/python-daphne/
|
||||||
F: package/python-django-enumfields/
|
F: package/python-django-enumfields/
|
||||||
F: package/python-flask-sqlalchemy/
|
F: package/python-flask-sqlalchemy/
|
||||||
F: package/python-mutagen/
|
F: package/python-mutagen/
|
||||||
|
@ -874,6 +874,7 @@ menu "External python modules"
|
|||||||
source "package/python-cycler/Config.in"
|
source "package/python-cycler/Config.in"
|
||||||
source "package/python-daemon/Config.in"
|
source "package/python-daemon/Config.in"
|
||||||
source "package/python-daemonize/Config.in"
|
source "package/python-daemonize/Config.in"
|
||||||
|
source "package/python-daphne/Config.in"
|
||||||
source "package/python-dataproperty/Config.in"
|
source "package/python-dataproperty/Config.in"
|
||||||
source "package/python-dateutil/Config.in"
|
source "package/python-dateutil/Config.in"
|
||||||
source "package/python-decorator/Config.in"
|
source "package/python-decorator/Config.in"
|
||||||
|
@ -0,0 +1,27 @@
|
|||||||
|
From f9d881cc55c89f51240f93308713216cfec793eb Mon Sep 17 00:00:00 2001
|
||||||
|
From: Adam Duskett <Aduskett@gmail.com>
|
||||||
|
Date: Sat, 3 Aug 2019 14:23:19 -0400
|
||||||
|
Subject: [PATCH] remove pytest-runner requirement
|
||||||
|
|
||||||
|
Setup does not actually require pytest-runner. As such, remove it.
|
||||||
|
|
||||||
|
Signed-off-by: Adam Duskett <Aduskett@gmail.com>
|
||||||
|
---
|
||||||
|
setup.py | 1 -
|
||||||
|
1 file changed, 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index 64e94f1..4e3abb0 100755
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -23,7 +23,6 @@ setup(
|
||||||
|
packages=find_packages() + ["twisted.plugins"],
|
||||||
|
include_package_data=True,
|
||||||
|
install_requires=["twisted>=18.7", "autobahn>=0.18", "asgiref~=3.0"],
|
||||||
|
- setup_requires=["pytest-runner"],
|
||||||
|
extras_require={
|
||||||
|
"tests": ["hypothesis~=3.88", "pytest~=3.10", "pytest-asyncio~=0.8"]
|
||||||
|
},
|
||||||
|
--
|
||||||
|
2.21.0
|
||||||
|
|
14
package/python-daphne/Config.in
Normal file
14
package/python-daphne/Config.in
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
config BR2_PACKAGE_PYTHON_DAPHNE
|
||||||
|
bool "python-daphne"
|
||||||
|
depends on BR2_PACKAGE_PYTHON3
|
||||||
|
select BR2_PACKAGE_PYTHON_ASGIREF # runtime
|
||||||
|
select BR2_PACKAGE_PYTHON_AUTOBAHN # runtime
|
||||||
|
select BR2_PACKAGE_PYTHON_TWISTED # runtime
|
||||||
|
help
|
||||||
|
Daphne is a HTTP, HTTP2 and WebSocket protocol server for
|
||||||
|
ASGI and ASGI-HTTP, developed to power Django Channels.
|
||||||
|
It supports automatic negotiation of protocols; there's no
|
||||||
|
need for URL prefixing to determine WebSocket endpoints
|
||||||
|
versus HTTP endpoints.
|
||||||
|
|
||||||
|
https://github.com/django/daphne
|
5
package/python-daphne/python-daphne.hash
Normal file
5
package/python-daphne/python-daphne.hash
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# md5, sha256 from https://pypi.org/pypi/daphne/json
|
||||||
|
md5 cac7352d0ebdde4f0cc245ae0b0682f8 daphne-2.3.0.tar.gz
|
||||||
|
sha256 2329b7a74b5559f7ea012879c10ba945c3a53df7d8d2b5932a904e3b4c9abcc2 daphne-2.3.0.tar.gz
|
||||||
|
# Locally computed sha256
|
||||||
|
sha256 55d7d6117493d69de1c7c211b947b910a715030366f1b636d28cf6891dfc1f3d PKG-INFO
|
15
package/python-daphne/python-daphne.mk
Normal file
15
package/python-daphne/python-daphne.mk
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
################################################################################
|
||||||
|
#
|
||||||
|
# python-daphne
|
||||||
|
#
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
PYTHON_DAPHNE_VERSION = 2.3.0
|
||||||
|
PYTHON_DAPHNE_SOURCE = daphne-$(PYTHON_DAPHNE_VERSION).tar.gz
|
||||||
|
PYTHON_DAPHNE_SITE = https://files.pythonhosted.org/packages/7b/f1/994f55248e27059e160f9d07bf5d325a9891b99daf1eb775a14110e91e5b
|
||||||
|
PYTHON_DAPHNE_SETUP_TYPE = setuptools
|
||||||
|
# https://github.com/django/daphne/blob/master/LICENSE
|
||||||
|
PYTHON_DAPHNE_LICENSE = BSD-3-Clause
|
||||||
|
PYTHON_DAPHNE_LICENSE_FILES = PKG-INFO
|
||||||
|
|
||||||
|
$(eval $(python-package))
|
Loading…
x
Reference in New Issue
Block a user