summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 11 insertions, 13 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 58205317a56..eaa40d0c228 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,13 @@
# Contributor: Patrick L├╝hne <patrick-arch@luehne.de>
pkgname=python-miio
-pkgver=0.5.9.1
-pkgrel=2
+pkgver=0.5.11
+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'
@@ -24,32 +23,31 @@ depends=(
'python-zeroconf')
optdepends=('python-android-backup-tools: Android backup extraction support')
makedepends=(
- 'python-dephell'
- 'python-setuptools'
+ 'python-poetry-core'
+ 'python-build'
+ 'python-installer'
+ 'python-wheel'
'python-pytest'
'python-sphinx'
'python-sphinx-click'
'python-sphinx_rtd_theme'
'python-sphinxcontrib-apidoc')
install=miio.install
+changelog=CHANGELOG.md
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-sha512sums=('0b2fa7e27dd3adfa4b79bc96c2d25c335713822704b67bddb0137dce514dd43cfecf6864e976031cf654b5dc92638c8995bf4dfda45ccc03a5f30312e17bc8b2')
-
-prepare() {
- cd "$pkgname-$pkgver"
- dephell deps convert --from pyproject.toml --to setup.py
-}
+sha512sums=('804029ffa10760d3563b9025e3a074e5622494562c412ef4a3d7d8b62e2bd01ac3f4ee65de1d271143196464355f58a38364460454ead647254989d6ff550b12')
build() {
cd "$pkgname-$pkgver"
- python setup.py build
+ python -m build --wheel --no-isolation
cd docs
PYTHONPATH=../ make man
}
package() {
+ export PYTHONHASHSEED=0
cd "$pkgname-$pkgver"
- PYTHONHASHSEED=0 python setup.py install --optimize=1 --root="${pkgdir}" --skip-build
+ python -m installer --destdir="$pkgdir/" dist/*.whl
install -Dm644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm644 "docs/_build/man/$pkgname.1" -t "$pkgdir/usr/share/man/man1/"
}