blob: 79f2f2a237af8a8b4165540b15d6b698980ba3e6 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2006-2011 OpenWrt.org
3# Copyright (C) 2015-2016, 2018-2023 Jeffery To
4#
5# This is free software, licensed under the GNU General Public License v2.
6# See /LICENSE for more information.
7#
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=python-twisted
12PKG_VERSION:=23.10.0
13PKG_RELEASE:=1
14
15PYPI_NAME:=Twisted
16PYPI_SOURCE_NAME:=twisted
17PKG_HASH:=987847a0790a2c597197613686e2784fd54167df3a55d0fb17c8412305d76ce5
18
19PKG_BUILD_DEPENDS:=libtirpc
20
21PKG_LICENSE:=MIT
22PKG_LICENSE_FILES:=LICENSE
23PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
24PKG_CPE_ID:=cpe:/a:twistedmatrix:twisted
25
26PKG_BUILD_DEPENDS:=python-hatchling/host python-hatch-fancy-pypi-readme/host python-incremental/host
27
28include ../pypi.mk
29include $(INCLUDE_DIR)/package.mk
30include ../python3-package.mk
31
32define Package/python3-twisted
33 SECTION:=lang
34 CATEGORY:=Languages
35 SUBMENU:=Python
36 TITLE:=Asynchronous networking framework
37 URL:=https://twistedmatrix.com/
38 DEPENDS:= \
39 +python3 \
40 +python3-appdirs \
41 +python3-attrs \
42 +python3-automat \
43 +python3-bcrypt \
44 +python3-constantly \
45 +python3-cryptography \
46 +python3-hyperlink \
47 +python3-idna \
48 +python3-incremental \
49 +python3-pyopenssl \
50 +python3-service-identity \
51 +python3-typing-extensions \
52 +python3-zope-interface
53endef
54
55define Package/python3-twisted/description
56Twisted is a networking engine written in Python, supporting numerous
57protocols. It contains a web server, numerous chat clients, chat
58servers, mail servers, and more.
59endef
60
61define Py3Package/python3-twisted/filespec
62+|$(PYTHON3_PKG_DIR)
63-|$(PYTHON3_PKG_DIR)/twisted/conch/scripts/tkconch.py
64endef
65
66define 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 ; \
72 done
73endef
74
75$(eval $(call Py3Package,python3-twisted))
76$(eval $(call BuildPackage,python3-twisted))
77$(eval $(call BuildPackage,python3-twisted-src))