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.

50 lines
1.4 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:=5.0.1
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=zope.interface
  12. PKG_HASH:=dd0bc4016ec9ffa6d327bf3ba2f044c3ff376880661e5cc38c622e1ae023076f
  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 ../python3-package.mk
  19. define Package/python-zope-interface/Default
  20. SECTION:=lang
  21. CATEGORY:=Languages
  22. SUBMENU:=Python
  23. TITLE:=Interfaces for Python
  24. URL:=https://github.com/zopefoundation/zope.interface
  25. endef
  26. define Package/python3-zope-interface
  27. $(call Package/python-zope-interface/Default)
  28. DEPENDS:=+PACKAGE_python3-zope-interface:python3-light
  29. VARIANT:=python3
  30. endef
  31. define Package/python3-zope-interface/description
  32. This package provides an implementation of "object interfaces" for
  33. Python. Interfaces are a mechanism for labeling objects as conforming to
  34. a given API or contract. So, this package can be considered as
  35. implementation of the Design By Contract methodology support in Python.
  36. .
  37. (Variant for Python3)
  38. endef
  39. $(eval $(call Py3Package,python3-zope-interface))
  40. $(eval $(call BuildPackage,python3-zope-interface))
  41. $(eval $(call BuildPackage,python3-zope-interface-src))