aports/testing/py3-kikit/APKBUILD

67 lines
1.4 KiB
Text
Raw Permalink Normal View History

2024-06-12 08:48:05 +02:00
# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
pkgname=py3-kikit
pkgver=1.7.2
pkgrel=0
pkgdesc="Python library and CLI tool to automate several tasks in KiCAD"
url="https://github.com/yaqwsx/KiKit"
# riscv64: py3-shapely
# aarch64, armv7, armhf: py3-solidpython
2022-12-02 23:18:22 +01:00
# s390x: kicad
# ppc64le: py3-solidpython needs openscad
arch="noarch !riscv64 !aarch64 !armv7 !armhf !s390x !ppc64le"
license="MIT"
depends="
2022-12-02 23:18:22 +01:00
kicad
py3-click
2023-02-20 14:37:28 +00:00
py3-commentjson
py3-markdown2
2023-02-20 14:37:28 +00:00
py3-pcbnewtransition
py3-pybars3
py3-shapely
py3-solidpython
2023-02-20 14:37:28 +00:00
python3
"
makedepends="
py3-gpep517
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
"
builddir="$srcdir/KiKit-$pkgver"
prepare() {
default_prepare
# unvendor old versioneer
rm -f versioneer.py
}
build() {
2023-02-20 14:37:28 +00:00
gpep517 build-wheel \
--wheel-dir .dist \
2023-02-20 14:37:28 +00:00
--output-fd 3 3>&1 >&2
}
check() {
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
../../.testenv/bin/python3 -m pytest
}
package() {
2023-02-20 14:37:28 +00:00
python3 -m installer -d "$pkgdir" \
.dist/*.whl
install -Dm644 LICENCE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
2023-02-20 14:37:28 +00:00
2022-01-06 00:34:48 +01:00
sha512sums="
dc5040d2294991f9e65e3365d684fa4e117de09ab0320ae41ee59ffb6bb5a502a3b5831432c981cbe59ab941ad66dfa475a9a9bf5a91299effa208ce9762d425 py3-kikit-1.7.2.tar.gz
2022-01-06 00:34:48 +01:00
"