blob: e6489b80f273a2908797ff3bac3ff6b81435e1e2 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Gabriel Rauter <rauter.gabriel@gmail.com>
_pkgname=zigpy
pkgname=python-$_pkgname
pkgver=0.63.4
pkgrel=1
pkgdesc='Library implementation of the Zigbee Home Automation standard'
url='https://github.com/zigpy/zigpy'
arch=('any')
license=('GPL-3.0-or-later')
depends=(
'python'
'python-aiohttp'
'python-aiosqlite'
'python-async-timeout'
'python-crccheck'
'python-cryptography'
'python-importlib_resources'
'python-pyserial-asyncio'
'python-voluptuous'
)
makedepends=(
'git'
'python-build'
'python-installer'
'python-wheel'
'python-setuptools'
'python-setuptools-git-versioning'
)
checkdepends=(
'python-aioresponses'
'python-asynctest'
'python-freezegun'
'python-pytest'
'python-pytest-aiohttp'
'python-pytest-asyncio'
'python-pytest-cov'
'python-pytest-timeout'
)
source=("$_pkgname-$pkgver.tar.gz::https://github.com/zigpy/zigpy/archive/$pkgver.tar.gz")
b2sums=('9d5d547c632ee3ffe4d985f2f1bdd3cb7d44d5fd7e98a674a1c5deebc17bd11d59c85a572c5b7e7aafd7e367fba97dddf66a779cadc94b4dd683fd6976cf1b9b')
build() {
cd $_pkgname-$pkgver
python -m build --wheel --no-isolation
}
check() {
cd $_pkgname-$pkgver
pytest
}
package() {
cd $_pkgname-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
}
|