blob: 5652e19a297142c9e62defc3b1d05ff80e46fe07 (
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
45
46
47
48
|
# Maintainer: Blair Bonnett <blair.bonnett@gmail.com>
pkgname=python-pyvhdlmodel
pkgdesc='An abstract VHDL language model'
pkgver=0.28.0
pkgrel=1
arch=('any')
url='https://github.com/VHDL/pyVHDLModel'
license=('Apache-2.0')
depends=(
'python-pytooling'
)
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
checkdepends=(
'python-pytest'
'python-pytest-cov'
)
_pyname=pyVHDLModel
source=(
"$_pyname-$pkgver.tar.gz::https://github.com/VHDL/pyVHDLModel/archive/refs/tags/v$pkgver.tar.gz"
)
sha256sums=(
'261846640e113a6dee241e5888a74951e0c6c074c1aafd7132aa676db17dc195'
)
build() {
cd "$_pyname-$pkgver"
python -m build --no-isolation --wheel
}
check() {
cd "$_pyname-$pkgver"
python -m venv --system-site-packages testenv
testenv/bin/python -m installer dist/"$_pyname-$pkgver"*.whl
testenv/bin/python -m pytest -v tests/unit
}
package() {
cd "$_pyname-$pkgver"
python -m installer --destdir="$pkgdir" dist/"$_pyname-$pkgver"*.whl
}
|