From bc10fbaebffb036731b4e9a1fdc40c9d1f535ba0 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Mon, 27 Sep 2021 17:52:46 +0200 Subject: [PATCH 1/2] python-websockets: new package Signed-off-by: Michal Vasilek --- lang/python/python-websockets/Makefile | 45 ++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 lang/python/python-websockets/Makefile 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 +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)) From d5212d38bc7b1402e8d07ff771ffbadd93cfcef3 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Thu, 30 Sep 2021 21:30:08 +0200 Subject: [PATCH 2/2] python3-package.mk: fix syntax error in FindStdlibDepends When running FindStdlib and running DependsCheckHostPipVersionMatch at the same time, both commands were joined together resulting in a syntax error. Signed-off-by: Michal Vasilek --- lang/python/python3-package.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/python/python3-package.mk b/lang/python/python3-package.mk index 96fafe445..20c8ca58a 100644 --- a/lang/python/python3-package.mk +++ b/lang/python/python3-package.mk @@ -201,7 +201,7 @@ PYTHON3_PKG_HOST_PIP_INSTALL_ARGS = \ ) define Py3Build/FindStdlibDepends - $(SHELL) $(python3_mk_path)python3-find-stdlib-depends.sh -n "$(PKG_NAME)" "$(PKG_BUILD_DIR)" + $(SHELL) $(python3_mk_path)python3-find-stdlib-depends.sh -n "$(PKG_NAME)" "$(PKG_BUILD_DIR)"; endef ifneq ($(strip $(PYPI_NAME)),)