blob: e21bc7383f8e49c66fe29b755ed3800d9f8f7ce9 (
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.73.3
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=('6a93bd786f06bc053c9535adc504a04353eea020afc64a68db2ad2b35b849aac237212154fbe7efd0fc9dce859a086f83b5cd9f8ea1cc672d54ca1093c45b9e5')
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
}
|