# Automatically generated by apkbuild-pypi, template 3 # Contributor: Anjandev Momi # Maintainer: Anjandev Momi pkgname=py3-pynzb #_pkgreal is used by apkbuild-pypi to find modules at PyPI _pkgreal=pynzb pkgver=0.1.0 pkgrel=3 pkgdesc="pynzb is a unified API for parsing NZB files, with several concrete implementations included" url="https://pypi.org/project/pynzb" arch="noarch" license="BSD-3-Clause" depends="python3 expat" checkdepends="python3-dev" makedepends="py3-setuptools" _pypiprefix="${_pkgreal%"${_pkgreal#?}"}" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pkgreal/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" options="!check" # no upstream checks build() { python3 setup.py build } check() { python3 -m pytest . } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" c1efb43e56c67652bc12ec555700f134b2bd32546b9dd6c0a28a043db5c8ded5758940121b84541bdb972c7c740357cbc656e233ecfb77787d77727e245b1e72 pynzb-0.1.0.tar.gz "