# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-pytest pkgver=5.3.4 pkgrel=0 pkgdesc="A python test library" url="https://docs.pytest.org/en/latest/" arch="noarch" license="MIT" depends="py3-atomicwrites py3-py py3-six py3-attrs py3-more-itertools py3-pluggy py3-wcwidth py3-setuptools py3-packaging" source="https://files.pythonhosted.org/packages/source/p/pytest/pytest-$pkgver.tar.gz" builddir="$srcdir/pytest-$pkgver" replaces="pytest" # Backwards compatibility provides="pytest=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { python3 setup.py check } package() { mkdir -p "$pkgdir"/usr/bin local name; for name in py.test pytest; do ln -s $name-3 "$pkgdir"/usr/bin/$name done python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="562966d74d2ff12715ececa46acdd49de67f5e792687d52b3f53589f6dc6105aed09bd4c5098989d70b8a69e6bb4cfb9c0b1ee7e9cfc8e8252e3ba6b4d39e4bc pytest-5.3.4.tar.gz"