mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-17 13:56:53 +02:00
30 lines
901 B
Text
30 lines
901 B
Text
# Contributor: Edd Salkield <edd@salkield.uk>
|
|
# Maintainer: Edd Salkield <edd@salkield.uk>
|
|
pkgname=py3-spidev
|
|
pkgver=3.6
|
|
pkgrel=1
|
|
pkgdesc="python module for interfacing with SPI devices from user space"
|
|
url="https://github.com/doceme/py-spidev"
|
|
arch="all"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="linux-headers python3-dev py3-setuptools py3-gpep517 py3-installer py3-wheel"
|
|
source="https://github.com/doceme/py-spidev/archive/v$pkgver/py-spidev-v$pkgver.tar.gz"
|
|
builddir="$srcdir/py-spidev-$pkgver/"
|
|
options="!check" # no upstream tests
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--backend setuptools.build_meta \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/spidev*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
0d69f8058ffaf8ec6867db78248c398cce5f7349908940ad68297289e7fa0dbb532af4607ad0e0d783e96d0e9fa65f2cb40b442d34c5fba94741e32e0466e61e py-spidev-v3.6.tar.gz
|
|
"
|