mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 10:15:12 +03:00
we never use pip in the venv manually made for tests- this might break 1-2 things unexpectedly, but - those should be looked at anyway - this has a severe speedup- even on a desktop machine with nvme, this makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small optimisation.
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
|
|
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
|
|
pkgname=py3-gpiozero
|
|
_pkgname=gpiozero
|
|
pkgver=1.6.2
|
|
pkgrel=1
|
|
pkgdesc="A simple interface to everyday GPIO components used with Raspberry Pi"
|
|
url="http://gpiozero.readthedocs.org"
|
|
arch="aarch64 armhf armv7"
|
|
license="BSD-3-Clause"
|
|
depends="python3 py3-colorzero"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pytest py3-mock"
|
|
source="$_pkgname-$pkgver.tar.gz::https://github.com/gpiozero/gpiozero/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
replaces="py-gpiozero" # Backwards compatibility
|
|
provides="py-gpiozero=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages test-env
|
|
test-env/bin/python3 setup.py install
|
|
test-env/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
ddb9e64425241cd2ea67d2261c440fd6482d9dd4a3242b16e5ceaba7336964e15b22e1a31466d800afda584859c90744b895be30790b80575784725f3b8b7837 gpiozero-1.6.2.tar.gz
|
|
"
|