aports/community/py3-mizani/APKBUILD
2024-09-05 09:55:01 +00:00

45 lines
1.2 KiB
Text

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-mizani
pkgver=0.12.2
pkgrel=0
pkgdesc="A scales package for python"
url="https://github.com/has2k1/mizani"
arch="noarch"
license="MIT"
depends="
python3
py3-numpy
py3-scipy
py3-pandas
py3-matplotlib
py3-palettable
py3-tzdata
"
checkdepends="py3-pytest-xdist py3-pytest-cov"
makedepends="py3-gpep517 py3-setuptools_scm py3-wheel"
subpackages="$pkgname-pyc"
source="https://github.com/has2k1/mizani/archive/v$pkgver/mizani-$pkgver.tar.gz"
builddir="$srcdir/mizani-$pkgver"
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest -n auto -k 'not breaks and not test_bounds'
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/mizani-$pkgver-py3-none-any.whl
}
sha512sums="
ba11fd8b55f76ab6898213d78f1024e8217ed54673a336cda9190b2d3196cd00fd96ee598484142c054a78fb42584af62db09aa5d3fdc409ba54793f21472ee4 mizani-0.12.2.tar.gz
"