projects/aports·blob master · refs

55 lines · 1.1 KiB

1# Contributor: Marian Buschsieweke <[email protected]>
2# Maintainer: Marian Buschsieweke <[email protected]>
3pkgname=py3-apio
4pkgver=0.9.5
5pkgrel=0
6pkgdesc="Open source ecosystem for open FPGA boards"
7url="https://github.com/FPGAwars/apio"
8arch="noarch"
9license="GPL-2.0-only"
10depends="
11 py3-click
12 py3-colorama
13 py3-flit-core
14 py3-pyserial
15 py3-requests
16 py3-semantic-version
17 py3-setuptools
18 python3
19 scons
20 "
21makedepends="
22 py3-gpep517
23 py3-wheel
24 "
25checkdepends="
26 py3-pytest
27 "
28subpackages="
29 $pkgname-pyc
30 "
31source="
32 $pkgname-$pkgver.tar.gz::https://github.com/FPGAwars/apio/archive/refs/tags/v$pkgver.tar.gz
33 "
34builddir="$srcdir/apio-$pkgver"
35
36build() {
37 gpep517 build-wheel \
38 --wheel-dir .dist \
39 --output-fd 3 3>&1 >&2
40}
41
42check() {
43 python3 -m venv --clear --without-pip --system-site-packages .testenv
44 .testenv/bin/python3 -m installer .dist/*.whl
45 .testenv/bin/python3 -m pytest -v test
46}
47
48package() {
49 python3 -m installer -d "$pkgdir" \
50 .dist/*.whl
51}
52
53sha512sums="
5415785cef6e7109c4cc15ccb7b7fc790f4800283903de454b0a2d3c969605d5a3fd8b7b2e62eedcf1989b4e360cf83e8b4167beea88db2b4dd615f13ea69fb33b py3-apio-0.9.5.tar.gz
55"