2023-11-07 22:52:30 +00:00

62 lines
1.6 KiB
Plaintext

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-plotnine
pkgver=0.12.4
pkgrel=0
pkgdesc="A grammar of graphics for Python"
url="https://github.com/has2k1/plotnine"
arch="noarch"
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"
subpackages="$pkgname-pyc"
source="https://github.com/has2k1/plotnine/archive/v$pkgver/plotnine-$pkgver.tar.gz"
builddir="$srcdir/plotnine-$pkgver"
options="!check" # disable for now | additional tests are failing in this major release
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="
e5e697c5a5f49ba932a6441fc9ec6eb7d5e364b83fa4297cb3e0597ca8e18b8679ea4da1058e904dd70551e89bf8cefea6c2b5b4054c0db52d73bb1b49d9ee82 plotnine-0.12.4.tar.gz
"