blob: 39808003bd69113acf7bd4c10c4b0fb361797d2c (
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.76.1
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=('f69553d099390054d10ff9a75c31d22d77ab6ab9eb897db222ca3baf647f55794ee047a12f84a87e417371a28118371c098d97e0b342aba8c2d99e15576409f3')
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
}
|