blob: ea41bb52bb524ea14db9491305a621e2ff5cda6d (
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
|
# Maintainer: Stephan Springer <buzo+arch@Lini.de>
pkgname=python-tibber
_name=pyTibber
pkgver=0.31.5
pkgrel=1
pkgdesc='Python3 library for Tibber'
arch=(any)
url="https://github.com/Danielhiversen/$_name"
license=(GPL-3.0-only)
depends=(
python-aiohttp
python-gql
python-websockets
)
makedepends=(
python-build
python-installer
python-setuptools
)
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('38555d37e20ea308b81da6c204578e66ae3a405e90ff76a14ef37ba34ccf8991')
build() {
cd "$_name-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|