blob: 776d2a52f37a1f880e5addc9cf1331a7fb1252b1 (
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: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: John Hamelink <me@johnhame.link>
pkgname=python-tidalapi
pkgver=0.7.0
pkgrel=1
pkgdesc='Unofficial API for TIDAL music streaming service.'
arch=('any')
url='https://github.com/tamland/python-tidal'
license=('LGPL3')
depends=('python-requests' 'python-dateutil')
makedepends=(
'git'
'python-build'
'python-installer'
'python-wheel'
'python-sphinx'
'python-setuptools')
changelog=HISTORY.rst
source=("$pkgname::git+$url#tag=v$pkgver?signed")
sha256sums=('SKIP')
validpgpkeys=('E09E6FC5E0472F735B7599C4BBEDD0C513635C9F')
build() {
cd "$pkgname"
python -m build --wheel --no-isolation
cd docs
sphinx-build -b man . _build/man
}
## tests require an active Tidal session
package() {
export PYTHONHASHSEED=0
cd "$pkgname"
python -m installer --destdir="$pkgdir/" dist/*.whl
install -Dm644 docs/_build/man/tidalapi.1 -t "$pkgdir/usr/share/man/man1/"
}
|