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-pyproject-hooks |
| 11 | PKG_VERSION:=1.0.0 |
| 12 | PKG_RELEASE:=2 |
| 13 | |
| 14 | PYPI_NAME:=pyproject_hooks |
| 15 | PKG_HASH:=f271b298b97f5955d53fb12b72c1fb1948c22c1a6b70b315c54cedaca0264ef5 |
| 16 | |
| 17 | PKG_LICENSE:=MIT |
| 18 | PKG_LICENSE_FILES:=LICENSE |
| 19 | PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com> |
| 20 | |
| 21 | PKG_HOST_ONLY:=1 |
| 22 | HOST_BUILD_DEPENDS:=python3/host python-flit-core/host python-installer/host |
| 23 | |
| 24 | include ../pypi.mk |
| 25 | include $(INCLUDE_DIR)/package.mk |
| 26 | include $(INCLUDE_DIR)/host-build.mk |
| 27 | include ../python3-package.mk |
| 28 | include ../python3-host-build.mk |
| 29 | |
| 30 | define Package/python3-pyproject-hooks |
| 31 | SECTION:=lang |
| 32 | CATEGORY:=Languages |
| 33 | SUBMENU:=Python |
| 34 | TITLE:=Wrappers to call pyproject.toml-based build backend hooks |
| 35 | URL:=https://github.com/pypa/pyproject-hooks |
| 36 | DEPENDS:=+python3-light |
| 37 | BUILDONLY:=1 |
| 38 | endef |
| 39 | |
| 40 | define Package/python3-pyproject-hooks/description |
| 41 | This is a low-level library for calling build-backends in |
| 42 | pyproject.toml-based project. It provides the basic functionality to |
| 43 | help write tooling that generates distribution files from Python |
| 44 | projects. |
| 45 | endef |
| 46 | |
| 47 | Host/Compile=$(Py3Host/Compile/Bootstrap) |
| 48 | |
| 49 | $(eval $(call Py3Package,python3-pyproject-hooks)) |
| 50 | $(eval $(call BuildPackage,python3-pyproject-hooks)) |
| 51 | $(eval $(call BuildPackage,python3-pyproject-hooks-src)) |
| 52 | $(eval $(call HostBuild)) |