blob: 233ce3efe1d6fc44512813285faa68cfbeb887f5 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2020 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
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-apipkg
11PKG_VERSION:=3.0.1
12PKG_RELEASE:=1
13
14PYPI_NAME:=apipkg
15PKG_HASH:=f8c021adafc9132ac2fba9fd3c5768365d0a8c10aa375fb15e329f1fce8a5f01
16
17PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>
18PKG_LICENSE:=MIT
19PKG_LICENSE_FILES:=LICENSE
20
21PKG_BUILD_DEPENDS:=python-hatchling/host python-hatch-vcs/host
22
23include ../pypi.mk
24include $(INCLUDE_DIR)/package.mk
25include ../python3-package.mk
26
27define Package/python3-apipkg
28 SUBMENU:=Python
29 SECTION:=lang
30 CATEGORY:=Languages
31 TITLE:=Namespace control and lazy-import mechanism
32 URL:=https://github.com/pytest-dev/apipkg
33 DEPENDS:=+python3-light
34endef
35
36define Package/python3-apipkg/description
37apipkg is used to control the exported namespace of a Python package and
38greatly reduce the number of imports for users.
39endef
40
41$(eval $(call Py3Package,python3-apipkg))
42$(eval $(call BuildPackage,python3-apipkg))
43$(eval $(call BuildPackage,python3-apipkg-src))