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.

65 lines
1.8 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-zope-interface
  9. PKG_VERSION:=4.7.1
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=zope.interface
  12. PKG_HASH:=4bb937e998be9d5e345f486693e477ba79e4344674484001a0b646be1d530487
  13. PKG_LICENSE:=ZPL-2.1
  14. PKG_LICENSE_FILES:=LICENSE.txt
  15. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  16. include ../pypi.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. include ../python3-package.mk
  20. define Package/python-zope-interface/Default
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. SUBMENU:=Python
  24. TITLE:=Interfaces for Python
  25. URL:=https://github.com/zopefoundation/zope.interface
  26. endef
  27. define Package/python-zope-interface
  28. $(call Package/python-zope-interface/Default)
  29. DEPENDS:=+PACKAGE_python-zope-interface:python-light
  30. VARIANT:=python
  31. endef
  32. define Package/python3-zope-interface
  33. $(call Package/python-zope-interface/Default)
  34. DEPENDS:=+PACKAGE_python3-zope-interface:python3-light
  35. VARIANT:=python3
  36. endef
  37. define Package/python-zope-interface/description
  38. This package provides an implementation of "object interfaces" for
  39. Python. Interfaces are a mechanism for labeling objects as conforming to
  40. a given API or contract. So, this package can be considered as
  41. implementation of the Design By Contract methodology support in Python.
  42. endef
  43. define Package/python3-zope-interface/description
  44. $(call Package/python-zope-interface/description)
  45. .
  46. (Variant for Python3)
  47. endef
  48. $(eval $(call PyPackage,python-zope-interface))
  49. $(eval $(call BuildPackage,python-zope-interface))
  50. $(eval $(call BuildPackage,python-zope-interface-src))
  51. $(eval $(call Py3Package,python3-zope-interface))
  52. $(eval $(call BuildPackage,python3-zope-interface))
  53. $(eval $(call BuildPackage,python3-zope-interface-src))