2015-11-30 21:13:23 +08:00
|
|
|
#
|
2023-02-20 10:51:57 +08:00
|
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
|
|
|
# Copyright (C) 2015-2016, 2018-2023 Jeffery To
|
2015-11-30 21:13:23 +08:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2019-02-18 16:11:02 +08:00
|
|
|
PKG_NAME:=python-twisted
|
2023-11-07 17:08:04 +08:00
|
|
|
PKG_VERSION:=23.10.0
|
2021-08-09 17:25:25 +08:00
|
|
|
PKG_RELEASE:=1
|
2015-11-30 21:13:23 +08:00
|
|
|
|
2019-10-21 03:03:12 +08:00
|
|
|
PYPI_NAME:=Twisted
|
2023-09-29 11:37:08 +08:00
|
|
|
PYPI_SOURCE_NAME:=twisted
|
2023-11-07 17:08:04 +08:00
|
|
|
PKG_HASH:=987847a0790a2c597197613686e2784fd54167df3a55d0fb17c8412305d76ce5
|
2015-11-30 21:13:23 +08:00
|
|
|
|
2018-08-13 02:59:01 +08:00
|
|
|
PKG_BUILD_DEPENDS:=libtirpc
|
2015-11-30 21:13:23 +08:00
|
|
|
|
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
2019-09-19 22:07:09 +08:00
|
|
|
PKG_CPE_ID:=cpe:/a:twistedmatrix:twisted
|
2015-11-30 21:13:23 +08:00
|
|
|
|
2023-09-29 11:37:08 +08:00
|
|
|
PKG_BUILD_DEPENDS:=python-hatchling/host python-hatch-fancy-pypi-readme/host python-incremental/host
|
2023-02-20 10:51:57 +08:00
|
|
|
|
2019-10-21 03:03:12 +08:00
|
|
|
include ../pypi.mk
|
2015-11-30 21:13:23 +08:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2019-02-12 19:48:43 +08:00
|
|
|
include ../python3-package.mk
|
2015-11-30 21:13:23 +08:00
|
|
|
|
2020-04-22 01:27:50 +08:00
|
|
|
define Package/python3-twisted
|
2015-11-30 21:13:23 +08:00
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
2019-02-18 16:11:02 +08:00
|
|
|
SUBMENU:=Python
|
2019-02-20 15:19:26 +08:00
|
|
|
TITLE:=Asynchronous networking framework
|
|
|
|
URL:=https://twistedmatrix.com/
|
2019-02-12 19:48:43 +08:00
|
|
|
DEPENDS:= \
|
2021-06-12 06:18:50 +08:00
|
|
|
+python3 \
|
2021-06-12 18:40:09 +08:00
|
|
|
+python3-appdirs \
|
2020-04-22 01:27:50 +08:00
|
|
|
+python3-attrs \
|
|
|
|
+python3-automat \
|
2021-06-12 18:40:09 +08:00
|
|
|
+python3-bcrypt \
|
2020-04-22 01:27:50 +08:00
|
|
|
+python3-constantly \
|
2021-06-12 18:40:09 +08:00
|
|
|
+python3-cryptography \
|
2023-02-20 10:51:57 +08:00
|
|
|
+python3-hyperlink \
|
2021-06-12 18:40:09 +08:00
|
|
|
+python3-idna \
|
2020-04-22 01:27:50 +08:00
|
|
|
+python3-incremental \
|
2021-06-12 18:40:09 +08:00
|
|
|
+python3-pyopenssl \
|
|
|
|
+python3-service-identity \
|
2021-06-12 06:18:50 +08:00
|
|
|
+python3-typing-extensions \
|
2020-04-22 01:27:50 +08:00
|
|
|
+python3-zope-interface
|
2019-02-12 19:48:43 +08:00
|
|
|
endef
|
|
|
|
|
2020-04-01 22:21:16 +08:00
|
|
|
define Package/python3-twisted/description
|
2018-01-16 00:40:45 +08:00
|
|
|
Twisted is a networking engine written in Python, supporting numerous
|
2023-09-29 11:37:08 +08:00
|
|
|
protocols. It contains a web server, numerous chat clients, chat
|
|
|
|
servers, mail servers, and more.
|
2021-06-12 06:18:50 +08:00
|
|
|
endef
|
|
|
|
|
2019-02-12 19:48:43 +08:00
|
|
|
define Py3Package/python3-twisted/filespec
|
|
|
|
+|$(PYTHON3_PKG_DIR)
|
|
|
|
-|$(PYTHON3_PKG_DIR)/twisted/conch/scripts/tkconch.py
|
|
|
|
endef
|
|
|
|
|
2019-02-18 16:11:02 +08:00
|
|
|
define Py3Package/python3-twisted/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
|
|
|
for bin in $(1)/usr/bin/*; do \
|
2019-02-19 14:36:36 +08:00
|
|
|
mv $$$$bin $$$${bin}3 ; \
|
2020-05-22 03:57:55 +08:00
|
|
|
$(LN) $$$${bin##*/}3 $$$$bin ; \
|
2019-02-18 16:11:02 +08:00
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
2019-02-12 19:48:43 +08:00
|
|
|
$(eval $(call Py3Package,python3-twisted))
|
|
|
|
$(eval $(call BuildPackage,python3-twisted))
|
|
|
|
$(eval $(call BuildPackage,python3-twisted-src))
|