# Contributor: Iztok Fister, Jr. # Maintainer: Iztok Fister, Jr. pkgname=py3-xarray _pkgorig=xarray pkgver=2023.10.1 pkgrel=0 pkgdesc="N-D labeled arrays and datasets in Python" url="https://xarray.dev" arch="noarch !s390x" # assertionErrors license="Apache-2.0" depends="python3 py3-numpy py3-packaging py3-pandas" makedepends="py3-gpep517 py3-setuptools_scm py3-wheel" checkdepends="py3-coverage py3-mock py3-pytest-xdist py3-pytest-cov" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/x/xarray/xarray-$pkgver.tar.gz" builddir="$srcdir/$_pkgorig-$pkgver" build() { 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 test_dataset and not test_distributed and not test_dataarray and not test_accessor_str' } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl rm -r "$pkgdir"/usr/lib/python3.*/site-packages/xarray/tests } sha512sums=" 1fe193fc2fbd31d7478bd3152f8322f0c20e312518d1f607b483d2b9c3c19d84fb175319fa55fc01d5da13ee471c60c1976617e33760d10168d6fc7b556aeac4 py3-xarray-2023.10.1.tar.gz "