From b78c8ff91858ac7dd15bc45ded2d6ba8fc17335e Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Fri, 31 Mar 2023 17:12:14 +0800 Subject: [PATCH] python-dbus-fast: Add build dependencies These will be required for pyproject.toml-based builds. This also includes a patch to unpin the version requirement for setuptools, as the current in-repo version of setuptools does not fulfill this requirement, and there does not appear to be any specific reason why this version requirement is necessary. Signed-off-by: Jeffery To --- lang/python/python-dbus-fast/Makefile | 4 +++- .../python-dbus-fast/patches/001-unpin-setuptools.patch | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 lang/python/python-dbus-fast/patches/001-unpin-setuptools.patch diff --git a/lang/python/python-dbus-fast/Makefile b/lang/python/python-dbus-fast/Makefile index ad6b0b40b..8579e13a4 100644 --- a/lang/python/python-dbus-fast/Makefile +++ b/lang/python/python-dbus-fast/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-dbus-fast PKG_VERSION:=1.84.2 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PYPI_NAME:=dbus-fast PYPI_SOURCE_NAME:=dbus_fast @@ -18,6 +18,8 @@ PKG_MAINTAINER:=Quintin Hill PKG_LICENSE:=MIT PKG_LICENSE_FILES:=LICENSE +PKG_BUILD_DEPENDS:=python-poetry-core/host python-cython/host python-wheel/host + include ../pypi.mk include $(INCLUDE_DIR)/package.mk include ../python3-package.mk diff --git a/lang/python/python-dbus-fast/patches/001-unpin-setuptools.patch b/lang/python/python-dbus-fast/patches/001-unpin-setuptools.patch new file mode 100644 index 000000000..327f0e74d --- /dev/null +++ b/lang/python/python-dbus-fast/patches/001-unpin-setuptools.patch @@ -0,0 +1,9 @@ +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -97,5 +97,5 @@ module = "docs.*" + ignore_errors = true + + [build-system] +-requires = ['setuptools>=65.4.1', 'wheel', 'Cython', "poetry-core>=1.0.0"] ++requires = ['setuptools', 'wheel', 'Cython', "poetry-core>=1.0.0"] + build-backend = "poetry.core.masonry.api"