Commit 5b097ee6 authored by prspkt's avatar prspkt

testing/py3-discogs-client: add check, modernize

parent d480cd32
......@@ -3,25 +3,28 @@
pkgname=py3-discogs-client
_pkgname=discogs-client
pkgver=2.2.2
pkgrel=1
pkgrel=2
pkgdesc="Official Python API client for Discogs"
url="https://github.com/discogs/discogs_client"
arch="noarch"
license="BSD-2-Clause"
provides="py-discogs-client" # for backwards compatibility
replaces="py-discogs-client=$pkgver-r$pkgrel" # for backwards compatibility
depends="python3 py3-requests py3-oauthlib py3-six"
makedepends="python3-dev py3-setuptools"
depends="py3-oauthlib py3-requests py3-six"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
replaces="py-discogs-client" # for backwards compatibility
provides="py-discogs-client=$pkgver-r$pkgrel" # for backwards compatibility
build() {
cd "$builddir"
python3 setup.py build
}
check() {
python3 setup.py test
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment