b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2023 Jeffery To |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=python-jsonschema-specifications |
| 11 | PKG_VERSION:=2023.11.2 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PYPI_NAME:=jsonschema-specifications |
| 15 | PYPI_SOURCE_NAME:=jsonschema_specifications |
| 16 | PKG_HASH:=9472fc4fea474cd74bea4a2b190daeccb5a9e4db2ea80efcf7a1b582fc9a81b8 |
| 17 | |
| 18 | PKG_LICENSE:=MIT |
| 19 | PKG_LICENSE_FILES:=COPYING |
| 20 | PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com> |
| 21 | |
| 22 | PKG_BUILD_DEPENDS:=python-hatchling/host python-hatch-vcs/host |
| 23 | |
| 24 | include ../pypi.mk |
| 25 | include $(INCLUDE_DIR)/package.mk |
| 26 | include ../python3-package.mk |
| 27 | |
| 28 | define Package/python3-jsonschema-specifications |
| 29 | SECTION:=lang |
| 30 | CATEGORY:=Languages |
| 31 | SUBMENU:=Python |
| 32 | TITLE:=JSON Schema meta-schemas and vocabularies |
| 33 | URL:=https://github.com/python-jsonschema/jsonschema-specifications |
| 34 | DEPENDS:=+python3-light +python3-referencing |
| 35 | endef |
| 36 | |
| 37 | define Package/python3-jsonschema-specifications/description |
| 38 | JSON support files from the JSON Schema Specifications (metaschemas, |
| 39 | vocabularies, etc.), packaged for runtime access from Python as a |
| 40 | referencing-based Schema Registry. |
| 41 | endef |
| 42 | |
| 43 | $(eval $(call Py3Package,python3-jsonschema-specifications)) |
| 44 | $(eval $(call BuildPackage,python3-jsonschema-specifications)) |
| 45 | $(eval $(call BuildPackage,python3-jsonschema-specifications-src)) |