# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
# Contributor: Johannes Marbach <n0-0ne+gitlab@mailbox.org>
pkgname=py3-mygpoclient
pkgver=1.9
pkgrel=3
pkgdesc="Python Client Library for gpodder.net"
url="https://github.com/gpodder/mygpoclient"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-nose py3-pytest py3-pytest-cov py3-minimock"
subpackages="$pkgname-doc $pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/gpodder/mygpoclient/archive/$pkgver.tar.gz
	python-3.12.patch"
builddir="$srcdir/mygpoclient-$pkgver"

build() {
	python3 setup.py build
}

check() {
	make test
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
57502295725d3a1351e877998442141dd596927215d3746786c12db061ebe3bdf8282e8b2d554997515a558f608c0815e4caad311ad3f1ea9f5b62321e8d6635  py3-mygpoclient-1.9.tar.gz
46c598d84b12720f0ff949722eca4b3f93cccb3f3b970e0a10ea52183621dfe804647dd3d7dafa7385b2eaf1170d6ec678cb0672ede14bf6415a36b0b8112ef2  python-3.12.patch
"
