summaryrefslogtreecommitdiff
path: root/lang/python/python-websockets
diff options
context:
space:
mode:
authorMichal Vasilek <michal.vasilek@nic.cz>2021-09-27 17:52:46 +0200
committerJosef Schlehofer <pepe.schlehofer@gmail.com>2021-10-26 11:09:08 +0200
commit18a48195cf9e2b5cd6b3473ca0579dea438fe702 (patch)
tree92482f39d20ead9a1af2f7cdfc86cc9bd9faec96 /lang/python/python-websockets
parentbf3fc8365f648d101bd0d8f3c4faf7e3053f0d6d (diff)
python-websockets: new package
Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz> (cherry picked from commit bc10fbaebffb036731b4e9a1fdc40c9d1f535ba0)
Diffstat (limited to 'lang/python/python-websockets')
-rw-r--r--lang/python/python-websockets/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/lang/python/python-websockets/Makefile b/lang/python/python-websockets/Makefile
new file mode 100644
index 000000000..b669fa77d
--- /dev/null
+++ b/lang/python/python-websockets/Makefile
@@ -0,0 +1,45 @@
+#
+# Copyright (C) 2018-2021 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=python-websockets
+PKG_VERSION:=10.0
+PKG_RELEASE:=$(AUTORELEASE)
+
+PYPI_NAME:=websockets
+PKG_HASH:=c4fc9a1d242317892590abe5b61a9127f1a61740477bfb121743f290b8054002
+
+PKG_MAINTAINER:=Michal Vasilek <michal.vasilek@nic.cz>
+PKG_LICENSE:=BSD-3-Clause
+PKG_LICENSE_FILES:=LICENSE
+
+include ../pypi.mk
+include $(INCLUDE_DIR)/package.mk
+include ../python3-package.mk
+
+define Package/python3-websockets
+ SECTION:=lang
+ CATEGORY:=Languages
+ SUBMENU:=Python
+ TITLE:=Library for developing WebSocket servers and clients
+ URL:=https://websockets.readthedocs.io/
+ DEPENDS:=+python3-light +python3-asyncio +python3-ctypes +python3-email \
+ +python3-logging +python3-urllib
+endef
+
+define Package/python3-websockets/description
+ websockets is a library for building WebSocket servers and clients
+ in Python with a focus on correctness and simplicity.
+
+ Built on top of asyncio, Python’s standard asynchronous I/O framework.
+ It provides an elegant coroutine-based API.
+endef
+
+$(eval $(call Py3Package,python3-websockets))
+$(eval $(call BuildPackage,python3-websockets))
+$(eval $(call BuildPackage,python3-websockets-src))