blob: f48202735c858d3eb3fe413df4dc2db3dfa33a52 (
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: Anna Schumaker <anna@nowheycreamery.com>
pkgname=python-liblistenbrainz
pkgver=0.5.5
pkgrel=1
pkgdesc='A simple Python library for the ListenBrainz Web API'
url='https://listenbrainz.org/'
arch=('any')
license=('GPL3')
depends=('python-requests' 'python-importlib-metadata')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools-scm')
checkdepends=('python-pytest')
optdepends=()
source=("${pkgname}::git+https://github.com/metabrainz/liblistenbrainz.git#tag=v${pkgver}")
sha512sums=('SKIP')
build() {
cd "${pkgname}"
python -m build --wheel --no-isolation
}
check() {
cd "${pkgname}"
python -m venv --system-site-packages test-env
test-env/bin/python -m pytest tests
}
package() {
cd "${pkgname}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|