blob: 685f1a54eed15d7aec3f10a1ffb766e54db3254a (
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:
# Contributor: a821 at mail de
# Contributor: AlD
pkgname=python-pysma
pkgver=0.7.5
pkgrel=2
pkgdesc="Async library for SMA Solar's WebConnect interface"
arch=(any)
url="https://github.com/kellerza/pysma"
license=('MIT')
depends=('python-jmespath' 'python-aiohttp' 'python-attrs')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest-aiohttp' 'python-aioresponses' 'python-pytest-asyncio')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('ae2ec7d1c36e513142a51eab801ddc1319762e1aef6ebc31035c58d8a9d03edb')
build() {
cd pysma-$pkgver
python -m build --wheel --no-isolation
}
check() {
cd pysma-$pkgver
pytest
}
package() {
cd pysma-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
|