summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b7a655c85b0beb03149557229b7b26a636a2247e (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
# Maintainer: Stephan Springer <buzo+arch@Lini.de>
# Contributor: Fazlul Shahriar <fshahriar@gmail.com>

_pkgname=python-kasa
pkgname="$_pkgname-git"
pkgver=0.6.2.1.r49.g7507837
pkgrel=1
pkgdesc="Python library to control TPLink's smart home devices, Git version"
arch=('any')
url='https://github.com/python-kasa/python-kasa'
license=('GPL-3.0-only')
depends=(python-aiohttp python-asyncclick python-async-timeout python-pydantic python-yarl)
makedepends=(git python-build python-installer python-wheel python-poetry-core)
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+https://github.com/$_pkgname/$_pkgname.git")
b2sums=('SKIP')

pkgver() {
    cd "$_pkgname"
    git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "$_pkgname"
    python -m build --wheel --no-isolation
}

package() {
    cd "$_pkgname"
    python -m installer --destdir="$pkgdir" dist/*.whl
}