ayaports/testing/py3-rpy2/APKBUILD

51 lines
1.2 KiB
Text

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-rpy2
_pyname="rpy2"
pkgver=3.5.13
pkgrel=0
arch="all"
pkgdesc="A very simple, yet robust, Python interface to the R Programming Language"
url="https://pypi.python.org/project/$_pyname"
license="GPL-2.0-only"
depends="
py3-cffi
py3-numpy
py3-tz
py3-tzlocal
py3-jinja2
R
"
makedepends="
py3-build
py3-installer
py3-setuptools
py3-wheel
python3-dev
R-dev
"
checkdepends="
py3-pytest
"
options="!check" # test failures due to missing R packages
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
subpackages="$pkgname-pyc"
build() {
python3 -m build --wheel --no-isolation
}
check() {
PYTHONPATH="$PWD"/$(echo build/lib.*) \
pytest -v -k 'not test_rendertofile and not test_rendertobytes_plot' # Skip test that segfaults in build server
}
package() {
python3 -m installer --destdir="$pkgdir" dist/*.whl
}
sha512sums="
03cb885a8bb2f71cc456b960e89fd9f80ee2ffcd87be9fea0df3bce8dd3156a2ca445b2b0e10514a397c88a4d25d008891a5e29fb06c39c18c35b9b0be3668c0 py3-rpy2-3.5.13.tar.gz
"