26 lines
884 B
Bash
26 lines
884 B
Bash
# Template file for 'python3-gmpy2'
|
|
pkgname=python3-gmpy2
|
|
version=2.2.0a1
|
|
revision=1
|
|
build_style=python3-pep517
|
|
hostmakedepends="python3-setuptools python3-wheel"
|
|
makedepends="python3-devel gmp-devel mpfr-devel libmpc-devel"
|
|
depends="python3"
|
|
checkdepends="python3-pytest python3-hypothesis"
|
|
short_desc="Python3 interface to GMP, MPFR and MPC libraries"
|
|
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
|
license="LGPL-3.0-or-later"
|
|
homepage="https://github.com/aleaxit/gmpy"
|
|
changelog="https://github.com/aleaxit/gmpy/releases"
|
|
distfiles="${PYPI_SITE}/g/gmpy2/gmpy2-${version}.tar.gz"
|
|
checksum=3b8acc939a40411a8ad5541ed178ff866dd1759e667ee26fe34c9291b6b350c3
|
|
|
|
if [ "$XBPS_CHECK_PKGS" = full ]; then
|
|
# this would cause a build-time circular dependency
|
|
checkdepends+=" python3-mpmath"
|
|
fi
|
|
|
|
do_check() {
|
|
( cd test && PYTHONPATH="$(cd ../build/lib* && pwd)" python3 runtests.py )
|
|
}
|