summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ed0b3ab4d3d16bbb135fa2ef01ff9b05221295bd (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
# Maintainer: Fazlul Shahriar <fshahriar@gmail.com>

pkgname=python-kasa
pkgver=0.6.2.1
pkgrel=3
pkgdesc="Python library to control TPLink's smart home devices (plugs, wall switches, power strips, and bulbs)."
arch=('any')
url="https://github.com/python-kasa/python-kasa"
license=('GPL')
depends=('python-asyncclick' 'python-async-timeout' 'python-pydantic' 'python-yarl' 'python-aiohttp')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-poetry-core')
checkdepends=()
source=("https://github.com/python-kasa/python-kasa/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('add61698cfdac53aa3cfe4a19d8237d493fe48141021187d321e30550d7969c1885e743466ec903ac8abddd4efc0f6857d8e2014972a8f937212116837b74751')

build() {
  cd python-kasa-$pkgver
  python -m build --wheel --no-isolation
}

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

# vim:set ts=2 sw=2 et: