2 # Copyright (C) 2006-2011 OpenWrt.org
3 # Copyright (C) 2015-2016, 2018-2023 Jeffery To
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
11 PKG_NAME
:=python-twisted
16 PYPI_SOURCE_NAME
:=twisted
17 PKG_HASH
:=987847a0790a2c597197613686e2784fd54167df3a55d0fb17c8412305d76ce5
19 PKG_BUILD_DEPENDS
:=libtirpc
22 PKG_LICENSE_FILES
:=LICENSE
23 PKG_MAINTAINER
:=Jeffery To
<jeffery.to@gmail.com
>
24 PKG_CPE_ID
:=cpe
:/a
:twistedmatrix
:twisted
26 PKG_BUILD_DEPENDS
:=python-hatchling
/host python-hatch-fancy-pypi-readme
/host python-incremental
/host
29 include $(INCLUDE_DIR
)/package.mk
30 include ..
/python3-package.mk
32 define Package
/python3-twisted
36 TITLE
:=Asynchronous networking framework
37 URL
:=https
://twistedmatrix.com
/
45 +python3-cryptography \
48 +python3-incremental \
50 +python3-service-identity \
51 +python3-typing-extensions \
52 +python3-zope-interface
55 define Package
/python3-twisted
/description
56 Twisted is a networking engine written in Python
, supporting numerous
57 protocols. It contains a web server
, numerous chat clients
, chat
58 servers
, mail servers
, and more.
61 define Py3Package
/python3-twisted
/filespec
63 -|
$(PYTHON3_PKG_DIR
)/twisted
/conch
/scripts
/tkconch.py
66 define Py3Package
/python3-twisted
/install
67 $(INSTALL_DIR
) $(1)/usr
/bin
68 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
69 for bin in
$(1)/usr
/bin
/*; do \
70 mv
$$$$bin $$$${bin}3 ; \
71 $(LN
) $$$${bin
##*/}3 $$$$bin ; \
75 $(eval
$(call Py3Package
,python3-twisted
))
76 $(eval
$(call BuildPackage
,python3-twisted
))
77 $(eval
$(call BuildPackage
,python3-twisted-src
))