summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b9fc4669b0d7dff91105b4272631fee8496bec80 (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
# Maintainer: Frederik Schwan <freswa at archlinux dot org>

pkgname=python-pymboot
pkgver=0.3.0
pkgrel=1
pkgdesc='Python based library for communication with NXP MCU Bootloader.'
arch=(any)
url='https://github.com/molejar/pyMBoot'
license=(BSD)
depends=(python-{bincopy,click,pyenum,pyserial,pyusb})
makedepends=(python-{build,installer,setuptools,wheel})
checkdepends=(python-pytest)
source=("https://github.com/molejar/pyMBoot/archive/${pkgver}/pyMBoot-${pkgver}.tar.gz")
b2sums=('ba665d97235943559cb839e4af56cbd78a46d2dadd528ebe545e431694c78886bda819d3f192ce5e14f0fb296d9ef328b2a29800725c94e618f577eab69a4122')

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

check() {
  cd pyMBoot-${pkgver}
  python -m pytest
}

package() {
  cd pyMBoot-${pkgver}
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}