ayaports/testing/py3-rpy2/APKBUILD

52 lines
1.2 KiB
Text
Raw Normal View History

2023-04-26 04:00:51 +00:00
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-rpy2
_pyname="rpy2"
2023-08-30 17:55:40 +00:00
pkgver=3.5.13
2023-04-26 04:00:51 +00:00
pkgrel=0
2023-08-11 19:49:05 +00:00
arch="all"
2023-04-26 04:00:51 +00:00
pkgdesc="A very simple, yet robust, Python interface to the R Programming Language"
url="https://pypi.python.org/project/$_pyname"
2023-08-30 17:55:40 +00:00
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
2023-04-26 04:00:51 +00:00
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
2023-08-30 17:55:40 +00:00
subpackages="$pkgname-pyc"
2023-04-26 04:00:51 +00:00
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="
2023-08-30 17:55:40 +00:00
03cb885a8bb2f71cc456b960e89fd9f80ee2ffcd87be9fea0df3bce8dd3156a2ca445b2b0e10514a397c88a4d25d008891a5e29fb06c39c18c35b9b0be3668c0 py3-rpy2-3.5.13.tar.gz
2023-04-26 04:00:51 +00:00
"