# Contributor: Fabricio Silva # Maintainer: Fabricio Silva pkgname=py3-sabctools _pkgname=sabctools pkgver=7.1.0 pkgrel=0 pkgdesc="C implementations of functions for use within SABnzbd" url="https://github.com/sabnzbd/sabctools" arch="all" license="GPL-2.0-or-later AND Apache-2.0 AND CC0-1.0" makedepends=" linux-headers py3-gpep517 py3-setuptools py3-wheel python3-dev " checkdepends=" py3-chardet py3-jaraco.functools py3-portend py3-pytest " subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/sabnzbd/sabctools/archive/v$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" bba1c441111aafd8b028a34637d1f9b855b7d232545bc6e56f7cc650bc22a7ee6a1ad6258aa963ef338a061adb5cd9692e1d6ea215ca7bd9fa7bf06b90079e5b py3-sabctools-7.1.0.tar.gz "