blob: 316a8026dbd8ee7e684484234e084627d767f596 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=python-pyproject-hooks
11PKG_VERSION:=1.0.0
12PKG_RELEASE:=2
13
14PYPI_NAME:=pyproject_hooks
15PKG_HASH:=f271b298b97f5955d53fb12b72c1fb1948c22c1a6b70b315c54cedaca0264ef5
16
17PKG_LICENSE:=MIT
18PKG_LICENSE_FILES:=LICENSE
19PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
20
21PKG_HOST_ONLY:=1
22HOST_BUILD_DEPENDS:=python3/host python-flit-core/host python-installer/host
23
24include ../pypi.mk
25include $(INCLUDE_DIR)/package.mk
26include $(INCLUDE_DIR)/host-build.mk
27include ../python3-package.mk
28include ../python3-host-build.mk
29
30define 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
38endef
39
40define Package/python3-pyproject-hooks/description
41This is a low-level library for calling build-backends in
42pyproject.toml-based project. It provides the basic functionality to
43help write tooling that generates distribution files from Python
44projects.
45endef
46
47Host/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))