| 1 | # Contributor: Marian Buschsieweke <[email protected]> |
| 2 | # Maintainer: Marian Buschsieweke <[email protected]> |
| 3 | pkgname=py3-edalize |
| 4 | _pkgname=edalize |
| 5 | pkgver=0.5.4 |
| 6 | pkgrel=1 |
| 7 | pkgdesc="An abstraction library for interfacing EDA tools" |
| 8 | url="https://github.com/olofk/edalize" |
| 9 | license="BSD-2-Clause" |
| 10 | arch="all" |
| 11 | depends=" |
| 12 | py3-jinja2 |
| 13 | py3-pandas |
| 14 | py3-parsing |
| 15 | py3-yaml |
| 16 | python3 |
| 17 | " |
| 18 | makedepends=" |
| 19 | py3-setuptools |
| 20 | py3-gpep517 |
| 21 | py3-wheel |
| 22 | py3-installer |
| 23 | " |
| 24 | checkdepends=" |
| 25 | iverilog |
| 26 | py3-pytest |
| 27 | " |
| 28 | subpackages=" |
| 29 | $pkgname-pyc |
| 30 | " |
| 31 | source=" |
| 32 | $pkgname-$pkgver.tar.gz::https://github.com/olofk/edalize/archive/refs/tags/v$pkgver.tar.gz |
| 33 | " |
| 34 | builddir="$srcdir/$_pkgname-$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 "$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 | |
| 57 | package() { |
| 58 | python3 -m installer -d "$pkgdir" \ |
| 59 | "$builddir"/dist/*.whl |
| 60 | } |
| 61 | |
| 62 | sha512sums=" |
| 63 | 67ed4e59c0e82d3e72cec215ad781809fa0ca2c2d534c13897120d69ead85eef8234eccd19955d6963e11835d5a0ee71c4c19f4217bb851e0f8f1634bb2ff7cb py3-edalize-0.5.4.tar.gz |
| 64 | " |