projects/aports·blob master · refs

64 lines · 1.6 KiB

1# Contributor: Marian Buschsieweke <[email protected]>
2# Maintainer: Marian Buschsieweke <[email protected]>
3pkgname=py3-edalize
4_pkgname=edalize
5pkgver=0.5.4
6pkgrel=1
7pkgdesc="An abstraction library for interfacing EDA tools"
8url="https://github.com/olofk/edalize"
9license="BSD-2-Clause"
10arch="all"
11depends="
12 py3-jinja2
13 py3-pandas
14 py3-parsing
15 py3-yaml
16 python3
17 "
18makedepends="
19 py3-setuptools
20 py3-gpep517
21 py3-wheel
22 py3-installer
23 "
24checkdepends="
25 iverilog
26 py3-pytest
27 "
28subpackages="
29 $pkgname-pyc
30 "
31source="
32 $pkgname-$pkgver.tar.gz::https://github.com/olofk/edalize/archive/refs/tags/v$pkgver.tar.gz
33 "
34builddir="$srcdir/$_pkgname-$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 "$srcdir"/testenv
44 "$srcdir"/testenv/bin/python3 -m installer dist/*.whl
45
46 # deselect tests:
47 # - spyglass: Synopsys Spyglass is not packaged and, therefore,
48 # the abstraction of that EDA will not work.
49 # - icarus: Sporadically fails
50 PATH="$srcdir/testenv/bin:$PATH" "$srcdir"/testenv/bin/python3 \
51 -m pytest -v \
52 --deselect tests/test_spyglass.py::test_spyglass_defaults \
53 --deselect tests/test_spyglass.py::test_spyglass_tooloptions \
54 --deselect tests/test_icarus.py::test_icarus
55}
56
57package() {
58 python3 -m installer -d "$pkgdir" \
59 "$builddir"/dist/*.whl
60}
61
62sha512sums="
6367ed4e59c0e82d3e72cec215ad781809fa0ca2c2d534c13897120d69ead85eef8234eccd19955d6963e11835d5a0ee71c4c19f4217bb851e0f8f1634bb2ff7cb py3-edalize-0.5.4.tar.gz
64"