blob: 02afc08ea5c85d96a252d18e5e59d2722aa9be91 (
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
57
58
|
# Maintainer: Bjoern Franke <bjo+aur@schafweide.org>
# Contributor: Gabriel Rauter <rauter.gabriel@gmail.com>
_pkgname=zigpy
pkgname=python-$_pkgname
pkgver=0.77.0
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=('008e7d977c935277bccd0ab880fb62a97ed7eb0b04d9c5baa02ff612b0177b33e309572e6d202c93c9cbda22699d08a78010d8fcfaeb4e4c237194aea8aeb4ce')
build() {
cd $_pkgname-$pkgver
perl -pi -e 's{setuptools-git-versioning<2}{setuptools-git-versioning}' pyproject.toml
python -m build --wheel --no-isolation
}
check() {
cd $_pkgname-$pkgver
pytest -k 'test_quirks_v2'
}
package() {
cd $_pkgname-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
}
|