summaryrefslogtreecommitdiff
path: root/testing/py3-mpmath/APKBUILD
blob: 39038418815b86ed4cbba4bbf6f963455a61dac6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 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
"