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