b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # This is free software, licensed under the GNU General Public License v2. |
| 2 | # See /LICENSE for more information. |
| 3 | # |
| 4 | |
| 5 | include $(TOPDIR)/rules.mk |
| 6 | |
| 7 | PKG_NAME:=python-schema |
| 8 | PKG_VERSION:=0.7.5 |
| 9 | PKG_RELEASE:=1 |
| 10 | PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com> |
| 11 | |
| 12 | PYPI_NAME:=schema |
| 13 | PKG_HASH:=f06717112c61895cabc4707752b88716e8420a8819d71404501e114f91043197 |
| 14 | |
| 15 | PKG_LICENSE:=MIT |
| 16 | PKG_LICENSE_FILES:=LICENSE-MIT |
| 17 | |
| 18 | include ../pypi.mk |
| 19 | include $(INCLUDE_DIR)/package.mk |
| 20 | include ../python3-package.mk |
| 21 | |
| 22 | define Package/python3-schema |
| 23 | SECTION:=lang |
| 24 | CATEGORY:=Languages |
| 25 | SUBMENU:=Python |
| 26 | URL:=https://github.com/keleshev/schema |
| 27 | TITLE:=Simple data validation library |
| 28 | DEPENDS:=+python3-light +python3-contextlib2 |
| 29 | endef |
| 30 | |
| 31 | define Package/python3-schema/description |
| 32 | schema is a library for validating Python data structures, such as those |
| 33 | obtained from config-files, forms, external services or command-line |
| 34 | parsing, converted from JSON/YAML (or something else) to Python |
| 35 | data-types. |
| 36 | endef |
| 37 | |
| 38 | $(eval $(call Py3Package,python3-schema)) |
| 39 | $(eval $(call BuildPackage,python3-schema)) |
| 40 | $(eval $(call BuildPackage,python3-schema-src)) |