1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 04:35:13 +03:00
aports/testing/py3-plotnine/APKBUILD
2023-03-10 21:01:33 +00:00

59 lines
1.5 KiB
Text

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-plotnine
pkgver=0.10.1
pkgrel=0
pkgdesc="A grammar of graphics for Python"
url="https://github.com/has2k1/plotnine"
arch="noarch !s390x !armhf" # py3-statsmodels
license="MIT"
depends="
python3
py3-matplotlib
py3-mizani
py3-numpy
py3-pandas
py3-patsy
py3-scipy
py3-statsmodels
"
checkdepends="python3-dev py3-pytest py3-pytest-cov"
makedepends="py3-gpep517 py3-setuptools_scm py3-wheel"
source="https://github.com/has2k1/plotnine/archive/v$pkgver/plotnine-$pkgver.tar.gz"
builddir="$srcdir/plotnine-$pkgver"
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
# assertion errors or missing dependencies
local _skipped_tests="
test_annotation_logticks
and not test_coords
and not test_facet_labelling
and not test_facets
and not test_geom_ribbon_area
and not test_geom_segment
and not test_geom_smooth
and not test_geom_text_label
and not test_scale_internals
and not test_scale_labelling
and not test_position
and not test_theme"
# shellcheck disable=SC2116
python3 -m pytest -k "not $(echo $_skipped_tests)" --ignore=tests/test_geom_map.py
}
package() {
python3 -m installer -d "$pkgdir" \
dist/plotnine-$pkgver-py3-none-any.whl
}
sha512sums="
218cabf396576beb0da3b80d2ae37c108652dc48962e9d1c797ac08a5b0e89442a1a5b1ec86dc95aa2981de7e117e0c74ce96c0c51e308a2735a6b50c48e825b plotnine-0.10.1.tar.gz
"