summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8134fb3a49552c8d578ad82622274d574d1be3c6 (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
36
37
38
39
40
41
pkgname=python-meshtastic
pkgver=2.7.7
pkgrel=1
pkgdesc='The Python CLI and API for talking to Meshtastic devices'
arch=(any)
url='https://github.com/meshtastic/python'
license=(GPL-3.0-only)
depends=(
    python
    python-bleak
    python-packaging
    python-protobuf
    python-pypubsub
    python-pyserial
    python-requests
    python-tabulate
)
optdepends=(
    python-argcomplete
    python-pandas
    python-pyqrcode
    python-wcwidth
)
makedepends=(
    python-build
    python-installer
    python-poetry-core
)

source=("https://github.com/meshtastic/python/archive/refs/tags/$pkgver.tar.gz")
b2sums=('95062b057341ff81384a8db06938f7baf7e05badecf2cc927ee149d56d65fc49f67991698cc158d76c60394df1a76193eaf49111f8c06b507d6270c601e5ce31')

build() {
  cd "python-$pkgver"
  python -m build --wheel --no-isolation
}

package() {
  cd "python-$pkgver"
  python -m installer -d "$pkgdir" dist/*.whl
}