python-flit-core: Update to 3.9.0
[feed/packages.git] / lang / python / python-flit-core / Makefile
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-flit-core
11 PKG_VERSION:=3.9.0
12 PKG_RELEASE:=1
13
14 PYPI_NAME:=flit-core
15 PYPI_SOURCE_NAME:=flit_core
16 PKG_HASH:=72ad266176c4a3fcfab5f2930d76896059851240570ce9a98733b658cb786eba
17
18 PKG_LICENSE:=BSD-3-Clause
19 PKG_LICENSE_FILES:=LICENSE
20 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
21
22 PKG_HOST_ONLY:=1
23 HOST_BUILD_DEPENDS:=python3/host
24
25 include ../pypi.mk
26 include $(INCLUDE_DIR)/package.mk
27 include $(INCLUDE_DIR)/host-build.mk
28 include ../python3-package.mk
29 include ../python3-host-build.mk
30
31 define Package/python3-flit-core
32 SECTION:=lang
33 CATEGORY:=Languages
34 SUBMENU:=Python
35 TITLE:=Distribution-building parts of Flit
36 URL:=https://github.com/pypa/flit
37 DEPENDS:=+python3-light +python3-email +python3-logging
38 BUILDONLY:=1
39 endef
40
41 define Package/python3-flit-core/description
42 This provides a PEP 517 build backend for packages using Flit. The only
43 public interface is the API specified by PEP 517, at flit_core.buildapi.
44 endef
45
46 define Py3Host/Install/Installer
47 $(call HostPython3/Run, \
48 $(HOST_BUILD_DIR), \
49 bootstrap_install.py \
50 --installdir "$(1)/lib/python$(PYTHON3_VERSION)/site-packages" \
51 "$(PYTHON3_HOST_BUILD_DIR)"/openwrt-build/$(PYPI_SOURCE_NAME)-$(PKG_VERSION)-*.whl \
52 )
53 endef
54
55 Host/Compile=$(Py3Host/Compile/Bootstrap)
56
57 $(eval $(call Py3Package,python3-flit-core))
58 $(eval $(call BuildPackage,python3-flit-core))
59 $(eval $(call BuildPackage,python3-flit-core-src))
60 $(eval $(call HostBuild))