diff --git a/srcpkgs/python3-rencode/patches/no-cflags.patch b/srcpkgs/python3-rencode/patches/no-cflags.patch new file mode 100644 index 00000000000..a37ed0a2d6c --- /dev/null +++ b/srcpkgs/python3-rencode/patches/no-cflags.patch @@ -0,0 +1,13 @@ +Cf. https://github.com/aresch/rencode/commit/e7ec8ea718e73a8fee7dbc007c262e1584f7f94b + +--- a/build.py ++++ b/build.py +@@ -11,7 +11,7 @@ + from setuptools.command.build_ext import build_ext + + +-COMPILE_ARGS = ["-march=native", "-O3", "-msse", "-msse2", "-mfma", "-mfpmath=sse"] ++COMPILE_ARGS = [] + LINK_ARGS: list[str] = [] + INCLUDE_DIRS: list[str] = [] + LIBRARIES: list[str] = [] diff --git a/srcpkgs/python3-rencode/template b/srcpkgs/python3-rencode/template index 4a11ae39dfe..db23ed44d7e 100644 --- a/srcpkgs/python3-rencode/template +++ b/srcpkgs/python3-rencode/template @@ -1,9 +1,9 @@ # Template file for 'python3-rencode' pkgname=python3-rencode -version=1.0.6 -revision=11 -build_style=python3-module -hostmakedepends="python3-setuptools python3-Cython python3-wheel" +version=1.0.8 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-poetry-core python3-setuptools python3-Cython" makedepends="python3-devel" depends="python3" short_desc="Python3 module for fast (basic) object serialization" @@ -11,4 +11,16 @@ maintainer="Orphaned " license="GPL-3.0-or-later" homepage="https://github.com/aresch/rencode" distfiles="${homepage}/archive/v${version}.tar.gz" -checksum=0ed61111f053ea37511da86ca7aed2a3cfda6bdaa1f54a237c4b86eea52f0733 +checksum=480aab74948a7f339b749b5c39bdb4caf15429f4b49a998c770d5f371098d351 + +do_build() { + pyproject-build --no-isolation --wheel . +} + +do_check() { + local testdir="${wrksrc}/.xbps-testdir/$(date +%s)" + python3 -m installer --destdir "${testdir}" dist/*.whl + + PATH="${testdir}/usr/bin:${PATH}" PYTHONPATH="${testdir}/${py3_sitelib}" \ + python3 tests/test_rencode.py +}