1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-15 20:25:17 +03:00
aports/testing/py3-mpmath/APKBUILD
psykose deb62258ec */*: set --skip-build for python installs
this marginally increases install speed by not checking if it needs a rebuild.
also remove --prefix=/usr as it defaults to /usr already.

might break a build or two, will fix later
2023-01-10 04:19:31 +01:00

39 lines
993 B
Text

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-mpmath
_pkgorig=mpmath
pkgver=1.2.1
pkgrel=1
pkgdesc="A Python library for arbitrary-precision floating-point arithmetic"
url="https://mpmath.org/"
arch="all"
license="BSD-3-Clause"
depends="python3"
makedepends="python3-dev py3-setuptools_scm py3-wheel"
checkdepends="
python3
py3-codecov
py3-pycodestyle
py3-pytest
py3-pytest-cov
"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/m/mpmath/mpmath-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"
build() {
python3 setup.py build
}
check() {
python3 -m pytest
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
rm -r "$pkgdir"/usr/lib/python3.*/site-packages/mpmath/tests
}
sha512sums="
9644d69f3065a9eb2d90edc5b8c3709703aacbf53741ba4f9f57e2496b9f34bfdf656c247066b9825849c76583603dae77e8ff9c52f87978c53d6863f15dc5e3 py3-mpmath-1.2.1.tar.gz
"