summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8534cc14a5fa559fa52e7394a293efd6dcd3ccbc (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
34
35
36
37
38
# Maintainer: Iyán Méndez Veiga <me (at) iyanmv (dot) com>
_pkgname=dwdweather2
pkgname=python-${_pkgname}
pkgver=0.14.0
pkgrel=7
pkgdesc="Client to access weather data from Deutscher Wetterdienst (DWD), the federal meteorological service in Germany"
arch=(any)
url=https://github.com/panodata/dwdweather2
license=(MIT)
depends=(
    python-beautifulsoup4
    python-dateutil
    python-htmllistparse
    python-requests
    python-requests-cache
    python-tqdm
)
makedepends=(
    python-build
    python-installer
    python-setuptools
    python-wheel
)
source=($_pkgname-$pkgver.tar.gz::https://github.com/panodata/$_pkgname/archive/$pkgver.tar.gz)
b2sums=('66624d2857a85ffd8ea2accc323ea77db837875a1a5fc9fcfbb080bb03687ca8d87454e901de967b575fc02293cc882ad2d26da99ca4cc21879c756409611945')

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

package() {
    cd $_pkgname-$pkgver
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
    # Remove site-packages/tests
    rm -r "$pkgdir"/usr/lib/python3.12/site-packages/tests
}