You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2006-2011, 2015-2018 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=python-twisted
  9. PKG_VERSION:=22.4.0
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=Twisted
  12. PKG_HASH:=a047990f57dfae1e0bd2b7df2526d4f16dcdc843774dc108b78c52f2a5f13680
  13. PKG_BUILD_DEPENDS:=libtirpc
  14. PKG_LICENSE:=MIT
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  17. PKG_CPE_ID:=cpe:/a:twistedmatrix:twisted
  18. include ../pypi.mk
  19. include $(INCLUDE_DIR)/package.mk
  20. include ../python3-package.mk
  21. define Package/python3-twisted
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. SUBMENU:=Python
  25. TITLE:=Asynchronous networking framework
  26. URL:=https://twistedmatrix.com/
  27. DEPENDS:= \
  28. +python3 \
  29. +python3-appdirs \
  30. +python3-attrs \
  31. +python3-automat \
  32. +python3-bcrypt \
  33. +python3-constantly \
  34. +python3-cryptography \
  35. +python3-idna \
  36. +python3-incremental \
  37. +python3-hyperlink \
  38. +python3-pkg-resources \
  39. +python3-pyasn1 \
  40. +python3-pyopenssl \
  41. +python3-service-identity \
  42. +python3-typing-extensions \
  43. +python3-zope-interface
  44. endef
  45. define Package/python3-twisted/description
  46. Twisted is a networking engine written in Python, supporting numerous
  47. protocols. It contains a web server, numerous chat clients, chat servers,
  48. mail servers, and more.
  49. endef
  50. define Build/Configure
  51. $(SED) 's/^version = attr: twisted.__version__$$$$/version = $(PKG_VERSION)/' $(PKG_BUILD_DIR)/setup.cfg
  52. endef
  53. define Py3Package/python3-twisted/filespec
  54. +|$(PYTHON3_PKG_DIR)
  55. -|$(PYTHON3_PKG_DIR)/twisted/conch/scripts/tkconch.py
  56. endef
  57. define Py3Package/python3-twisted/install
  58. $(INSTALL_DIR) $(1)/usr/bin
  59. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  60. for bin in $(1)/usr/bin/*; do \
  61. mv $$$$bin $$$${bin}3 ; \
  62. $(LN) $$$${bin##*/}3 $$$$bin ; \
  63. done
  64. endef
  65. $(eval $(call Py3Package,python3-twisted))
  66. $(eval $(call BuildPackage,python3-twisted))
  67. $(eval $(call BuildPackage,python3-twisted-src))