mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-05 09:27:19 +02:00
43 lines
1.2 KiB
Text
43 lines
1.2 KiB
Text
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
# Contributor: Michał Polański <michal@polanski.me>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=esptool
|
|
pkgver=4.8.1
|
|
pkgrel=0
|
|
pkgdesc="ESP8266 and ESP32 serial bootloader utility"
|
|
url="https://docs.espressif.com/projects/esptool"
|
|
license="GPL-2.0-or-later"
|
|
arch="noarch"
|
|
depends="
|
|
py3-bitstring
|
|
py3-cryptography
|
|
py3-ecdsa
|
|
py3-intelhex
|
|
py3-pyserial
|
|
py3-reedsolo
|
|
py3-yaml
|
|
"
|
|
makedepends="py3-gpep517 py3-installer py3-setuptools py3-wheel"
|
|
checkdepends="py3-elftools py3-pkcs11 py3-pytest py3-requests"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/espressif/esptool/archive/v$pkgver/esptool-$pkgver.tar.gz"
|
|
|
|
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 -m host_test
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
21fe654826a38ba40fe128eadde1ad92c22e5a011651ce0f8eb5806358c9f0b33f185fe760c1a3eee19cb59b894531ebea8213498841f0a1c0724048ec88d213 esptool-4.8.1.tar.gz
|
|
"
|