| 1 | # Contributor: Marian Buschsieweke <[email protected]> |
| 2 | # Maintainer: Marian Buschsieweke <[email protected]> |
| 3 | pkgname=py3-apio |
| 4 | pkgver=0.9.5 |
| 5 | pkgrel=0 |
| 6 | pkgdesc="Open source ecosystem for open FPGA boards" |
| 7 | url="https://github.com/FPGAwars/apio" |
| 8 | arch="noarch" |
| 9 | license="GPL-2.0-only" |
| 10 | depends=" |
| 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 | " |
| 21 | makedepends=" |
| 22 | py3-gpep517 |
| 23 | py3-wheel |
| 24 | " |
| 25 | checkdepends=" |
| 26 | py3-pytest |
| 27 | " |
| 28 | subpackages=" |
| 29 | $pkgname-pyc |
| 30 | " |
| 31 | source=" |
| 32 | $pkgname-$pkgver.tar.gz::https://github.com/FPGAwars/apio/archive/refs/tags/v$pkgver.tar.gz |
| 33 | " |
| 34 | builddir="$srcdir/apio-$pkgver" |
| 35 | |
| 36 | build() { |
| 37 | gpep517 build-wheel \ |
| 38 | --wheel-dir .dist \ |
| 39 | --output-fd 3 3>&1 >&2 |
| 40 | } |
| 41 | |
| 42 | check() { |
| 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 | |
| 48 | package() { |
| 49 | python3 -m installer -d "$pkgdir" \ |
| 50 | .dist/*.whl |
| 51 | } |
| 52 | |
| 53 | sha512sums=" |
| 54 | 15785cef6e7109c4cc15ccb7b7fc790f4800283903de454b0a2d3c969605d5a3fd8b7b2e62eedcf1989b4e360cf83e8b4167beea88db2b4dd615f13ea69fb33b py3-apio-0.9.5.tar.gz |
| 55 | " |