pyproject-metadata: add pyproject-metadata
authorAndy Syam <privasisource@gmail.com>
Fri, 22 Dec 2023 13:24:17 +0000 (21:24 +0800)
committerRosen Penev <rosenp@gmail.com>
Tue, 2 Jan 2024 23:21:37 +0000 (15:21 -0800)
https://pypi.org/project/pyproject-metadata/

source code
https://github.com/FFY00/python-pyproject-metadata

add the pyproject-metadata package that numpy requires

Signed-off-by: Andy Syam <privasisource@gmail.com>
lang/python/pyproject-metadata/Makefile [new file with mode: 0644]

diff --git a/lang/python/pyproject-metadata/Makefile b/lang/python/pyproject-metadata/Makefile
new file mode 100644 (file)
index 0000000..2e53f36
--- /dev/null
@@ -0,0 +1,39 @@
+include $(TOPDIR)/rules.mk\r
+\r
+PKG_NAME:=pyproject-metadata\r
+PKG_VERSION:=0.7.1\r
+PKG_RELEASE:=1\r
+\r
+PYPI_NAME:=pyproject-metadata\r
+PKG_HASH:=0a94f18b108b9b21f3a26a3d541f056c34edcb17dc872a144a15618fed7aef67\r
+\r
+PKG_MAINTAINER:=Andy Syam <privasisource@gmail.com>\r
+PKG_LICENSE:=MIT\r
+PKG_LICENSE_FILES:=LICENSE\r
+\r
+HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-wheel/host\r
+\r
+include ../pypi.mk\r
+include $(INCLUDE_DIR)/package.mk\r
+include $(INCLUDE_DIR)/host-build.mk\r
+include ../python3-package.mk\r
+include ../python3-host-build.mk\r
+\r
+define Package/python3-pyproject-metadata\r
+  SUBMENU:=Python\r
+  SECTION:=lang\r
+  CATEGORY:=Languages\r
+  TITLE:=PEP 621 metadata parsing\r
+  URL:=https://github.com/FFY00/python-pyproject-metadata\r
+  DEPENDS:=+python3\r
+endef\r
+\r
+define Package/python3-pyproject-metadata/description\r
+This project does not implement the parsing of pyproject.toml containing PEP 621 metadata.\r
+Instead, given a Python data structure representing PEP 621 metadata (already parsed), it will validate this input and generate a PEP 643-compliant metadata file (e.g. PKG-INFO).\r
+endef\r
+\r
+$(eval $(call Py3Package,python3-pyproject-metadata))\r
+$(eval $(call BuildPackage,python3-pyproject-metadata))\r
+$(eval $(call BuildPackage,python3-pyproject-metadata-src))\r
+$(eval $(call HostBuild))\r