blob: 4cac2045944e99ca81f961d6bcaebb0a87e96cab (
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
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Patrick Lühne <patrick-arch@luehne.de>
pkgname=python-miio
pkgver=0.5.9.2
pkgrel=1
pkgdesc="Python library & console tool for controlling Xiaomi smart appliances"
url="https://github.com/rytilahti/python-miio"
arch=('any')
license=('GPL3')
depends=(
'python>=3.6'
'python-appdirs'
'python-attrs'
'python-click'
'python-construct'
'python-croniter'
'python-cryptography'
'python-defusedxml'
'python-netifaces'
'python-pytz'
'python-tqdm'
'python-yaml'
'python-zeroconf')
optdepends=('python-android-backup-tools: Android backup extraction support')
makedepends=(
'python-dephell'
'python-setuptools'
'python-pytest'
'python-sphinx'
'python-sphinx-click'
'python-sphinx_rtd_theme'
'python-sphinxcontrib-apidoc')
install=miio.install
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha512sums=('24299524ab2b8e6bab690481f6c27a60da1e4e1e1b1d2b2696ede9972382aa925d4cf3a0f546625550cbf1e3e717a407a064e083e621eacfa0eaf08984ed54f1')
prepare() {
cd "$pkgname-$pkgver"
dephell deps convert --from pyproject.toml --to setup.py
}
build() {
cd "$pkgname-$pkgver"
python setup.py build
cd docs
PYTHONPATH=../ make man
}
package() {
cd "$pkgname-$pkgver"
PYTHONHASHSEED=0 python setup.py install --optimize=1 --root="${pkgdir}" --skip-build
install -Dm644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm644 "docs/_build/man/$pkgname.1" -t "$pkgdir/usr/share/man/man1/"
}
|