From faf8f076754dcea38cfd8bef2424f6634b322725 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Tue, 8 Nov 2022 15:14:19 -0500 Subject: [PATCH] python3-pendulum: fix python3-pep517 build, enable compiled extensions --- srcpkgs/python3-pendulum/template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/srcpkgs/python3-pendulum/template b/srcpkgs/python3-pendulum/template index 363e4fab1b1..6c7ab984624 100644 --- a/srcpkgs/python3-pendulum/template +++ b/srcpkgs/python3-pendulum/template @@ -1,9 +1,10 @@ # Template file for 'python3-pendulum' pkgname=python3-pendulum version=2.1.2 -revision=2 +revision=3 build_style=python3-pep517 hostmakedepends="python3-poetry-core" +makedepends="python3-devel" depends="python3-dateutil python3-pytzdata" checkdepends="python3-pytest python3-pytz python3-freezegun ${depends}" short_desc="Python datetimes made easy" @@ -14,6 +15,12 @@ changelog="https://github.com/sdispater/pendulum/blob/master/CHANGELOG.md" distfiles="https://github.com/sdispater/pendulum/archive/refs/tags/${version}.tar.gz" checksum=4185efa48358cb9dca57a6afbc471d4b260e70f56609d5030197373564ac4a07 +do_build() { + # pendulum ships a build.py script to compile some extensions; + # this will shadow the build package with python3 -m build + pyproject-build --no-isolation --wheel . +} + post_install() { vlicense LICENSE }