# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=py3-injector pkgver=0.20.1 pkgrel=2 pkgdesc="Python dependency injection framework, inspired by Guice" url="https://github.com/alecthomas/injector" arch="noarch" license="BSD-3-Clause" depends="python3 py3-typing-extensions" makedepends="py3-setuptools" checkdepends="py3-pytest" options="!check" # Tests apparently aren't in pypi tarballs? subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/i/injector/injector-$pkgver.tar.gz" builddir="$srcdir/injector-$pkgver" build() { python3 setup.py build } check() { PYTHONPATH="$(echo $PWD/build/lib.*)" pytest-3 } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" a7f1ae5d37d4fa10291fa48ab3a0897f1e2df3f0dbc87275bfc25091b6b8fd811b91b148f661ecfe5e333826c707344249ceb3f923df801a2a31279dd579e6de injector-0.20.1.tar.gz "