2024-06-12 08:48:05 +02:00
|
|
|
# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
|
2020-10-15 13:52:39 +02:00
|
|
|
pkgname=py3-kikit
|
2025-05-08 19:18:43 +08:00
|
|
|
pkgver=1.7.2
|
|
|
|
pkgrel=0
|
2020-10-15 13:52:39 +02:00
|
|
|
pkgdesc="Python library and CLI tool to automate several tasks in KiCAD"
|
|
|
|
url="https://github.com/yaqwsx/KiKit"
|
2022-04-20 14:57:26 +00:00
|
|
|
# riscv64: py3-shapely
|
2025-05-08 19:18:43 +08:00
|
|
|
# aarch64, armv7, armhf: py3-solidpython
|
2022-12-02 23:18:22 +01:00
|
|
|
# s390x: kicad
|
2025-03-16 23:35:33 +01:00
|
|
|
# ppc64le: py3-solidpython needs openscad
|
2025-05-08 19:18:43 +08:00
|
|
|
arch="noarch !riscv64 !aarch64 !armv7 !armhf !s390x !ppc64le"
|
2020-10-15 13:52:39 +02:00
|
|
|
license="MIT"
|
|
|
|
depends="
|
2022-12-02 23:18:22 +01:00
|
|
|
kicad
|
2020-10-15 13:52:39 +02:00
|
|
|
py3-click
|
2023-02-20 14:37:28 +00:00
|
|
|
py3-commentjson
|
2020-10-15 13:52:39 +02:00
|
|
|
py3-markdown2
|
2023-02-20 14:37:28 +00:00
|
|
|
py3-pcbnewtransition
|
2020-10-15 13:52:39 +02:00
|
|
|
py3-pybars3
|
|
|
|
py3-shapely
|
|
|
|
py3-solidpython
|
2023-02-20 14:37:28 +00:00
|
|
|
python3
|
|
|
|
"
|
|
|
|
makedepends="
|
|
|
|
py3-gpep517
|
2020-10-15 13:52:39 +02:00
|
|
|
py3-python-versioneer
|
2023-02-20 14:37:28 +00:00
|
|
|
py3-setuptools
|
|
|
|
py3-wheel
|
|
|
|
"
|
|
|
|
checkdepends="py3-pytest"
|
2023-04-21 23:46:58 +02:00
|
|
|
subpackages="$pkgname-pyc"
|
2023-02-20 14:37:28 +00:00
|
|
|
source="
|
|
|
|
$pkgname-$pkgver.tar.gz::https://github.com/yaqwsx/KiKit/archive/v$pkgver.tar.gz
|
2020-10-15 13:52:39 +02:00
|
|
|
"
|
|
|
|
builddir="$srcdir/KiKit-$pkgver"
|
|
|
|
|
2024-04-16 18:09:56 +02:00
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
|
|
|
|
# unvendor old versioneer
|
|
|
|
rm -f versioneer.py
|
|
|
|
}
|
|
|
|
|
2020-10-15 13:52:39 +02:00
|
|
|
build() {
|
2023-02-20 14:37:28 +00:00
|
|
|
gpep517 build-wheel \
|
2023-06-07 05:27:36 +00:00
|
|
|
--wheel-dir .dist \
|
2023-02-20 14:37:28 +00:00
|
|
|
--output-fd 3 3>&1 >&2
|
2020-10-15 13:52:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2023-06-07 05:27:36 +00:00
|
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
2023-02-20 14:37:28 +00:00
|
|
|
cd test/units
|
2023-06-07 05:27:36 +00:00
|
|
|
../../.testenv/bin/python3 -m pytest
|
2020-10-15 13:52:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-02-20 14:37:28 +00:00
|
|
|
python3 -m installer -d "$pkgdir" \
|
2023-06-07 05:27:36 +00:00
|
|
|
.dist/*.whl
|
2025-03-16 20:49:08 +01:00
|
|
|
|
|
|
|
install -Dm644 LICENCE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
2020-10-15 13:52:39 +02:00
|
|
|
}
|
2023-02-20 14:37:28 +00:00
|
|
|
|
2022-01-06 00:34:48 +01:00
|
|
|
sha512sums="
|
2025-05-08 19:18:43 +08:00
|
|
|
dc5040d2294991f9e65e3365d684fa4e117de09ab0320ae41ee59ffb6bb5a502a3b5831432c981cbe59ab941ad66dfa475a9a9bf5a91299effa208ce9762d425 py3-kikit-1.7.2.tar.gz
|
2022-01-06 00:34:48 +01:00
|
|
|
"
|