34 lines
1.1 KiB
Text
34 lines
1.1 KiB
Text
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
pkgname=py3-rpy2
|
|
_pyname="rpy2"
|
|
pkgver=3.5.11
|
|
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"
|
|
depends='python3-dev py3-cffi py3-numpy py3-tz py3-tzlocal py3-jinja2 R'
|
|
makedepends='py3-build py3-installer py3-setuptools py3-wheel'
|
|
checkdepends='py3-pytest'
|
|
options="!check" # test failure
|
|
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pyname-$pkgver
|
|
|
|
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="
|
|
c0becf26f19c9f9e34033bde12bc34f1322cbc7ca215e1081b27689a62d6c9a012ab4478e4c867e510d519bc475c2b27ee93f43a0b513dd3f2c0bea2389b9862 py3-rpy2-3.5.11.tar.gz
|
|
"
|