2015-11-30 13:13:23 +00:00
|
|
|
#
|
2018-01-15 16:40:45 +00:00
|
|
|
# Copyright (C) 2006-2011, 2015-2018 OpenWrt.org
|
2015-11-30 13:13:23 +00: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 08:11:02 +00:00
|
|
|
PKG_NAME:=python-twisted
|
2021-06-11 22:18:50 +00:00
|
|
|
PKG_VERSION:=21.2.0
|
2021-06-12 10:40:09 +00:00
|
|
|
PKG_RELEASE:=2
|
2015-11-30 13:13:23 +00:00
|
|
|
|
2019-10-20 19:03:12 +00:00
|
|
|
PYPI_NAME:=Twisted
|
2021-06-11 22:18:50 +00:00
|
|
|
PKG_HASH:=77544a8945cf69b98d2946689bbe0c75de7d145cdf11f391dd487eae8fc95a12
|
2015-11-30 13:13:23 +00:00
|
|
|
|
2018-08-12 18:59:01 +00:00
|
|
|
PKG_BUILD_DEPENDS:=libtirpc
|
2015-11-30 13:13:23 +00:00
|
|
|
|
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
2019-09-19 14:07:09 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:twistedmatrix:twisted
|
2015-11-30 13:13:23 +00:00
|
|
|
|
2019-10-20 19:03:12 +00:00
|
|
|
include ../pypi.mk
|
2015-11-30 13:13:23 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2019-02-12 11:48:43 +00:00
|
|
|
include ../python3-package.mk
|
2015-11-30 13:13:23 +00:00
|
|
|
|
2020-04-21 17:27:50 +00:00
|
|
|
define Package/python3-twisted
|
2015-11-30 13:13:23 +00:00
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
2019-02-18 08:11:02 +00:00
|
|
|
SUBMENU:=Python
|
2019-02-20 07:19:26 +00:00
|
|
|
TITLE:=Asynchronous networking framework
|
|
|
|
URL:=https://twistedmatrix.com/
|
2019-02-12 11:48:43 +00:00
|
|
|
DEPENDS:= \
|
2021-06-11 22:18:50 +00:00
|
|
|
+python3 \
|
2021-06-12 10:40:09 +00:00
|
|
|
+python3-appdirs \
|
2020-04-21 17:27:50 +00:00
|
|
|
+python3-attrs \
|
|
|
|
+python3-automat \
|
2021-06-12 10:40:09 +00:00
|
|
|
+python3-bcrypt \
|
2020-04-21 17:27:50 +00:00
|
|
|
+python3-constantly \
|
2021-06-12 10:40:09 +00:00
|
|
|
+python3-cryptography \
|
|
|
|
+python3-idna \
|
2020-04-21 17:27:50 +00:00
|
|
|
+python3-incremental \
|
|
|
|
+python3-hyperlink \
|
2021-06-11 22:18:50 +00:00
|
|
|
+python3-pkg-resources \
|
2021-06-12 10:40:09 +00:00
|
|
|
+python3-pyasn1 \
|
|
|
|
+python3-pyopenssl \
|
|
|
|
+python3-service-identity \
|
2021-06-11 22:18:50 +00:00
|
|
|
+python3-typing-extensions \
|
2020-04-21 17:27:50 +00:00
|
|
|
+python3-zope-interface
|
2019-02-12 11:48:43 +00:00
|
|
|
endef
|
|
|
|
|
2020-04-01 14:21:16 +00:00
|
|
|
define Package/python3-twisted/description
|
2018-01-15 16:40:45 +00:00
|
|
|
Twisted is a networking engine written in Python, supporting numerous
|
|
|
|
protocols. It contains a web server, numerous chat clients, chat servers,
|
|
|
|
mail servers, and more.
|
2019-02-12 11:48:43 +00:00
|
|
|
endef
|
|
|
|
|
2021-06-11 22:18:50 +00:00
|
|
|
define Build/Configure
|
|
|
|
$(SED) 's/^version = attr: twisted.__version__$$$$/version = $(PKG_VERSION)/' $(PKG_BUILD_DIR)/setup.cfg
|
|
|
|
endef
|
|
|
|
|
2019-02-12 11:48:43 +00:00
|
|
|
define Py3Package/python3-twisted/filespec
|
|
|
|
+|$(PYTHON3_PKG_DIR)
|
|
|
|
-|$(PYTHON3_PKG_DIR)/twisted/conch/scripts/tkconch.py
|
|
|
|
endef
|
|
|
|
|
2019-02-18 08:11:02 +00: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 06:36:36 +00:00
|
|
|
mv $$$$bin $$$${bin}3 ; \
|
2020-05-21 19:57:55 +00:00
|
|
|
$(LN) $$$${bin##*/}3 $$$$bin ; \
|
2019-02-18 08:11:02 +00:00
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
2019-02-12 11:48:43 +00:00
|
|
|
$(eval $(call Py3Package,python3-twisted))
|
|
|
|
$(eval $(call BuildPackage,python3-twisted))
|
|
|
|
$(eval $(call BuildPackage,python3-twisted-src))
|