blob: dadebff8bd0aa0617454ec80d767b2acf4b5c7cd (
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.59.0
pkgrel=1
pkgdesc='Library implementation of the Zigbee Home Automation standard'
url='https://github.com/zigpy/zigpy'
arch=('any')
license=('GPL3')
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-asynctest'
'python-coveralls'
'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=('0fe465a0b29dfd342340f8397a6462937dbc5c6173992b47c7f3e18920e7aed94c4db7b4290fbd4bbcc7221e0ac3f2004fd7d155326e24ac776f80d91f5f59e1')
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
}
|