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.

67 lines
1.7 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:=20.3.0
  10. PKG_RELEASE:=2
  11. PYPI_NAME:=Twisted
  12. PYPI_SOURCE_EXT:=tar.bz2
  13. PKG_HASH:=d72c55b5d56e176563b91d11952d13b01af8725c623e498db5507b6614fc1e10
  14. PKG_BUILD_DEPENDS:=libtirpc
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  18. PKG_CPE_ID:=cpe:/a:twistedmatrix:twisted
  19. include ../pypi.mk
  20. include $(INCLUDE_DIR)/package.mk
  21. include ../python3-package.mk
  22. define Package/python3-twisted
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. SUBMENU:=Python
  26. TITLE:=Asynchronous networking framework
  27. URL:=https://twistedmatrix.com/
  28. DEPENDS:= \
  29. +python3-light \
  30. +python3-attrs \
  31. +python3-automat \
  32. +python3-constantly \
  33. +python3-incremental \
  34. +python3-hyperlink \
  35. +python3-setuptools \
  36. +python3-zope-interface
  37. endef
  38. define Package/python3-twisted/description
  39. Twisted is a networking engine written in Python, supporting numerous
  40. protocols. It contains a web server, numerous chat clients, chat servers,
  41. mail servers, and more.
  42. endef
  43. define Py3Package/python3-twisted/filespec
  44. +|$(PYTHON3_PKG_DIR)
  45. -|$(PYTHON3_PKG_DIR)/twisted/conch/scripts/tkconch.py
  46. endef
  47. define Py3Package/python3-twisted/install
  48. $(INSTALL_DIR) $(1)/usr/bin
  49. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  50. for bin in $(1)/usr/bin/*; do \
  51. mv $$$$bin $$$${bin}3 ; \
  52. done
  53. endef
  54. $(eval $(call Py3Package,python3-twisted))
  55. $(eval $(call BuildPackage,python3-twisted))
  56. $(eval $(call BuildPackage,python3-twisted-src))