blob: f0164e0733210f9baaa760ac7b1139a16bf686e3 (
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
33
34
35
36
37
38
39
40
41
42
43
44
|
pkgname=apio
_name=apio
pkgver=0.9.5
pkgrel=1
pkgdesc="Experimental micro-ecosystem for open FPGAs"
arch=('any')
url="https://pypi.org/project/apio/"
license=('GPL')
depends=(
'python-click'
'python-colorama'
'python-pyserial'
'python-requests'
'python-semantic-version'
'python-setuptools'
'python-wheel'
'scons'
)
makedepends=('python-build' 'python-flit-core' 'python-installer' 'python-wheel')
checkdepends=('python-pytest')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('511255c3427817aabb997adc891f079dfa4e1e60c6f2a7180125d0c20057136c')
build() {
cd "${_name}-$pkgver"
python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
cd "${_name}-$pkgver"
# We need a venv since apio.commands.upgrade requests the installed apio package version
python -m venv --system-site-packages --clear test-venv
./test-venv/bin/python -m installer dist/*.whl
./test-venv/bin/python -m pytest -v -c /dev/null test --offline
}
package() {
cd "${_name}-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|