2 # Copyright (C) 2006-2011, 2015-2018 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=python-twisted
15 PKG_HASH
:=2cd652542463277378b0d349f47c62f20d9306e57d1247baabd6d1d38a109006
17 PKG_BUILD_DEPENDS
:=libtirpc
20 PKG_LICENSE_FILES
:=LICENSE
21 PKG_MAINTAINER
:=Jeffery To
<jeffery.to@gmail.com
>
22 PKG_CPE_ID
:=cpe
:/a
:twistedmatrix
:twisted
25 include $(INCLUDE_DIR
)/package.mk
26 include ..
/python3-package.mk
28 define Package
/python3-twisted
32 TITLE
:=Asynchronous networking framework
33 URL
:=https
://twistedmatrix.com
/
41 +python3-cryptography \
43 +python3-incremental \
45 +python3-pkg-resources \
48 +python3-service-identity \
49 +python3-typing-extensions \
50 +python3-zope-interface
53 define Package
/python3-twisted
/description
54 Twisted is a networking engine written in Python
, supporting numerous
55 protocols. It contains a web server
, numerous chat clients
, chat servers
,
56 mail servers
, and more.
59 define Build
/Configure
60 $(SED
) 's/^version = attr: twisted.__version__$$$$/version = $(PKG_VERSION)/' $(PKG_BUILD_DIR
)/setup.cfg
63 define Py3Package
/python3-twisted
/filespec
65 -|
$(PYTHON3_PKG_DIR
)/twisted
/conch
/scripts
/tkconch.py
68 define Py3Package
/python3-twisted
/install
69 $(INSTALL_DIR
) $(1)/usr
/bin
70 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
71 for bin in
$(1)/usr
/bin
/*; do \
72 mv
$$$$bin $$$${bin}3 ; \
73 $(LN
) $$$${bin
##*/}3 $$$$bin ; \
77 $(eval
$(call Py3Package
,python3-twisted
))
78 $(eval
$(call BuildPackage
,python3-twisted
))
79 $(eval
$(call BuildPackage
,python3-twisted-src
))