blob: b2dafa3d69b78adb53c3e246e47343a3e13769c5 (
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
49
50
51
52
53
|
pkgname=apio
_name=apio
pkgver=1.4.0
pkgrel=1
pkgdesc="Experimental micro-ecosystem for open FPGAs"
arch=('any')
url="https://pypi.org/project/apio/"
license=('GPL-3.0-or-later')
depends=(
'python-click'
'python-colorama'
'python-configobj'
'python-debugpy'
'python-packaging'
'python-pyserial'
'python-requests'
'python-semantic-version'
'python-setuptools'
'python-vcdvcd'
'python-wheel'
'scons'
)
makedepends=('python-build' 'python-flit-core' 'python-installer' 'python-wheel')
checkdepends=('python-pytest')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('7587cbef11602f0fc918a0c502b8a64cba570d6ab8e829c13ea82c512f7f00a6')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
# Add include section for Flit
sed -i '/\[tool.flit.sdist\]/a include = ["pyproject.toml", "LICENSE", "apio/"]' pyproject.toml
}
build() {
cd "${_name}-$pkgver"
python -m venv build-venv
./build-venv/bin/pip install "flit<4"
./build-venv/bin/python -m flit build
}
check() {
cd "${_name}-$pkgver"
echo "Tests are not shipped in the PyPI release, skipping"
}
package() {
cd "${_name}-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|