python-tabulate: add package / hostbuild
authorAustin Lane <vidplace7@gmail.com>
Thu, 5 Dec 2024 06:31:12 +0000 (01:31 -0500)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Thu, 19 Dec 2024 08:31:32 +0000 (10:31 +0200)
Signed-off-by: Austin Lane <vidplace7@gmail.com>
lang/python/python-tabulate/Makefile [new file with mode: 0644]

diff --git a/lang/python/python-tabulate/Makefile b/lang/python/python-tabulate/Makefile
new file mode 100644 (file)
index 0000000..e2eb307
--- /dev/null
@@ -0,0 +1,48 @@
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=python-tabulate
+PKG_VERSION:=0.9.0
+PKG_RELEASE:=1
+
+PYPI_NAME:=tabulate
+PKG_HASH:=0095b12bf5966de529c0feb1fa08671671b3368eec77d7ef7ab114be2c068b3c
+
+PKG_MAINTAINER:=Austin Lane <vidplace7@gmail.com>
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILES:=LICENSE
+
+PKG_BUILD_DEPENDS:=python-setuptools-scm/host
+HOST_BUILD_DEPENDS:= \
+       python3/host \
+       python-build/host \
+       python-installer/host \
+       python-wheel/host \
+       python-setuptools-scm/host
+
+include ../pypi.mk
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/host-build.mk
+include ../python3-package.mk
+include ../python3-host-build.mk
+
+define Package/python3-tabulate
+  SECTION:=lang
+  CATEGORY:=Languages
+  SUBMENU:=Python
+  TITLE:=Pretty-print tabular data
+  URL:=https://pypi.org/project/tabulate
+  DEPENDS:=+python3-light
+endef
+
+define Package/python3-tabulate/description
+Pretty-print tabular data
+endef
+
+$(eval $(call Py3Package,python3-tabulate))
+$(eval $(call BuildPackage,python3-tabulate))
+$(eval $(call BuildPackage,python3-tabulate-src))
+$(eval $(call HostBuild))