blob: 3bf4015d30b76b5438e9d56feaffeae3c79ac70a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: Raimar Bühmann <raimar_at_buehmann dot de>
pkgname=python-hoymiles-wifi
pkgver=0.5.5
pkgrel=1
pkgdesc='Commandline tool and library for Hoymiles DTUs with HMS microinverters'
url='https://github.com/suaveolent/hoymiles-wifi'
license=('MIT')
arch=('any')
depends=(
'python-protobuf'
'python-crcmod'
'python-cryptography'
)
makedepends=(
'python-setuptools'
'python-build'
'python-installer'
)
source=(
"$url/archive/refs/tags/v$pkgver.tar.gz"
)
sha256sums=('3e1eeda541d3c9894866782a55644666a708e40903e8e935e807746f549d9f1a')
build() {
cd "${pkgname/python-}-$pkgver"
pushd hoymiles_wifi/protobuf
./compile_proto.sh
popd
python -m build --wheel --no-isolation
}
package() {
cd "${pkgname/python-}-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|