python3-pendulum: fix python3-pep517 build, enable compiled extensions

This commit is contained in:
Andrew J. Hesford 2022-11-08 15:14:19 -05:00 committed by Andrew J. Hesford
parent 8c6807c985
commit faf8f07675
1 changed files with 8 additions and 1 deletions

View File

@ -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
}