blob: 810ae89686db0b8ab4edf921ee5619113a0c701f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: Michael Schubert <mschu.dev at gmail> github.com/mschubert/PKGBUILDs
pkgname=python-rchitect
_name=${pkgname#python-}
pkgver=0.4.7
pkgrel=1
pkgdesc="Minimal R API for Python"
url="https://github.com/randy3k/rchitect"
arch=('any')
license=('MIT')
depends=('r>3.4.0' 'python-cffi>=1.10.0' 'python-six>=1.9.0')
makedepends=(python-build python-installer python-wheel python-setuptools)
checkdepends=(python-pytest)
source=($_name-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz)
sha256sums=('8283d0e026d1d38a4cf67983d58a7537cb1dc82d78d9c057b45ad8786a654057')
build() {
cd "$_name-$pkgver"
# python -m build --wheel --no-isolation
python setup.py build
}
check_disabled() { # errors in test_callbacks.py
cd "$srcdir/$_name-$pkgver"
pytest
# PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-${python_version}" pytest
}
package() {
cd "$_name-$pkgver"
# python -m installer --destdir="$pkgdir" dist/*.whl
python setup.py install --skip-build --prefix=/usr --root="$pkgdir" --optimize=1
}
|