# Contributor: Dmitry Romanenko # Maintainer: Dmitry Romanenko pkgname=py3-apipkg _pkgname=apipkg pkgver=2.1.0 pkgrel=2 pkgdesc="apipkg: namespace control and lazy-import mechanism" url="https://github.com/pytest-dev/apipkg" arch="noarch" license="MIT" depends="python3" makedepends="py3-setuptools py3-setuptools_scm" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver replaces="py-apipkg" # Backwards compatibility provides="py-apipkg=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { PYTHONPATH="$builddir/build/lib/:$PYTHONPATH" python3 -m pytest } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" 2281ffc999feddcc6073edcbb8512ded4240aaa1b472a81bbbd942da1601319ab6038387e08a2a14c962995ce94bab2e99f5a7747f8744e6af8d97abd076203b apipkg-2.1.0.tar.gz "