# Contributor: Max Rees # Maintainer: Max Rees pkgname=py3-pytest _pkgname=pytest pkgver=5.0.1 pkgrel=0 pkgdesc="A python test library" url="https://pypi.python.org/pypi/pytest" arch="noarch" options="!check" # Cyclic dependency with itself. Passes on x86_64 # Certified net clean license="MIT" depends="python3 py3-atomicwrites py3-attrs py3-more-itertools py3-packaging py3-pluggy py3-py py3-six py3-wcwidth" makedepends="python3-dev" #checkdepends="py3-pytest py3-hypothesis" source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz scm.patch" builddir="$srcdir/$_pkgname-$pkgver" build() { python3 setup.py build } check() { # You would think you could get away with "python3 -m pytest" but no... PYTHONPATH="$builddir/build/lib:$PYTHONPATH" pytest } package() { cd "$builddir" python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="92f5feb263a8708ef6cb8f4565688620b6bfeaef23536cfd24b9bc09515e37fdecd7fa8bcaeeb0775c0be1d8e9dcbd9a56e52f97fb13dc98116efc0056f870db py3-pytest-5.0.1.tar.gz c671edd19cf5bfe1502e2c42a1b301205417c5d4f564a8dd02ddad354021b0a8b4d01cc0f5d7c36b13d56583c18cd6a1db736b7d49634c0fb2d1159b429dafda scm.patch"