b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # |
| 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 | |
| 9 | include $(TOPDIR)/rules.mk |
| 10 | |
| 11 | PKG_NAME:=python-twisted |
| 12 | PKG_VERSION:=23.10.0 |
| 13 | PKG_RELEASE:=1 |
| 14 | |
| 15 | PYPI_NAME:=Twisted |
| 16 | PYPI_SOURCE_NAME:=twisted |
| 17 | PKG_HASH:=987847a0790a2c597197613686e2784fd54167df3a55d0fb17c8412305d76ce5 |
| 18 | |
| 19 | PKG_BUILD_DEPENDS:=libtirpc |
| 20 | |
| 21 | PKG_LICENSE:=MIT |
| 22 | PKG_LICENSE_FILES:=LICENSE |
| 23 | PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com> |
| 24 | PKG_CPE_ID:=cpe:/a:twistedmatrix:twisted |
| 25 | |
| 26 | PKG_BUILD_DEPENDS:=python-hatchling/host python-hatch-fancy-pypi-readme/host python-incremental/host |
| 27 | |
| 28 | include ../pypi.mk |
| 29 | include $(INCLUDE_DIR)/package.mk |
| 30 | include ../python3-package.mk |
| 31 | |
| 32 | define 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 |
| 53 | endef |
| 54 | |
| 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. |
| 59 | endef |
| 60 | |
| 61 | define Py3Package/python3-twisted/filespec |
| 62 | +|$(PYTHON3_PKG_DIR) |
| 63 | -|$(PYTHON3_PKG_DIR)/twisted/conch/scripts/tkconch.py |
| 64 | endef |
| 65 | |
| 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 ; \ |
| 72 | done |
| 73 | endef |
| 74 | |
| 75 | $(eval $(call Py3Package,python3-twisted)) |
| 76 | $(eval $(call BuildPackage,python3-twisted)) |
| 77 | $(eval $(call BuildPackage,python3-twisted-src)) |