temp/py3-pylibi2c: new aport
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8562>
This commit is contained in:
parent
b18ebeea4d
commit
b3235f201e
1 changed files with 46 additions and 0 deletions
46
temp/py3-pylibi2c/APKBUILD
Normal file
46
temp/py3-pylibi2c/APKBUILD
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
maintainer="Antoine Martin (ayakael) <dev@ayakael.net>"
|
||||
pkgname=py3-pylibi2c
|
||||
_pkgreal=pylibi2c
|
||||
pkgver=0.2.1
|
||||
# upstream does not tag releases
|
||||
_gittag=dcdf6c671e84d88ab82a863251e01c024e2fdf94
|
||||
pkgrel=0
|
||||
pkgdesc="Linux userspace i2c operation library"
|
||||
url="https://github.com/amaork/libi2c"
|
||||
arch="all"
|
||||
license="MIT"
|
||||
makedepends="
|
||||
py3-gpep517
|
||||
py3-setuptools
|
||||
py3-wheel
|
||||
python3-dev
|
||||
linux-headers
|
||||
"
|
||||
checkdepends="
|
||||
py3-pytest
|
||||
"
|
||||
source="$pkgname-$_gittag.tar.gz::https://github.com/amaork/libi2c/archive/$_gittag.tar.gz"
|
||||
options="!check" # Test suite requires working i2c device
|
||||
builddir="$srcdir/${pkgname/py3-py}-$_gittag"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
.testenv/bin/python3 -m installer .dist/*.whl
|
||||
.testenv/bin/python3 -m pytest -v
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
0f7801b5f64d71bd95dcc753b362742a12b2589fcffee4cc098d9de6d5caa395a485d0e4d8f40cc9d2f05a7b0cf1c87de47ea8364988f2b40dc5bd7c3192de90 py3-pylibi2c-dcdf6c671e84d88ab82a863251e01c024e2fdf94.tar.gz
|
||||
"
|
||||
Loading…
Add table
Add a link
Reference in a new issue