void-packages/srcpkgs/python3-cysignals/template

34 lines
1.0 KiB
Bash

# Template file for 'python3-cysignals'
pkgname=python3-cysignals
version=1.11.4
revision=1
# need gnu-configure build style to support cross build
build_style=gnu-configure
build_helper=python3
hostmakedepends="python3-setuptools python3-wheel python3-Cython
python3-build python3-installer autoconf"
makedepends="python3-devel pari-devel"
depends="python3"
short_desc="Interrupt and signal handling for Cython"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="LGPL-3.0-or-later"
homepage="https://github.com/sagemath/cysignals"
changelog="https://github.com/sagemath/cysignals/releases"
distfiles="${PYPI_SITE}/c/cysignals/cysignals-${version}.tar.gz"
checksum=0f1e321e55a07f901c86a36a1e4497f6ff9dfe700681d0130a38c36e4eb238c3
post_patch() {
# run autoconf because we patched configure.ac
autoconf
}
do_build() {
# build as in python3-pep517 build style
python3 -m build --no-isolation --wheel .
}
do_install() {
# install as in python3-pep517 build style
python3 -m installer --destdir ${DESTDIR} --no-compile-bytecode dist/*.whl
}